st/mesa: unmap the stream_uploader buffer before drawing
authorBrian Paul <brianp@vmware.com>
Sat, 10 Jun 2017 03:21:12 +0000 (21:21 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 13 Jun 2017 13:52:54 +0000 (07:52 -0600)
commit26500c3fad822ebcd7e2df186d59f96ae550ef64
tree20a335294824681c173deb9653882c987eb51426
parente5eb9b43631b38120812673f2a9f0cd6b79b0c8e
st/mesa: unmap the stream_uploader buffer before drawing

Some drivers require that the vertex buffers be unmapped prior to
drawing.  This change unmaps the stream_uploader buffer after we've
uploaded the zero-stride attributes (unless the driver supports
rendering with mapped buffers).

This fixes a regression in the VMware driver since 17f776c27be266f2.
Some Mesa demos such as mandelbrot and brick would display black
quads instead of the expected rendering.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_array.c