iris: Map FXT1 texture formats
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 27 Nov 2019 10:44:37 +0000 (02:44 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Dec 2019 06:55:56 +0000 (22:55 -0800)
This exposes GL_TDFX_texture_compression_FXT1 support.  It's ancient,
only Intel GPUs appear to support it, and I seriously doubt anybody
uses it.  But i965 supports it, and it's trivial to do, so we may as
well support it in the new iris driver as well.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/iris/iris_formats.c

index 5205365604d9b4b358ede44ce20bdda535a35be6..351172787efd56c0eed95bed8294126307a94b9a 100644 (file)
@@ -283,6 +283,8 @@ iris_isl_format_for_pipe_format(enum pipe_format pf)
       [PIPE_FORMAT_ETC2_RG11_UNORM]         = ISL_FORMAT_EAC_RG11,
       [PIPE_FORMAT_ETC2_RG11_SNORM]         = ISL_FORMAT_EAC_SIGNED_RG11,
 
+      [PIPE_FORMAT_FXT1_RGB]                = ISL_FORMAT_FXT1,
+      [PIPE_FORMAT_FXT1_RGBA]               = ISL_FORMAT_FXT1,
 
       [PIPE_FORMAT_ASTC_4x4]                = ISL_FORMAT_ASTC_LDR_2D_4X4_FLT16,
       [PIPE_FORMAT_ASTC_5x4]                = ISL_FORMAT_ASTC_LDR_2D_5X4_FLT16,