panfrost: Skip disabled RTs when selecting a RT for transaction elimination
If the render target is disabled, the CRC won't be updated, and the slice state should stay unchanged. Fixes dEQP-GLES2.functional.fbo.render.shared_colorbuffer.tex2d_rgba_stencil_index8 and dEQP-GLES2.functional.fbo.render.shared_colorbuffer.rbo_rgba4_depth_component16. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9907>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
dEQP-GLES2.functional.fbo.render.shared_colorbuffer.tex2d_rgba_stencil_index8
|
||||
dEQP-GLES2.functional.fbo.render.shared_colorbuffer.rbo_rgba4_depth_component16
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.nearest_mipmap_linear_linear_clamp
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.nearest_mipmap_linear_linear_mirror
|
||||
dEQP-GLES2.functional.texture.vertex.cube.filtering.nearest_mipmap_linear_linear_repeat
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
dEQP-GLES2.functional.fbo.render.shared_colorbuffer.tex2d_rgba_stencil_index8,Fail
|
||||
dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_mag,Fail
|
||||
dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_mag_reverse_dst_x,Fail
|
||||
dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_mag_reverse_dst_y,Fail
|
||||
|
||||
@@ -249,7 +249,8 @@ panfrost_mfbd_zs_crc_ext_set_bufs(struct panfrost_batch *batch,
|
||||
struct panfrost_device *dev = pan_device(batch->ctx->base.screen);
|
||||
|
||||
/* Checksumming only works with a single render target */
|
||||
if (batch->key.nr_cbufs == 1 && batch->key.cbufs[0]) {
|
||||
if (batch->key.nr_cbufs == 1 && batch->key.cbufs[0] &&
|
||||
((batch->clear | batch->draws) & PIPE_CLEAR_COLOR0)) {
|
||||
struct pipe_surface *c_surf = batch->key.cbufs[0];
|
||||
struct panfrost_resource *rsrc = pan_resource(c_surf->texture);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user