diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index f6f4428c5bd..ab56e86f924 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -367,8 +367,8 @@ agx_create_sampler_state(struct pipe_context *pctx, static void agx_delete_sampler_state(struct pipe_context *ctx, void *state) { - struct agx_bo *bo = state; - agx_bo_unreference(bo); + struct agx_sampler_state *so = state; + agx_bo_unreference(so->desc); } static void