i965/blorp: Use R16_UNORM for Z16 surfaces.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Oct 2013 18:08:27 +0000 (11:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 9 Oct 2013 23:36:49 +0000 (16:36 -0700)
commit4dc25b761553215a686650c6bcb8831ef0c9120d
tree8b8db1eee8fe9cb9dddcfbf7f5775fb059de2ce3
parent6f7c41dd1dcc6a636dd99e5d1a3c459918481938
i965/blorp: Use R16_UNORM for Z16 surfaces.

Currently, all that matters is that we copy the correct number of bits,
so any format that has 16-bits of data will work fine.

Once BLORP begins handling format conversions, the sampler will need to
correctly interpret the data.  We don't need a depth format, but we do
need the right number of components and data type (UNORM).

For Z16, this means using R16_UNORM.

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