iris: fix sampler view crashes
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 22 Apr 2018 05:44:04 +0000 (22:44 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:06 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_state.c

index 4460f80d217494f28e7f01a6511a42523bb5e3b6..a3ebf3d0399bfc7e86d8564e9579bca6c72d1462 100644 (file)
@@ -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);