From a79f1389f36c78866f3f3c97dc777022cb1ac079 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Sun, 29 Mar 2020 16:17:31 -0700 Subject: [PATCH] vrend: remove vrend_lookup_renderer_ctx Context lookup should happen in virglrenderer.c such that we can dispatch through the context callbacks. Being able to get rid of vrend_lookup_renderer_ctx (context lookup inside vrend) is significant. Signed-off-by: Chia-I Wu Tested-by: Gurchetan Singh Reviewed-by: Gurchetan Singh --- src/vrend_decode.c | 7 ------- src/vrend_renderer.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/vrend_decode.c b/src/vrend_decode.c index 34943aa..4688d53 100644 --- a/src/vrend_decode.c +++ b/src/vrend_decode.c @@ -1415,13 +1415,6 @@ struct virgl_context *vrend_renderer_context_create(uint32_t handle, return &dctx->base; } -struct vrend_context *vrend_lookup_renderer_ctx(uint32_t ctx_id) -{ - struct vrend_decode_ctx *dctx = - (struct vrend_decode_ctx *)virgl_context_lookup(ctx_id); - return dctx ? dctx->grctx : NULL; -} - static void vrend_decode_ctx_destroy(struct virgl_context *ctx) { struct vrend_decode_ctx *dctx = (struct vrend_decode_ctx *)ctx; diff --git a/src/vrend_renderer.h b/src/vrend_renderer.h index aeddaac..e239b66 100644 --- a/src/vrend_renderer.h +++ b/src/vrend_renderer.h @@ -340,8 +340,6 @@ void vrend_set_tess_state(struct vrend_context *ctx, const float tess_factors[6] void vrend_renderer_fini(void); -struct vrend_context *vrend_lookup_renderer_ctx(uint32_t ctx_id); - int vrend_renderer_create_fence(int client_fence_id, uint32_t ctx_id); void vrend_renderer_check_fences(void);