radeon/winsys: keep screen pointer in winsys v2
authorChristian König <christian.koenig@amd.com>
Wed, 25 Sep 2013 11:59:56 +0000 (13:59 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 25 Sep 2013 17:41:31 +0000 (19:41 +0200)
commit4871128e58402385dc6f920884273c003a1124e1
tree90abea06f7ff8f5b8a0b519de6f1d8e53dfea023
parentf6e2aa0e12e4ce91dc6f8ac5140d6e1f511ea468
radeon/winsys: keep screen pointer in winsys v2

Only create one screen for each winsys instance.
This helps with buffer sharing and interop handling.

v2: rebased and some minor cleanup

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/radeonsi/radeonsi_pipe.c
src/gallium/targets/r300/drm_target.c
src/gallium/targets/r600/drm_target.c
src/gallium/targets/radeonsi/drm_target.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
src/gallium/winsys/radeon/drm/radeon_winsys.h