freedreno: ctx should hold ref to dev
authorRob Clark <robclark@freedesktop.org>
Sat, 11 Jan 2014 15:34:36 +0000 (10:34 -0500)
committerRob Clark <robclark@freedesktop.org>
Sat, 1 Feb 2014 16:47:08 +0000 (11:47 -0500)
commit4971628baedf885ba6987a2946c6e24526464125
tree252bdd1fe354d309551773b3bb0a79cbc2026d7c
parent303df12db8a9b54a3471e259d8b38d1f4cf8b393
freedreno: ctx should hold ref to dev

The ctx should hold ref to dev to avoid problems if screen is destroyed
before ctx.  Doesn't really fix the egl/glx issues, but at least it
prevents things from getting much worse.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a2xx/fd2_context.c
src/gallium/drivers/freedreno/a3xx/fd3_context.c
src/gallium/drivers/freedreno/a3xx/fd3_gmem.c
src/gallium/drivers/freedreno/a3xx/fd3_program.c
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/freedreno/freedreno_context.h
src/gallium/winsys/freedreno/drm/freedreno_drm_winsys.c