iris: Fix SINT assert in convert_fast_clear_color
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 15 Oct 2020 00:15:36 +0000 (17:15 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 4 Nov 2020 19:06:48 +0000 (19:06 +0000)
commit60336cac6014824267de013718f339e68ed7c695
tree3570b3a222beb42d14ddaf5c49efb0e4d081ce44
parent4cb9b5db2ce9ba53ae96aa0571b298fb243c0a36
iris: Fix SINT assert in convert_fast_clear_color

Don't assert that the size of every channel is greater than zero. This
assert doesn't work for integer formats with less than 4 channels.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7345>
src/gallium/drivers/iris/iris_clear.c