From 0ac9ccb4b4fb11933a224ba3d15f29a59535d3eb Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Fri, 5 Dec 2025 16:07:30 -0800 Subject: [PATCH] d3d12: Only try to compute scaled point size for stream 0 Part-of: --- src/gallium/drivers/d3d12/d3d12_lower_point_sprite.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/d3d12/d3d12_lower_point_sprite.c b/src/gallium/drivers/d3d12/d3d12_lower_point_sprite.c index a802a29f6f5..461f54174bd 100644 --- a/src/gallium/drivers/d3d12/d3d12_lower_point_sprite.c +++ b/src/gallium/drivers/d3d12/d3d12_lower_point_sprite.c @@ -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); - nir_def *point_width, *point_height; - get_scaled_point_size(b, state, &point_width, &point_height); - - nir_instr_remove(&instr->instr); + b->cursor = nir_instr_remove(&instr->instr); 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++) { /* All outputs need to be emitted for each vertex */ util_dynarray_foreach(&state->output_writes, struct output_writes, data) {