diff options
author | Jordan Justen <[email protected]> | 2016-05-22 21:29:53 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2016-06-01 19:29:02 -0700 |
commit | 04fc72501a90af94b0b5699e57fea68ad6e8795b (patch) | |
tree | e966b7e8b876cc69eb8a5cabe7c743ab2cd3f21b /src/mesa/drivers/dri/i965/Makefile.sources | |
parent | fa279dfbf0fc89b07007141ad8850ac42206e397 (diff) |
i965: Put CS local thread ID uniform in last push register
This thread ID uniform will be used to compute the
gl_LocalInvocationIndex and gl_LocalInvocationID values.
It is important for this uniform to be added in the last push constant
register. fs_visitor::assign_constant_locations is updated to make
sure this happens.
The reason this is important is that the cross-thread push constant
registers are loaded first, and the per-thread push constant registers
are loaded after that. (Broadwell adds another push constant upload
mechanism which reverses this order, but we are ignoring this for
now.)
v2:
* Add variable in intrinsics lowering pass
* Make sure the ID is pushed last in assign_constant_locations, and
that we save a spot for the ID in the push constants
v3:
* Simplify code based with Jason's suggestions.
Cc: "12.0" <[email protected]>
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/Makefile.sources')
0 files changed, 0 insertions, 0 deletions