radv/winsys: add a new flag that requests zerovram allocations
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Feb 2020 06:19:27 +0000 (07:19 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Feb 2020 17:47:29 +0000 (18:47 +0100)
commit37650bf93803822d6e3aefae7c2f4c7eef5d6171
tree24fa5e3c953d8cd1ab7567677717e1d908972713
parent7a73446c513e2218a08ae9425a1bea49c63080a7
radv/winsys: add a new flag that requests zerovram allocations

This introduces RADON_FLAG_ZERO_VRAM.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3888>
src/amd/vulkan/radv_radeon_winsys.h
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c