summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-04-21 22:44:04 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:06 -0800
commit1bba60a4bf7e0a29c90c2fea77746e64d837123f (patch)
treece568554359c8520a00c5f88e885c05f87f73477 /src/gallium/drivers
parente22da1e7b1ff997f45b3939c185a776f9dd08b1e (diff)
iris: fix sampler view crashes
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/iris/iris_state.c2
1 files changed, 1 insertions, 1 deletions
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);