st/mesa: Add GL_TDFX_texture_compression_FXT1 support
Eric recently added PIPE_FORMAT_FXT1_RGB[A] as part of his format unification work. This was really most of the work of implementing the extension. We just need to handle it in a couple of places and expose the extension. v2: Reject the new formats in llvmpipe_is_format_supported to prevent crashes because it doesn't know how to handle the new formats. Reviewed-by: Marek Olšák <marek.olsak@amd.com> [v1] Reviewed-by: Eric Anholt <eric@anholt.net> [v1]
This commit is contained in:
@@ -877,6 +877,10 @@ void st_init_extensions(struct pipe_screen *screen,
|
||||
PIPE_FORMAT_BPTC_RGB_FLOAT,
|
||||
PIPE_FORMAT_BPTC_RGB_UFLOAT } },
|
||||
|
||||
{ { o(TDFX_texture_compression_FXT1) },
|
||||
{ PIPE_FORMAT_FXT1_RGB,
|
||||
PIPE_FORMAT_FXT1_RGBA } },
|
||||
|
||||
{ { o(KHR_texture_compression_astc_ldr),
|
||||
o(KHR_texture_compression_astc_sliced_3d) },
|
||||
{ PIPE_FORMAT_ASTC_4x4,
|
||||
|
Reference in New Issue
Block a user