i965/blorp: Explain why Z24 can't use a sensible format.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Oct 2013 18:27:22 +0000 (11:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 9 Oct 2013 23:36:50 +0000 (16:36 -0700)
commit0589eaecde2fc0fa35fb2e0c54d76db7b6467498
tree443e94d8a514d4a50d343c8107e06c1c3810795f
parent590d71791a50c9b2caebffa79ae4382c78deca80
i965/blorp: Explain why Z24 can't use a sensible format.

We could conceivably use BRW_SURFACEFORMAT_R24_UNORM_X8_TYPELESS for
Z24 source images, allowing conversions from Z24 to either Z16 or Z32F.

Unfortunately, we can't use it for destination images since it isn't
supported as a render target.

Using different formats for sources or destinations would be painful,
so for now, punt.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
src/mesa/drivers/dri/i965/brw_blorp.cpp