mesa: Add unpack_uint_z_row support for floating-point depth buffers
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Jan 2012 19:56:12 +0000 (11:56 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 2 Feb 2012 17:07:01 +0000 (10:07 -0700)
commitaf1477b088448aeca762f515410c80054cb225b9
treec79d9cb5e39aa06d47a6e25701a6d7b7920fa480
parente20e30b28c5c61f99e61f64d84d8bcb0577f1318
mesa: Add unpack_uint_z_row support for floating-point depth buffers

This is a hack, and it will result in incorrect rendering.  However,
it does eliminate spurious warnings in several piglit CopyPixels tests
that involve floating-point depth buffers.

The real solution is to add a zf field to SWspan to store float Z
values.  When a float depth buffer is involved, swrast should also
populate the zf field.  I'll consider this post-8.0 work.

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/format_unpack.c