Mesa (main): zink: remove resource refs from samplerviews
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 7 00:31:25 UTC 2021
Module: Mesa
Branch: main
Commit: b036215594f94a42eb6a6ef364f0912f40553d38
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b036215594f94a42eb6a6ef364f0912f40553d38
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue May 11 09:21:17 2021 -0400
zink: remove resource refs from samplerviews
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11692>
---
src/gallium/drivers/zink/zink_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 7f7fd21be19..6b68331838e 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -1391,9 +1391,9 @@ zink_set_sampler_views(struct pipe_context *pctx,
update = true;
}
if (!ctx->descriptor_refs_dirty[shader_type == PIPE_SHADER_COMPUTE]) {
- zink_batch_reference_resource_rw(&ctx->batch, res, false);
zink_batch_reference_sampler_view(&ctx->batch, b);
}
+ zink_batch_resource_usage_set(&ctx->batch, res, false);
} else if (a) {
unbind_samplerview(ctx, shader_type, start_slot + i);
update = true;
More information about the mesa-commit
mailing list