gallium/hud: increase the vertex buffer size for background quads
authorMarek Olšák <marek.olsak@amd.com>
Sun, 15 Jan 2017 21:01:39 +0000 (22:01 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 16 Jan 2017 14:35:30 +0000 (15:35 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/hud/hud_context.c

index 7fa62a91866b2b0ec45dfaa05e081932988935ab..9f067f3dfdb0833569097ab8934c9a82e87018b6 100644 (file)
@@ -564,7 +564,7 @@ hud_draw(struct hud_context *hud, struct pipe_resource *tex)
    cso_set_constant_buffer(cso, PIPE_SHADER_VERTEX, 0, &hud->constbuf);
 
    /* prepare vertex buffers */
-   hud_alloc_vertices(hud, &hud->bg, 4 * 256, 2 * sizeof(float));
+   hud_alloc_vertices(hud, &hud->bg, 16 * 256, 2 * sizeof(float));
    hud_alloc_vertices(hud, &hud->whitelines, 4 * 256, 2 * sizeof(float));
    hud_alloc_vertices(hud, &hud->text, 16 * 1024, 4 * sizeof(float));