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 <olvaffe@gmail.com>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Chia-I Wu 5 years ago
parent dd11dd2a77
commit a79f1389f3
  1. 7
      src/vrend_decode.c
  2. 2
      src/vrend_renderer.h

@ -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;

@ -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);

Loading…
Cancel
Save