summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_screen.h
diff options
context:
space:
mode:
authorGeorge Kyriazis <[email protected]>2016-03-14 17:40:14 -0500
committerTim Rowley <[email protected]>2016-03-17 20:57:52 -0500
commitdd63fa28f14f8ddeeeca1847eb7d38f4e2bc2234 (patch)
tree2ebbbcaaa584cb02cb0456a04ba0178da3973191 /src/gallium/drivers/swr/swr_screen.h
parent952c166170aaf44af10e7463359e7a3e5e6fe65d (diff)
gallium/swr: Cleaned up some context-resource management
Removed bound_to_context. We now pick up the context from the screen instead of the resource itself. The resource could be out-of-date and point to a pipe that is already freed. Fixes manywin mesa xdemo. Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_screen.h')
-rw-r--r--src/gallium/drivers/swr/swr_screen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.h b/src/gallium/drivers/swr/swr_screen.h
index a96dc44cf66..0c82a2eff7a 100644
--- a/src/gallium/drivers/swr/swr_screen.h
+++ b/src/gallium/drivers/swr/swr_screen.h
@@ -32,6 +32,7 @@ struct sw_winsys;
struct swr_screen {
struct pipe_screen base;
+ struct pipe_context *pipe;
struct pipe_fence_handle *flush_fence;