iris: Support more RGBX pipe formats.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 9 Jun 2019 00:17:20 +0000 (17:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Jun 2019 02:52:38 +0000 (21:52 -0500)
commite8cd7a30d53c8612d33079c40a8b0c8aa0ef341f
tree3cc133d04190c6589da7ab82b11a03a0921ad655
parent3c10a2726bcf686f03e31e79e40786e3894ff063
iris: Support more RGBX pipe formats.

Without them, the state tracker falls back to an RGBA format, but it
doesn't always manage to override the swizzle for us.  So we lose the
information that the API expects an X channel, where alpha is garbage
and reads back as 1.  We have no equivalent ISL RGBX format for these,
so we just use RGBA directly and override the swizzle in all cases.
src/gallium/drivers/iris/iris_formats.c