vc4: Use u_default_set_debug_callback
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Juan A. Suarez <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18351>
This commit is contained in:

committed by
Marge Bot

parent
e9b54e1000
commit
ad5f0592cc
@@ -83,18 +83,6 @@ vc4_texture_barrier(struct pipe_context *pctx, unsigned flags)
|
||||
vc4_flush(pctx);
|
||||
}
|
||||
|
||||
static void
|
||||
vc4_set_debug_callback(struct pipe_context *pctx,
|
||||
const struct util_debug_callback *cb)
|
||||
{
|
||||
struct vc4_context *vc4 = vc4_context(pctx);
|
||||
|
||||
if (cb)
|
||||
vc4->debug = *cb;
|
||||
else
|
||||
memset(&vc4->debug, 0, sizeof(vc4->debug));
|
||||
}
|
||||
|
||||
static void
|
||||
vc4_invalidate_resource(struct pipe_context *pctx, struct pipe_resource *prsc)
|
||||
{
|
||||
@@ -172,7 +160,7 @@ vc4_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
||||
pctx->priv = priv;
|
||||
pctx->destroy = vc4_context_destroy;
|
||||
pctx->flush = vc4_pipe_flush;
|
||||
pctx->set_debug_callback = vc4_set_debug_callback;
|
||||
pctx->set_debug_callback = u_default_set_debug_callback;
|
||||
pctx->invalidate_resource = vc4_invalidate_resource;
|
||||
pctx->texture_barrier = vc4_texture_barrier;
|
||||
|
||||
|
Reference in New Issue
Block a user