nir: use a more fitting index for btd_stack_push_intel

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8637>
This commit is contained in:
Lionel Landwerlin
2021-06-22 14:23:04 +03:00
committed by Marge Bot
parent 423c47de99
commit 7ed0aaced7
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ lower_rt_intrinsics_impl(nir_function_impl *impl,
break;
case nir_intrinsic_btd_stack_push_intel: {
int32_t stack_size = nir_intrinsic_range(intrin);
int32_t stack_size = nir_intrinsic_stack_size(intrin);
if (stack_size > 0) {
nir_ssa_def *child_stack_offset =
nir_iadd_imm(b, stack_base_offset, stack_size);