nir: add ACCESS_USES_FORMAT_AMD for typed buffer opcodes

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>
This commit is contained in:
Marek Olšák
2022-11-06 19:09:27 -05:00
committed by Marge Bot
parent 716ac4a55d
commit 150c2cec63
+11
View 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),
};
/**