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 <michel.daenzer@amd.com>
Fixes: 4cf2942777
("radeonsi: support 64-bit system values")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
b2c97bc789
commit
2357e7a202
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue