Mesa (master): vc4: Don' t forget to store stencil along with depth when storing either.

Eric Anholt anholt at kemper.freedesktop.org
Tue Sep 30 19:58:03 UTC 2014


Module: Mesa
Branch: master
Commit: 8786544b3e3a024ccb04bb0c85f2afc07bb57f63
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8786544b3e3a024ccb04bb0c85f2afc07bb57f63

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Sep 30 11:23:29 2014 -0700

vc4: Don't forget to store stencil along with depth when storing either.

Otherwise, we'd replace the stencil in our packed depth/stencil with 0s.
Fixes about 50 piglit tests.

---

 src/gallium/drivers/vc4/vc4_context.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c
index d1b4fbc..72ac344 100644
--- a/src/gallium/drivers/vc4/vc4_context.c
+++ b/src/gallium/drivers/vc4/vc4_context.c
@@ -174,7 +174,7 @@ vc4_setup_rcl(struct vc4_context *vc4)
                                 cl_start_reloc(&vc4->rcl, 1);
                                 cl_u8(&vc4->rcl, VC4_PACKET_STORE_TILE_BUFFER_GENERAL);
                                 cl_u8(&vc4->rcl,
-                                      VC4_LOADSTORE_TILE_BUFFER_Z |
+                                      VC4_LOADSTORE_TILE_BUFFER_ZS |
                                       (zsurf->tiling <<
                                        VC4_LOADSTORE_TILE_BUFFER_FORMAT_SHIFT));
                                 cl_u8(&vc4->rcl,




More information about the mesa-commit mailing list