nir: add ACCESS_USES_FORMAT_AMD for typed buffer opcodes
authorMarek Olšák <marek.olsak@amd.com>
Mon, 7 Nov 2022 00:09:27 +0000 (19:09 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 13 Dec 2022 20:33:05 +0000 (20:33 +0000)
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19422>

src/compiler/shader_enums.h

index 03b2eaf..21ea09f 100644 (file)
@@ -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),
 };
 
 /**