mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
isl/tests: use modulo for more variability per pixel
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31469>
This commit is contained in:
parent
e80a02f52d
commit
0b22d43f86
1 changed files with 2 additions and 2 deletions
|
|
@ -191,10 +191,10 @@ void tileTFixture::bounded_byte_fill(uint32_t x1, uint32_t x2, uint32_t y1, uint
|
|||
for(auto y = y1; y < y2; y++)
|
||||
for (auto x = x1; x < x2; x++)
|
||||
if (conv == LIN_TO_TILE) {
|
||||
*(itr + LIN_OFF(y, tile_width, x)) = LIN_OFF(y, tile_width, x)/16;
|
||||
*(itr + LIN_OFF(y, tile_width, x)) = LIN_OFF(y, tile_width, x)%16;
|
||||
} else {
|
||||
*(ops.linear_to_tile_swizzle(buf_src, tile_width, x, y)) =
|
||||
LIN_OFF(y, tile_width, x)/16;
|
||||
LIN_OFF(y, tile_width, x)%16;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue