diff options
author | Nicolai Hähnle <[email protected]> | 2017-04-06 16:44:11 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-04-06 20:26:27 +0200 |
commit | 2357e7a202f30d091f548674779ac946af7b7b3f (patch) | |
tree | 183b169fc8bb287e4e159d1a28ed3347c217977c | |
parent | b2c97bc789198427043cd902bc76e194e7e81c7d (diff) |
st/pbo: select the right swizzle for instance IDs
The system value only has an X component, and radeonsi started
checking that in debug builds.
Reported-by: Michel Dänzer <[email protected]>
Fixes: 4cf29427770f ("radeonsi: support 64-bit system values")
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_pbo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_pbo.c b/src/mesa/state_tracker/st_pbo.c index 2c63c092ed5..1ded58392c1 100644 --- a/src/mesa/state_tracker/st_pbo.c +++ b/src/mesa/state_tracker/st_pbo.c @@ -333,7 +333,8 @@ st_pbo_create_vs(struct st_context *st) ureg_scalar(in_instanceid, TGSI_SWIZZLE_X)); } else { /* out_layer = gl_InstanceID */ - ureg_MOV(ureg, out_layer, in_instanceid); + ureg_MOV(ureg, ureg_writemask(out_layer, TGSI_WRITEMASK_X), + ureg_scalar(in_instanceid, TGSI_SWIZZLE_X)); } } |