mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 04:30:10 +01:00
gallium/auxiliary: Fix string matching
Commitf69bc797e1did the following: - if format.layout in ('bptc', 'astc'): + if format.layout in ('astc'): The intention was to go from matching either 'bptc' or 'astc' to matching only 'astc'. But the new code doesn't respect this intention any more, because in Python `('astc')` is not a tuple containing a string, it is just the string. (the parentheses are simply ignored) That means we now match any substring of 'astc', for example 'a'. This commit fixes the test to respect the original intention. Fixes:f69bc797e1"gallium/auxiliary: Add helper support for bptc format compress/decompress" Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
8339ba827b
commit
3153bcc73e
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ def write_format_table(formats):
|
|||
u_format_pack.print_channels(format, do_swizzle_array)
|
||||
print " %s," % (colorspace_map(format.colorspace),)
|
||||
access = True
|
||||
if format.layout in ('astc'):
|
||||
if format.layout == 'astc':
|
||||
access = False
|
||||
if format.layout == 'etc' and format.short_name() != 'etc1_rgb8':
|
||||
access = False
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue