common: remove assert for memory alignment#120
common: remove assert for memory alignment#120lolzballs wants to merge 2 commits intoKhronosGroup:mainfrom
Conversation
|
can you please @zlatinski give your feedback on this assert ? what was the initial idea on having it ? |
|
Can you backport this patch from NVPro as it is more complete ? |
@zlatinski, I'm not sure why |
|
Please see 1a45c233e5461a39a2b09189d62f12a2370e313f from NVPRO samples. |
@zlatinski, in that change you align |
This is per the API specifying the alignment within the memoryRequirements.alignment, which is usually coming from vkGetBufferMemoryRequirements(device, buffer, &memoryRequirements). |
The AFAIK (and confirmed with validation layers) there is no requirement for the allocation size to the aligned to |
|
@lolzballs can you rebase on main to run the testing framework on it ? @zlatinski anything to add or is it good for you to go ? |
0239609 to
02371b6
Compare
|
@lolzballs Can you rebase your commit and update the bug description acccording to the guideline ? |
This assert is not useful -- the size returned by the implementation is not supposed to be aligned. The alignment is for sub-allocating resources within a device memory allocation. In addition, allocations of memory from vkAllocateMemory are guaranteed to be aligned to the largest memory alignment requirement. Fixes KhronosGroup#51.
These tests work now with the previous fix.
|
@zlatinski Could you please review my comment (#120 (comment))? I don't think nvpro-samples/vk_video_samples@981834c is "more complete", and I prefer not to port that here as it allocates more than necessary. |
|
@srinathkr-nv do you think you give it a look and give your feedback ? |
Description
This assert is not useful -- the size returned by the implementation is not supposed to be aligned. The alignment is for sub-allocating resources within a device memory allocation. In addition, allocations of memory from vkAllocateMemory are guaranteed to be aligned to the largest memory alignment requirement.
Type of change
Bug fix
Issue (optional)
Fixes #51.
Tests
AMD Radeon RX 7900 XTX (RADV NAVI31) / radv Mesa 25.3.5-arch1.1 / Arch Linux
Total Tests: 70
Passed: 51
Crashed: 0
Failed: 0
Not Supported: 1
Skipped: 18 (in skip list) -- Improved from 26 previously
Success Rate: 100.0%
Additional Details (optional)