radv: Set the RADEON_SURF_OPTIMIZE_FOR_SPACE flag for images
authorAlex Smith <asmith@feralinteractive.com>
Mon, 17 Jul 2017 10:14:33 +0000 (11:14 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Jul 2017 06:18:35 +0000 (16:18 +1000)
commitf25c7f9f3e3cb8c650a54338575342fa377d7983
tree322a4a724ca85094a1e5e6faa3264884c31cfd51
parent687d241559abfc7fee3b24648481224310f93e52
radv: Set the RADEON_SURF_OPTIMIZE_FOR_SPACE flag for images

This looks like a regression from df301237940 ("radv: use
ac_compute_surface"). Before that, the opt4Space addrlib flag was set
to true unless the image has FMASK (ac_compute_surface will similarly
only set that flag for images without FMASK).

This saves multiple gigabytes of VRAM on one of our games, and brings
its VRAM utilisation on RADV in line with AMDGPU-PRO and NVIDIA.

Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_image.c