diff options
author | Kenneth Graunke <[email protected]> | 2016-05-17 03:05:56 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-05-20 14:28:30 -0700 |
commit | 7fe9a19302b8953cb267f3a1876543ad6aef8177 (patch) | |
tree | 67a812a40de276f407e6866270bedf76d5cd9144 /src/compiler | |
parent | 1539009bf01773c2cf18e436b0373fab300e5b67 (diff) |
nir: Fix wpos_ytransform lowering state_slot swizzle.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_lower_wpos_ytransform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_wpos_ytransform.c b/src/compiler/nir/nir_lower_wpos_ytransform.c index 1d53530dad3..5546788f9fd 100644 --- a/src/compiler/nir/nir_lower_wpos_ytransform.c +++ b/src/compiler/nir/nir_lower_wpos_ytransform.c @@ -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)); |