[Mesa-dev] [PATCH 3/3] hud: flush/unmap the vertex buffer before drawing

Marek Olšák maraeo at gmail.com
Mon Apr 1 17:19:49 PDT 2013


Oops. I always forget about that.

Reviewed-by: Marek Olšák <maraeo at gmail.com>

Marek


On Tue, Apr 2, 2013 at 12:46 AM, Brian Paul <brian.e.paul at gmail.com> wrote:

> From: Brian Paul <brianp at vmware.com>
>
> The VMware svga driver is picky about making sure the VBO is unmapped
> before drawing.
> ---
>  src/gallium/auxiliary/hud/hud_context.c |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/gallium/auxiliary/hud/hud_context.c
> b/src/gallium/auxiliary/hud/hud_context.c
> index 60355ca..65b8247 100644
> --- a/src/gallium/auxiliary/hud/hud_context.c
> +++ b/src/gallium/auxiliary/hud/hud_context.c
> @@ -476,6 +476,9 @@ hud_draw(struct hud_context *hud, struct pipe_resource
> *tex)
>        hud_pane_accumulate_vertices(hud, pane);
>     }
>
> +   /* unmap the uploader's vertex buffer before drawing */
> +   u_upload_flush(hud->uploader);
> +
>     /* draw accumulated vertices for background quads */
>     cso_set_fragment_shader_handle(hud->cso, hud->fs_color);
>
> --
> 1.7.9.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130402/7b80d92e/attachment.html>


More information about the mesa-dev mailing list