intel/compiler: Rename invocation_id_mask to instance_id_mask
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 3 May 2019 21:24:49 +0000 (14:24 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 14 May 2019 20:16:25 +0000 (13:16 -0700)
The payload field is actually "instance" (thread number), which is used
to calculate the invocation ID.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs.cpp

index 370cd184b897bf3374b3220a0f89ff5d011b745c..8fda5ce2af9ff4e893543968144f181c3fd6fb45 100644 (file)
@@ -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);
    }