mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
vulkan/rmv: Correctly set heap size
RMV expects the size to be in bits 5-68, not 4-68.
Fixes: 845792db ("vulkan: Add RMV file exporter")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31903>
This commit is contained in:
parent
a21cd8c5b6
commit
73d513c5be
1 changed files with 2 additions and 2 deletions
|
|
@ -1086,8 +1086,8 @@ static void
|
|||
rmt_dump_heap_resource(struct vk_rmv_heap_description *description, FILE *output)
|
||||
{
|
||||
uint64_t data[2] = {0};
|
||||
rmt_file_write_bits(data, description->alloc_flags, 0, 3);
|
||||
rmt_file_write_bits(data, description->size, 4, 68);
|
||||
rmt_file_write_bits(data, description->alloc_flags, 0, 4);
|
||||
rmt_file_write_bits(data, description->size, 5, 68);
|
||||
rmt_file_write_bits(data, rmt_size_to_page_size(description->alignment), 69, 73);
|
||||
rmt_file_write_bits(data, description->heap_index, 74, 77);
|
||||
fwrite(data, 10, 1, output);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue