Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
#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
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));