summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_cmd.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-08-15 09:16:05 -0600
committerBrian Paul <[email protected]>2016-09-17 10:09:00 -0600
commitee5f5e226906ff4e18f34d0e7d41aa82dcf51f70 (patch)
tree296e3b0072c6bbe485ac4b32e4a95f16c67ba858 /src/gallium/drivers/svga/svga_cmd.c
parentce3b34b72702195694ee8fc64c8259d4a16711ab (diff)
svga: reduce unmapping/remapping of the default constant buffer
Previously, every time we put shader constants into the default constant buffer we called u_upload_alloc(), which mapped the buffer, and u_upload_unmap(). We had to unmap the buffer before calling svga_buffer_handle() to get the winsys handle for the buffer. But we really only need to do that the first time we reference the const buffer. Now we try to keep the upload manager's buffer mapped until we fill it or flush the command buffer. v2: add additional comment on the buffer unmapping code in svga_context_flush(), per Charmaine. Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_cmd.c')
0 files changed, 0 insertions, 0 deletions