mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 17:20:21 +01:00
r600g: enable fast depth clear for array textures and cubemaps
I have a piglit test that hits this. Acked-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
6d751065cc
commit
0ccc653c70
1 changed files with 2 additions and 1 deletions
|
|
@ -429,7 +429,8 @@ static void r600_clear(struct pipe_context *ctx, unsigned buffers,
|
|||
*/
|
||||
/* Only use htile for first level */
|
||||
if (rtex->htile_buffer && !level &&
|
||||
util_max_layer(&rtex->resource.b.b, level) == 0) {
|
||||
fb->zsbuf->u.tex.first_layer == 0 &&
|
||||
fb->zsbuf->u.tex.last_layer == util_max_layer(&rtex->resource.b.b, level)) {
|
||||
if (rtex->depth_clear_value != depth) {
|
||||
rtex->depth_clear_value = depth;
|
||||
rctx->db_state.atom.dirty = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue