anv: Drop alpha_to_coverage from the NULL FS optimization

Starting with Ivy Bridge, we implement alpha-to-coverage by writting
gl_SampleMask with a pattern based on alpha.  This will show up in
wm_prog_data::uses_omask so we don't need to look at the key.

Fixes: 36ee2fd61c ("anv: Implement the basic form of VK_EXT_transform_feedback")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16506>
(cherry picked from commit 9fe6caf4e7)
This commit is contained in:
Jason Ekstrand 2022-05-13 17:01:06 -05:00 committed by Dylan Baker
parent 4a098eb29c
commit c11fe3647f
2 changed files with 1 additions and 2 deletions

View file

@ -1420,7 +1420,7 @@
"description": "anv: Drop alpha_to_coverage from the NULL FS optimization",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"because_sha": "36ee2fd61c8f943be1d1e2b0354f7a121ffef28f"
},
{

View file

@ -1356,7 +1356,6 @@ anv_pipeline_compile_fs(const struct brw_compiler *compiler,
if (fs_stage->key.wm.color_outputs_valid == 0 &&
!fs_stage->prog_data.wm.has_side_effects &&
!fs_stage->prog_data.wm.uses_omask &&
!fs_stage->key.wm.alpha_to_coverage &&
!fs_stage->prog_data.wm.uses_kill &&
fs_stage->prog_data.wm.computed_depth_mode == BRW_PSCDEPTH_OFF &&
!fs_stage->prog_data.wm.computed_stencil) {