mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
softpipe: fix sp_tile_cache_flush_clear() regression
This commit is contained in:
parent
600c85efdb
commit
ef2d10cd45
1 changed files with 11 additions and 5 deletions
|
|
@ -297,11 +297,17 @@ sp_tile_cache_flush_clear(struct softpipe_tile_cache *tc)
|
|||
|
||||
if (is_clear_flag_set(tc->clear_flags, addr)) {
|
||||
/* write the scratch tile to the surface */
|
||||
pipe_put_tile_raw(tc->pipe,
|
||||
pt,
|
||||
x, y, TILE_SIZE, TILE_SIZE,
|
||||
tc->tile.data.any, 0/*STRIDE*/);
|
||||
|
||||
if (tc->depth_stencil) {
|
||||
pipe_put_tile_raw(tc->pipe,
|
||||
pt,
|
||||
x, y, TILE_SIZE, TILE_SIZE,
|
||||
tc->tile.data.any, 0/*STRIDE*/);
|
||||
}
|
||||
else {
|
||||
pipe_put_tile_rgba(tc->pipe, pt,
|
||||
x, y, TILE_SIZE, TILE_SIZE,
|
||||
(float *) tc->tile.data.color);
|
||||
}
|
||||
numCleared++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue