diff options
author | Jesse Natalie <jenatali@microsoft.com> | 2022-02-07 14:07:02 -0800 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-02-08 20:36:29 +0000 |
commit | 52766e020f84904a3c8e7dd1b3ac35bc51b7ae36 (patch) | |
tree | 81909a3119c3d04aad477f4861953dc05ce5620e | |
parent | 96d68cb300d58a340fcfcf416fc7ba722ae7fb62 (diff) |
d3d12: Use CPU storage in TC for buffers
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14933>
-rw-r--r-- | src/gallium/drivers/d3d12/d3d12_resource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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)); |