summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_fs.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-09-29 17:57:32 -0700
committerJason Ekstrand <[email protected]>2017-11-07 10:37:52 -0800
commit80ddfab2f54d7cd9dd4b93d2fbfa239f061a1f2b (patch)
treeae7d48e61d34f58d19bc7958b1cb31f3d87a8bed /src/intel/compiler/brw_fs.h
parent25f7453c9e6dc7c947b936bdac86680c332362bf (diff)
intel/cs: Rework the way thread local ID is handled
Previously, brw_nir_lower_intrinsics added the param and then emitted a load_uniform intrinsic to load it directly. This commit switches things over to use a specific NIR intrinsic for the thread id. The one thing I don't like about this approach is that we have to copy thread_local_id over to the new visitor in import_uniforms. Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_fs.h')
-rw-r--r--src/intel/compiler/brw_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_fs.h b/src/intel/compiler/brw_fs.h
index da3259323ec..f51a4d8889b 100644
--- a/src/intel/compiler/brw_fs.h
+++ b/src/intel/compiler/brw_fs.h
@@ -315,6 +315,7 @@ public:
*/
int *push_constant_loc;
+ fs_reg thread_local_id;
fs_reg frag_depth;
fs_reg frag_stencil;
fs_reg sample_mask;