Mesa (master): gallium/hud: increase the vertex buffer size for text

Marek Olšák mareko at kemper.freedesktop.org
Thu Jan 5 17:30:23 UTC 2017


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Dec 25 21:07:47 2016 +0100

gallium/hud: increase the vertex buffer size for text

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/gallium/auxiliary/hud/hud_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index 805e1a7..7fa62a9 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -566,7 +566,7 @@ hud_draw(struct hud_context *hud, struct pipe_resource *tex)
    /* prepare vertex buffers */
    hud_alloc_vertices(hud, &hud->bg, 4 * 256, 2 * sizeof(float));
    hud_alloc_vertices(hud, &hud->whitelines, 4 * 256, 2 * sizeof(float));
-   hud_alloc_vertices(hud, &hud->text, 4 * 1024, 4 * sizeof(float));
+   hud_alloc_vertices(hud, &hud->text, 16 * 1024, 4 * sizeof(float));
 
    /* prepare all graphs */
    hud_batch_query_update(hud->batch_query);




More information about the mesa-commit mailing list