Revert "hud: don't overrun malloced arrays"
authorDave Airlie <airlied@gmail.com>
Fri, 15 Aug 2014 23:14:17 +0000 (09:14 +1000)
committerDave Airlie <airlied@gmail.com>
Fri, 15 Aug 2014 23:15:19 +0000 (09:15 +1000)
This reverts commit 1cfcd0164e1be7d7b05b693f60a262ad735b7565.

This seems to cause r600g lockups,
https://bugs.freedesktop.org/show_bug.cgi?id=82628

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/hud/hud_context.c

index a05d3c41e330054c0495df35ae4b9d639ac49736..b6e018423ed182be013d6822b8bfe3b2b88db744 100644 (file)
@@ -532,7 +532,6 @@ hud_draw(struct hud_context *hud, struct pipe_resource *tex)
    pipe_resource_reference(&hud->text.vbuf.buffer, NULL);
 
    /* draw the rest */
-   cso_set_vertex_elements(cso, 1, hud->velems);
    LIST_FOR_EACH_ENTRY(pane, &hud->pane_list, head) {
       if (pane)
          hud_pane_draw_colored_objects(hud, pane);