intel/blorp: Fix blits to R8G8B8_UNORM_SRGB sRGB harder
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 Jul 2018 22:10:57 +0000 (15:10 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Jul 2018 07:36:39 +0000 (00:36 -0700)
commitd0ee0a0a5d5fb658c87fed82cbcf9b48437abb2c
tree3acca97e4292c0a8bbe78ca9e42730c63365c1e9
parentabd629eb3d4027b89c13158e90c6732b412e550e
intel/blorp: Fix blits to R8G8B8_UNORM_SRGB sRGB harder

The first fix attempt contained a nasty typo which somehow didn't get
caught in review.  It also didn't work as intended because the sRGB
conversion was happening but then throwing away all but the red channel
because it dind't know it was RGB.  Really, it's my fault for trying to
fix a bug without first writing tests.  I've now written tests and they
pass with this change. :)

Fixes: 11712b9ca17 "intel/blorp: Fix blits to R8G8B8_UNORM_SRGB"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/blorp/blorp_blit.c