freedreno/a3xx: add Z32F support

Graphics / Mesa 3D Graphics Library / Mesa - Ilia Mirkin [alum.mit.edu] - 27 April 2015 19:17 UTC

32-bit depth buffers are stored as unorm, and thus need special handling when moving to and from gmem. They are copied into gmem by writing depth, and resolved from gmem using a special resolve bit which apparently float-ifies the data.

1571da6 freedreno/a3xx: add Z32F support
src/gallium/drivers/freedreno/a3xx/fd3_format.c | 2 +-
src/gallium/drivers/freedreno/a3xx/fd3_gmem.c | 50 ++++++++++++++++++---
src/gallium/drivers/freedreno/freedreno_context.h | 1 +
src/gallium/drivers/freedreno/freedreno_program.c | 19 ++++++--
src/gallium/drivers/freedreno/freedreno_util.c | 3 ++
5 files changed, 65 insertions(+), 10 deletions(-)

Upstream: cgit.freedesktop.org


  • Share