mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 13:50:11 +01:00
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:
parent
0df8aa940c
commit
0ac9ccb4b4
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue