OSDN Git Service

blorp: Don't try to use R32_UNORM for R24_UNORM_X8_TYPELESS rendering.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 10 Aug 2018 06:11:07 +0000 (23:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 11 Aug 2018 19:33:27 +0000 (12:33 -0700)
commit8a290862859bade4b238f595378d63bb920e763a
treebbcf78de7e7867438035b70ac6f151ae64fffe5e
parenta9f7bcfdf90d8302e9ed27601b2b7001b9940740
blorp: Don't try to use R32_UNORM for R24_UNORM_X8_TYPELESS rendering.

The hardware doesn't support rendering to R24_UNORM_X8_TYPELESS, so
Jason decided to fake it with a bit of shader math and R32_UNORM RTs.

The only problem is that R32_UNORM isn't renderable either...so we've
just traded one bad format for another.

This patch makes us use R32_UINT instead.

Fixes: 804856fa5735164cc0733ad0ea62adad39b00ae2 (intel/blorp: Handle more exotic destination formats)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/blorp/blorp_blit.c