diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 18b188e855d..726da8f14d9 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -514,9 +514,6 @@ panfrost_prepare_bifrost_fs_state(struct panfrost_context *ctx, !(rt_mask & ~fs->info.outputs_written) && !alpha_to_coverage && !blend_reads_dest; - - state->properties.bifrost.allow_forward_pixel_to_be_killed = - !fs->info.fs.sidefx; } } diff --git a/src/panfrost/lib/pan_shader.h b/src/panfrost/lib/pan_shader.h index dbaaebbe01a..732e0fc821e 100644 --- a/src/panfrost/lib/pan_shader.h +++ b/src/panfrost/lib/pan_shader.h @@ -127,6 +127,9 @@ pan_shader_prepare_bifrost_rsd(const struct panfrost_device *dev, rsd->properties.bifrost.shader_wait_dependency_7 = info->bifrost.wait_7; } + rsd->properties.bifrost.allow_forward_pixel_to_be_killed = + !info->fs.sidefx; + rsd->preload.fragment.fragment_position = info->fs.reads_frag_coord; rsd->preload.fragment.coverage = true; rsd->preload.fragment.primitive_flags = info->fs.reads_face;