gallium/swr: Cleaned up some context-resource management
authorGeorge Kyriazis <george.kyriazis@intel.com>
Mon, 14 Mar 2016 22:40:14 +0000 (17:40 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 18 Mar 2016 01:57:52 +0000 (20:57 -0500)
commitdd63fa28f14f8ddeeeca1847eb7d38f4e2bc2234
tree2ebbbcaaa584cb02cb0456a04ba0178da3973191
parent952c166170aaf44af10e7463359e7a3e5e6fe65d
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 <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_context.cpp
src/gallium/drivers/swr/swr_resource.h
src/gallium/drivers/swr/swr_screen.cpp
src/gallium/drivers/swr/swr_screen.h
src/gallium/drivers/swr/swr_state.cpp