nir: Use the right argument order for load_scratch_base_ptr
Fixes: c9bcad2573
"nir: add generated intrinsic builders"
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7836>
This commit is contained in:
@@ -36,7 +36,7 @@ brw_nir_rt_load_scratch(nir_builder *b, uint32_t offset, unsigned align,
|
||||
unsigned num_components, unsigned bit_size)
|
||||
{
|
||||
nir_ssa_def *addr =
|
||||
nir_iadd_imm(b, nir_load_scratch_base_ptr(b, 1, 1, 64), offset);
|
||||
nir_iadd_imm(b, nir_load_scratch_base_ptr(b, 1, 64, 1), offset);
|
||||
return nir_load_global(b, addr, MIN2(align, BRW_BTD_STACK_ALIGN),
|
||||
num_components, bit_size);
|
||||
}
|
||||
@@ -46,7 +46,7 @@ brw_nir_rt_store_scratch(nir_builder *b, uint32_t offset, unsigned align,
|
||||
nir_ssa_def *value, nir_component_mask_t write_mask)
|
||||
{
|
||||
nir_ssa_def *addr =
|
||||
nir_iadd_imm(b, nir_load_scratch_base_ptr(b, 1, 1, 64), offset);
|
||||
nir_iadd_imm(b, nir_load_scratch_base_ptr(b, 1, 64, 1), offset);
|
||||
nir_store_global(b, addr, MIN2(align, BRW_BTD_STACK_ALIGN),
|
||||
value, write_mask);
|
||||
}
|
||||
|
Reference in New Issue
Block a user