freedreno/a4xx: fix *_NONE enum conversion
authorShawn Guo <shawn.guo@linaro.org>
Tue, 30 Jun 2020 12:40:53 +0000 (20:40 +0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 30 Jun 2020 14:23:29 +0000 (14:23 +0000)
commitb1d309eaa39a695da5adc7dfd663cb2a4179710e
tree29594bb508a9793ddfa49da3d40e188aa7534019
parentfa673920483d81a7a3ed110cfaa4d8f21d3d00c4
freedreno/a4xx: fix *_NONE enum conversion

Commit e369b8931c67 ("freedreno: Use explicit *_NONE enum for undefined
formats") only partially converts ~0 to *_NONE enum.  It breaks texture
support, and glmark2 texture scene gives a black screen.

Adding the missing conversion of ~0 to *_NONE enum fixes the issue.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5693>
src/gallium/drivers/freedreno/a4xx/fd4_format.c
src/gallium/drivers/freedreno/a4xx/fd4_screen.c