llvmpipe: Fix deferred depth writes for Z16_UNORM.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 29 Jan 2013 10:45:01 +0000 (10:45 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 29 Jan 2013 16:41:56 +0000 (16:41 +0000)
commit3b683700efe81f82ba2f978d6c645385e5ccfa97
treeb1a3d9139378782d15e277bcf1a2766d90f5a15f
parent0eb588a37cc0427fd5c6a1ed2b212ed5d68f4dab
llvmpipe: Fix deferred depth writes for Z16_UNORM.

This special path hadn't been exercised by my earlier testing, and mask
values weren't being properly truncated to match the values.

This change fixes that.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_bld_depth.c