Mesa (main): aux/tc: fix ubo unbinding

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 4 17:25:38 UTC 2021


Module: Mesa
Branch: main
Commit: 535a5a9dfe3ae759a461182a747e926044292b30
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=535a5a9dfe3ae759a461182a747e926044292b30

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Jun  4 09:57:58 2021 -0400

aux/tc: fix ubo unbinding

unsetting a ubo requires an unbind

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11187>

---

 src/gallium/auxiliary/util/u_threaded_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c
index 38328a72a15..e69eb888ddd 100644
--- a/src/gallium/auxiliary/util/u_threaded_context.c
+++ b/src/gallium/auxiliary/util/u_threaded_context.c
@@ -1050,6 +1050,7 @@ tc_set_constant_buffer(struct pipe_context *_pipe,
       p->shader = shader;
       p->index = index;
       p->is_null = true;
+      tc_unbind_buffer(&tc->const_buffers[shader][index]);
       return;
    }
 



More information about the mesa-commit mailing list