With this patch, when running with vgpu10, instead of mapping directly to the guest backed memory for texture update, we'll use the texture upload buffer and use the transfer from buffer command to update the host side texture memory.
This optimization yields about 20% performance improvement with Lightsmark2008 and about 40% with Tropics.
Tested with Lightsmark2008, Tropics, Heaven, MTT piglit, glretrace, conform.
f1b3374 svga: use upload buffer for upload texture.
src/gallium/drivers/svga/svga_context.c | 5 +
src/gallium/drivers/svga/svga_context.h | 1 +
.../drivers/svga/svga_resource_buffer_upload.c | 8 +
src/gallium/drivers/svga/svga_resource_texture.c | 258 ++++++++++++++++++--
src/gallium/drivers/svga/svga_resource_texture.h | 32 +++
src/gallium/drivers/svga/svga_winsys.h | 1 +
6 files changed, 279 insertions(+), 26 deletions(-)
Upstream: cgit.freedesktop.org