llvmpipe: Support Z16_UNORM as depth-stencil format.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 28 Jan 2013 19:10:22 +0000 (19:10 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 29 Jan 2013 07:06:36 +0000 (07:06 +0000)
commit0ca384fb39f6d98af2de5654c46394743147d228
treeb258feddab93dd6601564c04ed9a322d1065a5f4
parent9add4e803877f97ad7f6d479d81d537426f09b6f
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 <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_bld_depth.c
src/gallium/drivers/llvmpipe/lp_bld_depth.h
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/llvmpipe/lp_state_fs.c