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:
Sven Hesse 2017-08-04 13:49:47 +02:00
parent 3bf82279e9
commit 6e601b1d0f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}