mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
nir: Fix wpos_ytransform lowering state_slot swizzle.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
1539009bf0
commit
7fe9a19302
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "nir.h"
|
||||
#include "nir_builder.h"
|
||||
#include "program/prog_instruction.h"
|
||||
|
||||
/* Lower gl_FragCoord (and fddy) to account for driver's requested coordinate-
|
||||
* origin and pixel-center vs. shader. If transformation is required, a
|
||||
|
|
@ -57,6 +58,7 @@ get_transform(lower_wpos_ytransform_state *state)
|
|||
|
||||
var->num_state_slots = 1;
|
||||
var->state_slots = ralloc_array(var, nir_state_slot, 1);
|
||||
var->state_slots[0].swizzle = SWIZZLE_XYZW;
|
||||
memcpy(var->state_slots[0].tokens, state->options->state_tokens,
|
||||
sizeof(var->state_slots[0].tokens));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue