d3d12: Only try to compute scaled point size for stream 0

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38100>
This commit is contained in:
Jesse Natalie 2025-12-05 16:07:30 -08:00 committed by Marge Bot
parent 0df8aa940c
commit 0ac9ccb4b4

View file

@ -166,11 +166,11 @@ lower_emit_vertex(nir_intrinsic_instr *instr, nir_builder *b, struct lower_state
{ {
unsigned stream_id = nir_intrinsic_stream_id(instr); unsigned stream_id = nir_intrinsic_stream_id(instr);
nir_def *point_width, *point_height; b->cursor = nir_instr_remove(&instr->instr);
get_scaled_point_size(b, state, &point_width, &point_height);
nir_instr_remove(&instr->instr);
if (stream_id == 0) { if (stream_id == 0) {
nir_def *point_width, *point_height;
get_scaled_point_size(b, state, &point_width, &point_height);
for (unsigned i = 0; i < 4; i++) { for (unsigned i = 0; i < 4; i++) {
/* All outputs need to be emitted for each vertex */ /* All outputs need to be emitted for each vertex */
util_dynarray_foreach(&state->output_writes, struct output_writes, data) { util_dynarray_foreach(&state->output_writes, struct output_writes, data) {