iris: Convert RGBX to RGBA always.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 7 Mar 2019 23:32:38 +0000 (15:32 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Mar 2019 21:45:13 +0000 (14:45 -0700)
commit1281368d02a22d08a892fbfda4cecc1219cde895
treef31fa5b3e54f57c397f77ae87b59d57d3bc35d51
parent9159a5bbf882f94c48c21371049fef2d03d3dafd
iris: Convert RGBX to RGBA always.

In i965, we disable the use of RGBX formats, so the higher layers of
Mesa choose the equivalent RGBA format, and swizzle the alpha channel to
1.0.

However, Gallium won't do that. We need to explicitly convert it to
RGBA.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_formats.c