From 1bba60a4bf7e0a29c90c2fea77746e64d837123f Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 21 Apr 2018 22:44:04 -0700 Subject: [PATCH] iris: fix sampler view crashes --- src/gallium/drivers/iris/iris_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 4460f80d217..a3ebf3d0399 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1296,7 +1296,7 @@ static void iris_sampler_view_destroy(struct pipe_context *ctx, struct pipe_sampler_view *state) { - struct iris_surface *isv = (void *) state; + struct iris_sampler_view *isv = (void *) state; pipe_resource_reference(&state->texture, NULL); pipe_resource_reference(&isv->surface_state_resource, NULL); free(isv); -- 2.30.2