aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode/arithmetic_integer.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-17 05:13:35 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-17 18:12:48 -0300
commit153845bba3e005095a5bd1e2e9d203c468954d06 (patch)
treeb3af324d3ef4eb262a709b14d89f63362505c653 /src/video_core/shader/decode/arithmetic_integer.cpp
parent74ce229ca5e51f9a08c1e2a1ff63141d132217a2 (diff)
vk_stream_buffer: Fix out of memory on boot on recent Nvidia drivers
Nvidia recently introduced a new memory type for data streaming (awesome!), but yuzu was assuming that all heaps had enough memory for the assumed stream buffer size (256 MiB). This worked fine on AMD but Nvidia's new memory heap was smaller than 256 MiB. This commit changes this assumption and allocates a bit less than the size of the preferred heap, with a maximum of 256 MiB (to avoid allocating all system memory on integrated devices). - Fixes a crash on NVIDIA 450.82.0.0
Diffstat (limited to 'src/video_core/shader/decode/arithmetic_integer.cpp')
0 files changed, 0 insertions, 0 deletions