intel/fs: make alpha_to_coverage a tristate

That way in some cases we can do this dynamically.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21094>
This commit is contained in:
Lionel Landwerlin
2022-03-09 15:31:34 +02:00
committed by Marge Bot
parent f3969e2413
commit fd7debc8bb
8 changed files with 52 additions and 11 deletions
+2 -1
View File
@@ -546,7 +546,8 @@ populate_wm_prog_key(const struct anv_graphics_pipeline *pipeline,
* code to workaround the issue that hardware disables alpha to coverage
* when there is SampleMask output.
*/
key->alpha_to_coverage = ms != NULL && ms->alpha_to_coverage_enable;
key->alpha_to_coverage = ms != NULL && ms->alpha_to_coverage_enable ?
BRW_ALWAYS : BRW_NEVER;
/* Vulkan doesn't support fixed-function alpha test */
key->alpha_test_replicate_alpha = false;