Mesa (main): d3d12: Add sampler's textures to batch bo tracking
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Feb 10 20:18:08 UTC 2022
Module: Mesa
Branch: main
Commit: f4c74f74f84eec26136e817bcdafea8dc814366f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4c74f74f84eec26136e817bcdafea8dc814366f
Author: Jesse Natalie <jenatali at microsoft.com>
Date: Wed Feb 9 13:13:17 2022 -0800
d3d12: Add sampler's textures to batch bo tracking
This will be important for residency in a future change, but also
is necessary for synchronize() to work correctly for TBOs.
Reviewed-by: Bill Kristiansen <billkris at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14959>
---
src/gallium/drivers/d3d12/d3d12_batch.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/d3d12/d3d12_batch.cpp b/src/gallium/drivers/d3d12/d3d12_batch.cpp
index 598077b2ee8..de85b858c49 100644
--- a/src/gallium/drivers/d3d12/d3d12_batch.cpp
+++ b/src/gallium/drivers/d3d12/d3d12_batch.cpp
@@ -257,6 +257,8 @@ d3d12_batch_reference_sampler_view(struct d3d12_batch *batch,
if (!entry) {
entry = _mesa_set_add(batch->sampler_views, sv);
pipe_reference(NULL, &sv->base.reference);
+
+ d3d12_batch_reference_resource(batch, d3d12_resource(sv->base.texture), false);
}
}
More information about the mesa-commit
mailing list