gallium: add PIPE_CAP_ASTC_DECODE_MODE and expose extension

mesa will expose GL_EXT_texture_compression_astc_decode_mode
extension if the cap is enabled by the driver.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30560>
This commit is contained in:
Louis-Francis Ratté-Boulianne
2024-08-08 00:50:40 -04:00
committed by Marge Bot
parent 35a6824e88
commit a4a51f22b1
12 changed files with 53 additions and 1 deletions

View File

@@ -483,7 +483,8 @@ struct pipe_sampler_view
/* Put the refcount on its own cache line to prevent "False sharing". */
EXCLUSIVE_CACHELINE(struct pipe_reference reference);
enum pipe_format format:14; /**< typed PIPE_FORMAT_x */
enum pipe_format format:12; /**< typed PIPE_FORMAT_x */
unsigned astc_decode_format:2; /**< intermediate format used for ASTC textures */
bool is_tex2d_from_buf:1; /**< true if union is tex2d_from_buf */
enum pipe_texture_target target:5; /**< PIPE_TEXTURE_x */
unsigned swizzle_r:3; /**< PIPE_SWIZZLE_x for red component */