aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_pass.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2020-04-30 18:42:27 +0200
committerMarge Bot <[email protected]>2020-05-06 06:58:24 +0000
commitf457e1b6d5814e51cb9e0ae47e8fd5936139f42f (patch)
tree37c050f76b6aeb08bff421c0d06ba08135f8365c /src/amd/vulkan/radv_pass.c
parentf3e37f5d262606f1a0f5a3073835ac0ecc41f629 (diff)
radv/winsys: do not count visible VRAM buffers twice in the budget
The VRAM size returned to apps is computed as follows: vram_size = real_hw_vram_size - visible_vram_size. Visible VRAM buffers should be counted only in the visible VRAM counter and not twice. Buffers with the NO_CPU_ACCESS flag are known to not be mappable, so they are counted in the VRAM counter. Other buffers, with the CPU_ACCESS flag, or without any of both (imported buffers) are counted in the visible VRAM counter because they are mappable. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4834>
Diffstat (limited to 'src/amd/vulkan/radv_pass.c')
0 files changed, 0 insertions, 0 deletions