diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index 048ad4b3a13..2b8bad4a5d1 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -1317,9 +1317,10 @@ store("tf_r600", []) intrinsic("optimization_barrier_vgpr_amd", dest_comp=0, src_comp=[0], flags=[CAN_ELIMINATE]) +# Untyped buffer load/store instructions of arbitrary length. # src[] = { descriptor, vector byte offset, scalar byte offset, index offset } -# The index offset is multiplied by the stride in the descriptor. The vertex/scalar byte offsets -# are in bytes. +# The index offset is multiplied by the stride in the descriptor. +# The vector/scalar offsets are in bytes, BASE is a constant byte offset. intrinsic("load_buffer_amd", src_comp=[4, 1, 1, 1], dest_comp=0, indices=[BASE, MEMORY_MODES, ACCESS], flags=[CAN_ELIMINATE]) # src[] = { store value, descriptor, vector byte offset, scalar byte offset, index offset } intrinsic("store_buffer_amd", src_comp=[0, 4, 1, 1, 1], indices=[BASE, WRITE_MASK, MEMORY_MODES, ACCESS])