aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_blorp.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-10-07 11:08:27 -0700
committerKenneth Graunke <[email protected]>2013-10-09 16:36:49 -0700
commit4dc25b761553215a686650c6bcb8831ef0c9120d (patch)
tree8b8db1eee8fe9cb9dddcfbf7f5775fb059de2ce3 /src/mesa/drivers/dri/i965/brw_blorp.cpp
parent6f7c41dd1dcc6a636dd99e5d1a3c459918481938 (diff)
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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Chad Versace <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.cpp b/src/mesa/drivers/dri/i965/brw_blorp.cpp
index f5731b6c0f9..46bb244b80c 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp.cpp
@@ -96,12 +96,7 @@ brw_blorp_surface_info::set(struct brw_context *brw,
this->brw_surfaceformat = BRW_SURFACEFORMAT_B8G8R8A8_UNORM;
break;
case MESA_FORMAT_Z16:
- /* The miptree consists of 16 bits per pixel of depth data. Since depth
- * values don't require any blending, it doesn't matter how we interpret
- * the bit pattern as long as we copy the right amount of data, so just
- * map is as 8-bit RG.
- */
- this->brw_surfaceformat = BRW_SURFACEFORMAT_R8G8_UNORM;
+ this->brw_surfaceformat = BRW_SURFACEFORMAT_R16_UNORM;
break;
default:
if (is_render_target) {