From 150c2cec632f986a366ea5818c5feebaa9f66c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 6 Nov 2022 19:09:27 -0500 Subject: [PATCH] nir: add ACCESS_USES_FORMAT_AMD for typed buffer opcodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Rhys Perry Reviewed-by: Timur Kristóf Part-of: --- src/compiler/shader_enums.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index 03b2eaf5070..21ea09f9017 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -1007,6 +1007,17 @@ enum gl_access_qualifier * The swizzle amount is determined by the descriptor. */ ACCESS_IS_SWIZZLED_AMD = (1 << 9), + + /** + * Whether an AMD-specific buffer intrinsic uses a format conversion. + * + * If unset, the intrinsic will access raw memory without any conversion. + * + * If set, the memory opcode performs a format conversion according to + * the format determined by the descriptor (in a manner identical to image + * buffers and sampler buffers). + */ + ACCESS_USES_FORMAT_AMD = (1 << 10), }; /**