freedreno: Use explicit *_NONE enum for undefined formats
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 22 May 2020 20:36:38 +0000 (13:36 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 26 May 2020 18:35:03 +0000 (18:35 +0000)
commite369b8931c675a6e86715c682723b085e45e0ee5
tree9115f45c5f1623a14cf904de02e6e96332a554d6
parent5ec3747fbe8e1d5a5a8b29b123b843b57ce77c6e
freedreno: Use explicit *_NONE enum for undefined formats

This adds RB, VFMT and TFMT NONE values for a3xx-a5xx and FMT6_NONE
for a6xx.  Use those values instead of open coded (enum xxx) ~0 or
sometimes even ~0, which triggers out-of-enum range warnings.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5173>
20 files changed:
src/freedreno/registers/a3xx.xml
src/freedreno/registers/a4xx.xml
src/freedreno/registers/a5xx.xml
src/freedreno/registers/a6xx.xml
src/freedreno/vulkan/tu_formats.c
src/gallium/drivers/freedreno/a2xx/fd2_util.h
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a3xx/fd3_format.c
src/gallium/drivers/freedreno/a3xx/fd3_resource.c
src/gallium/drivers/freedreno/a3xx/fd3_screen.c
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_format.c
src/gallium/drivers/freedreno/a5xx/fd5_blitter.c
src/gallium/drivers/freedreno/a5xx/fd5_emit.c
src/gallium/drivers/freedreno/a5xx/fd5_format.c
src/gallium/drivers/freedreno/a5xx/fd5_screen.c
src/gallium/drivers/freedreno/a6xx/fd6_blitter.c
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_format.c
src/gallium/drivers/freedreno/a6xx/fd6_screen.c