From f4c74f74f84eec26136e817bcdafea8dc814366f Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Wed, 9 Feb 2022 13:13:17 -0800 Subject: [PATCH] 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 Part-of: --- 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); } }