panfrost: Hoist allow_forward_pixel_to_be_killed

Only a function of the shader code.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10869>
This commit is contained in:
Alyssa Rosenzweig 2021-05-14 19:17:11 -04:00 committed by Marge Bot
parent 997c1c84f3
commit 0dd3d32141
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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;