diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index e8f6b21aa51..97cf2097b9b 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -3325,7 +3325,7 @@ panfrost_emit_draw(void *out, cfg.zs_update_operation = kill.zs_update; cfg.allow_forward_pixel_to_kill = pan_allow_forward_pixel_to_kill(ctx, fs); - cfg.allow_forward_pixel_to_be_killed = !fs->info.fs.sidefx; + cfg.allow_forward_pixel_to_be_killed = !fs->info.writes_global; /* Mask of render targets that may be written. A render * target may be written if the fragment shader writes diff --git a/src/panfrost/lib/pan_shader.h b/src/panfrost/lib/pan_shader.h index 17d920819d1..11770e74cad 100644 --- a/src/panfrost/lib/pan_shader.h +++ b/src/panfrost/lib/pan_shader.h @@ -238,7 +238,7 @@ pan_shader_prepare_bifrost_rsd(const struct pan_shader_info *info, info->fs.writes_coverage || info->fs.can_discard; rsd->properties.allow_forward_pixel_to_be_killed = - !info->fs.sidefx; + !info->writes_global; #if PAN_ARCH >= 7 rsd->properties.shader_wait_dependency_6 = info->bifrost.wait_6;