Mesa (main): d3d12: Use CPU storage in TC for buffers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 8 21:13:47 UTC 2022
Module: Mesa
Branch: main
Commit: 52766e020f84904a3c8e7dd1b3ac35bc51b7ae36
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=52766e020f84904a3c8e7dd1b3ac35bc51b7ae36
Author: Jesse Natalie <jenatali at microsoft.com>
Date: Mon Feb 7 14:07:02 2022 -0800
d3d12: Use CPU storage in TC for buffers
Reviewed-by: Sil Vilerino <sivileri at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14933>
---
src/gallium/drivers/d3d12/d3d12_resource.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/d3d12/d3d12_resource.cpp b/src/gallium/drivers/d3d12/d3d12_resource.cpp
index 691cb173751..1d44186e656 100644
--- a/src/gallium/drivers/d3d12/d3d12_resource.cpp
+++ b/src/gallium/drivers/d3d12/d3d12_resource.cpp
@@ -350,7 +350,9 @@ d3d12_resource_create(struct pipe_screen *pscreen,
}
init_valid_range(res);
- threaded_resource_init(&res->base.b, false, 0);
+ threaded_resource_init(&res->base.b,
+ templ->usage == PIPE_USAGE_DEFAULT &&
+ templ->target == PIPE_BUFFER, 64);
memset(&res->bind_counts, 0, sizeof(d3d12_resource::bind_counts));
More information about the mesa-commit
mailing list