mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Calculate texture total size using row count, not height.
Because the row_pitch and row_size sizes are in terms of rows, not texel lines. Otherwise, the calculation for compressed textures is off.
This commit is contained in:
parent
3bf82279e9
commit
6e601b1d0f
@ -7874,7 +7874,7 @@ static void check_copyable_footprints_(unsigned int line, const D3D12_RESOURCE_D
|
||||
if (row_sizes)
|
||||
ok_(line)(row_sizes[i] == row_size, "Got row size %"PRIu64", expected %u.\n", row_sizes[i], row_size);
|
||||
|
||||
total = offset + max(0, height - 1) * row_pitch + row_size;
|
||||
total = offset + max(0, row_count - 1) * row_pitch + row_size;
|
||||
offset = align(total, D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user