diff options
author | Karol Herbst <[email protected]> | 2018-12-04 17:15:42 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-01-21 00:16:51 +0100 |
commit | b9fec2b38c4f58a1caa0e9d95f76fbdff84f5069 (patch) | |
tree | 5a8cfc0eb9bcb86b562b516c7405c006985ba32f /src/intel/compiler/brw_nir.c | |
parent | 987744be9850bfe3a7c3c9556ae5d48ee5c34352 (diff) |
nir: replace more nir_load_system_value calls with builder functions
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_nir.c')
-rw-r--r-- | src/intel/compiler/brw_nir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 0d4fa0218d2..9dbf06004a4 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -1059,8 +1059,7 @@ brw_nir_create_passthrough_tcs(void *mem_ctx, const struct brw_compiler *compile nir_intrinsic_instr *load; nir_intrinsic_instr *store; nir_ssa_def *zero = nir_imm_int(&b, 0); - nir_ssa_def *invoc_id = - nir_load_system_value(&b, nir_intrinsic_load_invocation_id, 0); + nir_ssa_def *invoc_id = nir_load_invocation_id(&b); nir->info.inputs_read = key->outputs_written & ~(VARYING_BIT_TESS_LEVEL_INNER | VARYING_BIT_TESS_LEVEL_OUTER); |