d3d12: Add residency info to d3d12_bo
This is all currently immutable, but will be used to manage the residency of the underlying D3D objects in a future commit. Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14959>
This commit is contained in:
@@ -269,7 +269,7 @@ init_texture(struct d3d12_screen *screen,
|
||||
&res->dt_stride);
|
||||
}
|
||||
|
||||
res->bo = d3d12_bo_wrap_res(d3d12_res, templ->format);
|
||||
res->bo = d3d12_bo_wrap_res(screen, d3d12_res, templ->format, d3d12_resident);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -547,7 +547,7 @@ d3d12_resource_from_handle(struct pipe_screen *pscreen,
|
||||
res->dxgi_format = d3d12_get_format(res->overall_format);
|
||||
|
||||
if (!res->bo) {
|
||||
res->bo = d3d12_bo_wrap_res(d3d12_res, res->overall_format);
|
||||
res->bo = d3d12_bo_wrap_res(screen, d3d12_res, res->overall_format, d3d12_permanently_resident);
|
||||
}
|
||||
init_valid_range(res);
|
||||
|
||||
|
Reference in New Issue
Block a user