aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_winsys.h
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2016-09-06 11:29:41 -0700
committerBrian Paul <[email protected]>2016-09-17 10:24:13 -0600
commitf1b3374d28577ca0b84ce1fbab171c39a637d3df (patch)
treec2d708dd1ac83d3390962b5dc8c9f7d85af4ec60 /src/gallium/drivers/svga/svga_winsys.h
parenta9c4a861d5d6bb88c9e6c375403c3985187fd453 (diff)
svga: use upload buffer for upload texture.
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. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_winsys.h')
-rw-r--r--src/gallium/drivers/svga/svga_winsys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_winsys.h b/src/gallium/drivers/svga/svga_winsys.h
index 901a73eba0a..f226581774e 100644
--- a/src/gallium/drivers/svga/svga_winsys.h
+++ b/src/gallium/drivers/svga/svga_winsys.h
@@ -711,6 +711,7 @@ struct svga_winsys_screen
boolean have_generate_mipmap_cmd;
boolean have_set_predication_cmd;
+ boolean have_transfer_from_buffer_cmd;
};