intel/compiler: Convert wm_prog_key::persample_interp to a tri-state

This allows for the possibility that we may not know at compile time if
sample shading is enabled through the API.  While we're here, also
document exactly what this bit means so we don't confuse ourselves.

v2: Fixup coarse pixel values (Lionel)

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21094>
This commit is contained in:
Jason Ekstrand
2021-11-19 16:34:19 -06:00
committed by Marge Bot
parent d8dfd153c5
commit 5644011f06
11 changed files with 173 additions and 49 deletions

View File

@@ -555,7 +555,7 @@ brw_nir_lower_fs_inputs(nir_shader *nir,
if (!key->multisample_fbo) {
nir_lower_single_sampled(nir);
} else if (key->persample_interp) {
} else if (key->persample_interp == BRW_ALWAYS) {
nir_shader_instructions_pass(nir, lower_barycentric_per_sample,
nir_metadata_block_index |
nir_metadata_dominance,