OSDN Git Service

vc4: Don't forget to set the depth clear value in the packet.
authorEric Anholt <eric@anholt.net>
Sat, 9 Aug 2014 18:00:51 +0000 (11:00 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 21:47:54 +0000 (14:47 -0700)
This gets glxgears partially rendering again.

src/gallium/drivers/vc4/vc4_context.c

index ffcbbb2..8ca4031 100644 (file)
@@ -105,7 +105,7 @@ vc4_setup_rcl(struct vc4_context *vc4)
         cl_u8(&vc4->rcl, VC4_PACKET_CLEAR_COLORS);
         cl_u32(&vc4->rcl, vc4->clear_color[0]);
         cl_u32(&vc4->rcl, vc4->clear_color[1]);
-        cl_u32(&vc4->rcl, 0);
+        cl_u32(&vc4->rcl, vc4->clear_depth);
         cl_u8(&vc4->rcl, 0);
 
         cl_start_reloc(&vc4->rcl, 1);