From 4971628baedf885ba6987a2946c6e24526464125 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 11 Jan 2014 10:34:36 -0500 Subject: 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 --- src/gallium/drivers/freedreno/freedreno_context.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/freedreno/freedreno_context.h') diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h index 0871efc53c7..0364d0f94c6 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.h +++ b/src/gallium/drivers/freedreno/freedreno_context.h @@ -85,6 +85,7 @@ struct fd_vertex_stateobj { struct fd_context { struct pipe_context base; + struct fd_device *dev; struct fd_screen *screen; struct blitter_context *blitter; struct primconvert_context *primconvert; -- cgit v1.2.3