mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
d3d12: Don't allow CPU storage for huge buffers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40896>
This commit is contained in:
parent
889f71f71a
commit
2c99dc8a18
1 changed files with 2 additions and 1 deletions
|
|
@ -513,7 +513,8 @@ d3d12_resource_create_or_place(struct d3d12_screen *screen,
|
|||
init_valid_range(res);
|
||||
threaded_resource_init(&res->base.b,
|
||||
templ->usage == PIPE_USAGE_DEFAULT &&
|
||||
templ->target == PIPE_BUFFER);
|
||||
templ->target == PIPE_BUFFER &&
|
||||
templ->width0 < 0x1000);
|
||||
|
||||
memset(&res->bind_counts, 0, sizeof(d3d12_resource::bind_counts));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue