mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-05 05:50:29 +01:00
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@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14959>
This commit is contained in:
parent
34e53d4c9c
commit
f4c74f74f8
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue