summaryrefslogtreecommitdiff
path: root/src/compiler/nir/nir_lower_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_lower_io.c')
-rw-r--r--src/compiler/nir/nir_lower_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c
index f5651d45ed4..71bd31c618b 100644
--- a/src/compiler/nir/nir_lower_io.c
+++ b/src/compiler/nir/nir_lower_io.c
@@ -255,7 +255,8 @@ emit_load(struct lower_io_state *state,
case nir_var_shader_in:
if (nir->info.stage == MESA_SHADER_FRAGMENT &&
nir->options->use_interpolated_input_intrinsics &&
- var->data.interpolation != INTERP_MODE_FLAT) {
+ var->data.interpolation != INTERP_MODE_FLAT &&
+ !var->data.per_primitive) {
if (var->data.interpolation == INTERP_MODE_EXPLICIT) {
assert(array_index != NULL);
op = nir_intrinsic_load_input_vertex;