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:

committed by
Marge Bot

parent
d8dfd153c5
commit
5644011f06
@@ -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,
|
||||
|
Reference in New Issue
Block a user