nv50: make sure to clear _all_ layers of all attachments

Graphics / Mesa 3D Graphics Library / Mesa - Ilia Mirkin [alum.mit.edu] - 22 February 2014 17:42 UTC

Unfortunately there's only one RT_ARRAY_MODE setting for all attachments, so clears were previously truncated to the minimum number of layers any attachment had. Instead set the RT_ARRAY_MODE to 512 (the max number of layers) before doing the clear. This fixes gl-3.2-layered-rendering-clear-color-mismatched-layer-count.

Also fix clears of individual layered rt/zeta, in case it ever happens.

6152ba0 nv50: make sure to clear _all_ layers of all attachments
src/gallium/drivers/nouveau/nv50/nv50_context.h | 2 ++
.../drivers/nouveau/nv50/nv50_state_validate.c | 1 +
src/gallium/drivers/nouveau/nv50/nv50_surface.c | 21 +++++++++++++++++---
3 files changed, 21 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share