nir/lower_io: add nir_io_semantics::interp_explicit_strict
This preserves the misnamed "per_vertex" flag in lowered IO. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28312>
This commit is contained in:
@@ -340,6 +340,11 @@ emit_load(struct lower_io_state *state,
|
||||
var->data.precision == GLSL_PRECISION_MEDIUM ||
|
||||
var->data.precision == GLSL_PRECISION_LOW;
|
||||
semantics.high_dvec2 = high_dvec2;
|
||||
/* "per_vertex" is misnamed. It means "explicit interpolation with
|
||||
* the original vertex order", which is a stricter version of
|
||||
* INTERP_MODE_EXPLICIT.
|
||||
*/
|
||||
semantics.interp_explicit_strict = var->data.per_vertex;
|
||||
nir_intrinsic_set_io_semantics(load, semantics);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user