<div dir="ltr"><div>Oops. I always forget about that.<br><br></div>Reviewed-by: Marek Olšák <<a href="mailto:maraeo@gmail.com">maraeo@gmail.com</a>><br><br>Marek<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Apr 2, 2013 at 12:46 AM, Brian Paul <span dir="ltr"><<a href="mailto:brian.e.paul@gmail.com" target="_blank">brian.e.paul@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Brian Paul <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>><br>
<br>
The VMware svga driver is picky about making sure the VBO is unmapped<br>
before drawing.<br>
---<br>
src/gallium/auxiliary/hud/hud_context.c | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c<br>
index 60355ca..65b8247 100644<br>
--- a/src/gallium/auxiliary/hud/hud_context.c<br>
+++ b/src/gallium/auxiliary/hud/hud_context.c<br>
@@ -476,6 +476,9 @@ hud_draw(struct hud_context *hud, struct pipe_resource *tex)<br>
hud_pane_accumulate_vertices(hud, pane);<br>
}<br>
<br>
+ /* unmap the uploader's vertex buffer before drawing */<br>
+ u_upload_flush(hud->uploader);<br>
+<br>
/* draw accumulated vertices for background quads */<br>
cso_set_fragment_shader_handle(hud->cso, hud->fs_color);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.7.9.5<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>