summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_context.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2010-05-31 22:03:56 +0100
committerJakob Bornecrantz <jakob@vmware.com>2010-05-31 22:34:59 +0100
commitcd151effe654c460c46ba55780eb89b3072077c0 (patch)
treef3f083436051cae9277571d7efcc663d7b5e7d3f /src/gallium/drivers/svga/svga_context.c
parent056ae405b6f4659619b9e13ad2ff6fb820e0a837 (diff)
svga: Add a winsys callback to get the svga_winsys_context
The winsys may need to extract the svga_winsys_context from a pipe_context. Add a function to enable that functionality. Cherry-picked from commit e8a8c5e339dfd7a36bb6435fd34175482b9187b8 Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.c')
-rw-r--r--src/gallium/drivers/svga/svga_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c
index 75d8afb2ea..3b30b9e341 100644
--- a/src/gallium/drivers/svga/svga_context.c
+++ b/src/gallium/drivers/svga/svga_context.c
@@ -239,3 +239,8 @@ void svga_hwtnl_flush_retry( struct svga_context *svga )
assert(ret == 0);
}
+struct svga_winsys_context *
+svga_winsys_context( struct pipe_context *pipe )
+{
+ return svga_context( pipe )->swc;
+}