vc4: Drop VC4_PACKET_PRIMITIVE_LIST_FORMAT.
authorEric Anholt <eric@anholt.net>
Sun, 3 Aug 2014 04:23:20 +0000 (21:23 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 21:45:32 +0000 (14:45 -0700)
It's not relevant to our command streams any more.

v2: Fix indentation and a typo in the comment.

src/gallium/drivers/vc4/vc4_draw.c
src/gallium/drivers/vc4/vc4_simulator_validate.c

index 77bbecf2a4edffff63f1cd41223e4268010bf61b..a76880cbb7fb592392b4b4bb3ef8320d91e47140 100644 (file)
@@ -71,9 +71,6 @@ vc4_start_draw(struct vc4_context *vc4)
 
         cl_u8(&vc4->bcl, VC4_PACKET_START_TILE_BINNING);
 
-        cl_u8(&vc4->bcl, VC4_PACKET_PRIMITIVE_LIST_FORMAT);
-        cl_u8(&vc4->bcl, 0x12); // 16 bit triangle
-
         vc4->needs_flush = true;
         vc4->draw_call_queued = true;
 }
index 234160d470b7c177c72f850ce4b88c2a1f3bf4b8..241ca17f33f8fd25038d0298c1cb987928d5205a 100644 (file)
@@ -567,7 +567,10 @@ static const struct cmd_info {
 
        [VC4_PACKET_GL_ARRAY_PRIMITIVE] = { 1, 1, 10, "Vertex Array Primitives", validate_gl_array_primitive },
 
-       [VC4_PACKET_PRIMITIVE_LIST_FORMAT] = { 1, 1, 2, "primitive list format", NULL }, /* XXX: bin valid? */
+       /* This is only used by clipped primitives (packets 48 and 49), which
+        * we don't support parsing yet.
+        */
+       [VC4_PACKET_PRIMITIVE_LIST_FORMAT] = { 1, 1, 2, "primitive list format", NULL },
 
        [VC4_PACKET_GL_SHADER_STATE] = { 1, 1, 5, "GL Shader State", validate_gl_shader_state },
        [VC4_PACKET_NV_SHADER_STATE] = { 1, 1, 5, "NV Shader State", validate_nv_shader_state },