iris: Properly allow rendering to RGBX formats.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Feb 2019 07:37:58 +0000 (23:37 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 25 Feb 2019 09:11:27 +0000 (01:11 -0800)
commitb45186a6cd0ed7539e427d4443671faef9f95058
treee00142a7a6716b346a6cc059cbc0c0ae99c0d225
parentfce089c8a2d19480d65d217826a7399fc57019f8
iris: Properly allow rendering to RGBX formats.

I was converting them at pipe_surface creation time, but not when
answering queries about whether formats support rendering.  This caused
a lot of FBO incomplete errors for formats that ought to be supported.

Fixes "Child of Light", which uses PIPE_FORMAT_R8G8B8X8_UNORM_SRGB.

Also fixes Witcher 1 using wined3d (GL) according to Timur Kristóf.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109738
src/gallium/drivers/iris/iris_formats.c