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.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/freedreno/freedreno_context.c') diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c index 370c8f69da6..33abb317045 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.c +++ b/src/gallium/drivers/freedreno/freedreno_context.c @@ -168,6 +168,8 @@ fd_context_destroy(struct pipe_context *pctx) fd_bo_del(pipe->bo); } + fd_device_del(ctx->dev); + FREE(ctx); } -- cgit v1.2.3