swr: Update screen->context pointer with multiple contexts.
authorBruce Cherniak <bruce.cherniak@intel.com>
Fri, 17 Jun 2016 17:14:54 +0000 (12:14 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 17 Jun 2016 18:56:03 +0000 (13:56 -0500)
commit6b0ac95c2862b4d464079b2edd9b59b5ef906da3
treece7822d32888051c4418d1198f1ca3400381e792
parentace3124f2293616aa09f66a4cb0b38830df8683a
swr: Update screen->context pointer with multiple contexts.

A pipe pointer in the screen allows for access to current device context
 in flush_frontbuffer and resource_destroy.  This wasn't tracking current
context in multi-context situations.

v2: More caffeine.  Corrected compare, removed unnecessary set of
screen-pipe in create_context, and added a few comments.
src/gallium/drivers/swr/swr_context.cpp
src/gallium/drivers/swr/swr_state.cpp