diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 467230ca9a6..670d950b163 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -983,17 +983,18 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state) if (io.high_16bits) fprintf(fp, " high_16bits"); - if (state->shader) { - if (state->shader->info.stage == MESA_SHADER_GEOMETRY && - instr->intrinsic == nir_intrinsic_store_output) { - unsigned gs_streams = io.gs_streams; - fprintf(fp, " gs_streams("); - for (unsigned i = 0; i < 4; i++) { - fprintf(fp, "%s%c=%u", i ? " " : "", "xyzw"[i], - (gs_streams >> (i * 2)) & 0x3); - } - fprintf(fp, ")"); + if (state->shader && + state->shader->info.stage == MESA_SHADER_GEOMETRY && + (instr->intrinsic == nir_intrinsic_store_output || + instr->intrinsic == nir_intrinsic_store_per_primitive_output || + instr->intrinsic == nir_intrinsic_store_per_vertex_output)) { + unsigned gs_streams = io.gs_streams; + fprintf(fp, " gs_streams("); + for (unsigned i = 0; i < 4; i++) { + fprintf(fp, "%s%c=%u", i ? " " : "", "xyzw"[i], + (gs_streams >> (i * 2)) & 0x3); } + fprintf(fp, ")"); } break;