summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2019-05-03 14:24:49 -0700
committerKenneth Graunke <kenneth@whitecape.org>2019-05-14 13:16:25 -0700
commitf0d52cf2b0ae1db156e4f1e34982c2a388fcfe58 (patch)
tree8944f9a8e1353c7953e21d5064ab87f9eaa32923
parentd86260719ed800e16270371faad6ba29b42d3c84 (diff)
intel/compiler: Rename invocation_id_mask to instance_id_mask
The payload field is actually "instance" (thread number), which is used to calculate the invocation ID. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
-rw-r--r--src/intel/compiler/brw_fs.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
index 370cd184b89..8fda5ce2af9 100644
--- a/src/intel/compiler/brw_fs.cpp
+++ b/src/intel/compiler/brw_fs.cpp
@@ -7397,9 +7397,9 @@ fs_visitor::set_tcs_invocation_id()
{
struct brw_tcs_prog_data *tcs_prog_data = brw_tcs_prog_data(prog_data);
- const unsigned invocation_id_mask =
+ const unsigned instance_id_mask =
devinfo->gen >= 11 ? INTEL_MASK(22, 16) : INTEL_MASK(23, 17);
- const unsigned invocation_id_shift =
+ const unsigned instance_id_shift =
devinfo->gen >= 11 ? 16 : 17;
fs_reg channels_uw = bld.vgrf(BRW_REGISTER_TYPE_UW);
@@ -7416,8 +7416,8 @@ fs_visitor::set_tcs_invocation_id()
fs_reg t = bld.vgrf(BRW_REGISTER_TYPE_UD);
fs_reg instance_times_8 = bld.vgrf(BRW_REGISTER_TYPE_UD);
bld.AND(t, fs_reg(retype(brw_vec1_grf(0, 2), BRW_REGISTER_TYPE_UD)),
- brw_imm_ud(invocation_id_mask));
- bld.SHR(instance_times_8, t, brw_imm_ud(invocation_id_shift - 3));
+ brw_imm_ud(instance_id_mask));
+ bld.SHR(instance_times_8, t, brw_imm_ud(instance_id_shift - 3));
bld.ADD(invocation_id, instance_times_8, channels_ud);
}