intel/blorp: Handle more exotic destination formats
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 21 Jan 2017 06:12:06 +0000 (22:12 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 9 May 2018 18:16:33 +0000 (11:16 -0700)
commit804856fa5735164cc0733ad0ea62adad39b00ae2
treee0d6eb5e303372e88b87b00c85c3a66a7b2f287e
parent9e492bb92e95f02148165eb9e9e3f37f76a66417
intel/blorp: Handle more exotic destination formats

This commit adds support for the following formats as destination
formats even though the hardware does not support rendering to them:

 - ISL_FORMAT_R24_UNORM_X8_TYPELESS
 - ISL_FORMAT_A4B4G4R4_UNORM
 - ISL_FORMAT_L8_UNORM_SRGB
 - ISL_FORMAT_R9G9B9E5_SHAREDEXP

This is done by using a different format and emitting shader code to
fake it the rest of the way.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp_blit.c
src/intel/blorp/blorp_priv.h