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:

committed by
Marge Bot

parent
35a6824e88
commit
a4a51f22b1
@@ -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 */
|
||||
|
Reference in New Issue
Block a user