summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_gs.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-04-26 09:48:46 +1000
committerDave Airlie <airlied@redhat.com>2016-04-27 08:26:53 +1000
commit912ed84f83381330f0d616678878935cd2366293 (patch)
tree85168c308604567b63518e07bf275d1c223e29ee /src/gallium/auxiliary/draw/draw_gs.c
parent9013d9267ce11efc9b841816630b34cbe8820d1d (diff)
downloadexternal_mesa3d-912ed84f83381330f0d616678878935cd2366293.tar.gz
external_mesa3d-912ed84f83381330f0d616678878935cd2366293.tar.bz2
external_mesa3d-912ed84f83381330f0d616678878935cd2366293.zip
tgsi: move to using vector for system values.
For compute support some of the system values are .xyz types, so move to using a vector instead of a single channel. [airlied: squash swizzle fix from compute series]. Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_gs.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_gs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c
index ca03238885..adba931651 100644
--- a/src/gallium/auxiliary/draw/draw_gs.c
+++ b/src/gallium/auxiliary/draw/draw_gs.c
@@ -197,7 +197,7 @@ static void tgsi_gs_prepare(struct draw_geometry_shader *shader,
if (shader->info.uses_invocationid) {
unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_INVOCATIONID];
for (j = 0; j < TGSI_QUAD_SIZE; j++)
- machine->SystemValue[i].i[j] = shader->invocation_id;
+ machine->SystemValue[i].xyzw[0].i[j] = shader->invocation_id;
}
}