From d0ba326f238f9f2130847696c6c64bbb381f7471 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 31 Jan 2019 01:56:25 +0100 Subject: nir/spirv: support physical pointers v2: add load_kernel_input Signed-off-by: Karol Herbst squash! nir/spirv: support physical pointers --- src/compiler/nir/nir_intrinsics.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/nir/nir_intrinsics.py') diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index d88e4ef7d45..ea092a991ca 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -635,6 +635,8 @@ load("constant", 1, [BASE, RANGE], [CAN_ELIMINATE, CAN_REORDER]) # src[] = { address }. # const_index[] = { access, align_mul, align_offset } load("global", 1, [ACCESS, ALIGN_MUL, ALIGN_OFFSET], [CAN_ELIMINATE]) +# src[] = { address }. const_index[] = { base, range, align_mul, align_offset } +load("kernel_input", 1, [BASE, RANGE, ALIGN_MUL, ALIGN_OFFSET], [CAN_ELIMINATE, CAN_REORDER]) # Stores work the same way as loads, except now the first source is the value # to store and the second (and possibly third) source specify where to store -- cgit v1.2.3