freedreno/a3xx: fix generic clear path
authorRob Clark <robdclark@gmail.com>
Tue, 16 Aug 2016 23:13:55 +0000 (19:13 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 16 Aug 2016 23:26:03 +0000 (19:26 -0400)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_draw.c

index efc1dd2774de13e7c535719c23ca496ea6537dc8..cfe13cd6782895b60f71fe57fe07dfc0967076b3 100644 (file)
@@ -256,6 +256,7 @@ fd_blitter_clear(struct pipe_context *pctx, unsigned buffers,
        struct pipe_draw_info info = {
                .mode = PIPE_PRIM_MAX,    /* maps to DI_PT_RECTLIST */
                .count = 2,
+               .max_index = 1,
                .instance_count = 1,
        };
        ctx->draw_vbo(ctx, &info);