mesa: Move the FXT1 compressor/decompressor to util/

softpipe failed at handling FXT1, despite exposing it, because we didn't
have a fetch function for it in the util/ format table.

Fixes: #3968
Reviewed-by: Adam jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9194>
This commit is contained in:
Eric Anholt
2021-02-19 12:27:42 -08:00
committed by Marge Bot
parent db0c2ef979
commit a46b73ee25
9 changed files with 1834 additions and 1571 deletions
+2 -1
View File
@@ -108,7 +108,7 @@ def has_access(format):
]
if format.short_name() in noaccess_formats:
return False
if format.layout in ('astc', 'atc', 'fxt1'):
if format.layout in ('astc', 'atc'):
return False
if format.layout == 'etc' and format.short_name() != 'etc1_rgb8':
return False
@@ -125,6 +125,7 @@ def write_format_table_header(file):
def write_format_table(formats):
write_format_table_header(sys.stdout)
print('#include "u_format_bptc.h"')
print('#include "u_format_fxt1.h"')
print('#include "u_format_s3tc.h"')
print('#include "u_format_rgtc.h"')
print('#include "u_format_latc.h"')