OSDN Git Service

i965/screen: Use RGBA non-sRGB formats for images
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jun 2018 18:42:37 +0000 (11:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 7 Jun 2018 18:23:34 +0000 (11:23 -0700)
commit0e7f3febf7e739c075a139ae641d65a0618752f3
tree1b4ecc24f750ef1607ab7d34c864ec09a6c1e379
parenta26693493570a9d0f0fba1be617e01ee7bfff4db
i965/screen: Use RGBA non-sRGB formats for images

Not all of the MESA_FORMAT and ISL_FORMAT helpers we use can properly
handle RGBX formats.  Also, we don't want to make decisions based on
those in the first place because we can't render to RGBA and we use the
non-sRGB version to determine whether or not to allow CCS_E.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c