summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_screen.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-01-28 19:10:22 +0000
committerJosé Fonseca <[email protected]>2013-01-29 07:06:36 +0000
commit0ca384fb39f6d98af2de5654c46394743147d228 (patch)
treeb258feddab93dd6601564c04ed9a322d1065a5f4 /src/gallium/drivers/llvmpipe/lp_screen.c
parent9add4e803877f97ad7f6d479d81d537426f09b6f (diff)
llvmpipe: Support Z16_UNORM as depth-stencil format.
Simply by adjusting the vector element width after/before reading/writing the depth-stencil values. Ran several GL_DEPTH_COMPONENT16 piglit tests without regressions. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 872967caeef..de80c6fdc6b 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -302,10 +302,6 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
if (!format_desc)
return FALSE;
- /* Z16 support is missing, which breaks the blit */
- if (format == PIPE_FORMAT_Z16_UNORM)
- return FALSE;
-
assert(target == PIPE_BUFFER ||
target == PIPE_TEXTURE_1D ||
target == PIPE_TEXTURE_1D_ARRAY ||
@@ -360,8 +356,8 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS)
return FALSE;
- /* FIXME: Temporary restriction. See lp_state_fs.c. */
- if (format_desc->block.bits != 32)
+ /* FIXME: Temporary restriction. See lp_bld_depth.c. */
+ if (format_desc->block.bits > 32)
return FALSE;
}