Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yusuf Khan
mesa
Commits
bd6f585a
Commit
bd6f585a
authored
Aug 28, 2022
by
Yusuf Khan
Browse files
nvk: advertise correct align for image memory requirments
Signed-off-by:
Yusuf Khan
<
yusisamerican@gmail.com
>
parent
c20d433f
Pipeline
#675643
waiting for manual action with stages
in 19 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/nouveau/vulkan/nvk_image.c
View file @
bd6f585a
...
...
@@ -331,11 +331,9 @@ nvk_GetImageMemoryRequirements2(VkDevice _device,
VK_FROM_HANDLE
(
nvk_device
,
device
,
_device
);
VK_FROM_HANDLE
(
nvk_image
,
image
,
pInfo
->
image
);
uint32_t
memory_types
=
(
1
<<
device
->
pdev
->
mem_type_cnt
)
-
1
;
// TODO hope for the best?
pMemoryRequirements
->
memoryRequirements
.
memoryTypeBits
=
memory_types
;
pMemoryRequirements
->
memoryRequirements
.
alignment
=
0x1000
;
pMemoryRequirements
->
memoryRequirements
.
memoryTypeBits
=
BITFIELD_MASK
(
device
->
pdev
->
mem_type_cnt
)
;
pMemoryRequirements
->
memoryRequirements
.
alignment
=
image
->
mem
->
bo
->
align
;
pMemoryRequirements
->
memoryRequirements
.
size
=
image
->
nil
.
size_B
;
vk_foreach_struct_const
(
ext
,
pMemoryRequirements
->
pNext
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment