From f0d52cf2b0ae1db156e4f1e34982c2a388fcfe58 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 3 May 2019 14:24:49 -0700 Subject: [PATCH] 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 --- src/intel/compiler/brw_fs.cpp | 8 ++++---- 1 file 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); } -- 2.30.2