nir/print: expand printing of io semantics.gs_streams
gs_streams can be set for at least 2 other intrinsics. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14222>
This commit is contained in:
parent
be25db9f0f
commit
d8fa625bb3
|
@ -983,9 +983,11 @@ 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) {
|
||||
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++) {
|
||||
|
@ -994,7 +996,6 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state)
|
|||
}
|
||||
fprintf(fp, ")");
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue