From 2e9f5aadd0e33c42fa45f3c1ff40b842397ac49f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timur=20Krist=C3=B3f?= Date: Sun, 5 Feb 2023 17:52:23 +0100 Subject: [PATCH] nir: Clarify comment above load_buffer_amd. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Konstantin Seurer Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_intrinsics.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index 048ad4b..2b8bad4 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]) -- 2.7.4