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:
Jesse Natalie 2022-02-09 13:13:17 -08:00 committed by Marge Bot
parent 34e53d4c9c
commit f4c74f74f8

View file

@ -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);
}
}