radv: disable CPU caching for the upload BO to reduce fetch latency
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 20 Jul 2020 11:47:19 +0000 (13:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Jul 2020 11:54:39 +0000 (11:54 +0000)
commit6ced98c94e28b41cc63ec94d4bdfec99d71db598
treec954d842b760955194d61c47c960736a6fb3a1da
parentb3eae4e0376e8eaea80a578daed793554e8ed9a0
radv: disable CPU caching for the upload BO to reduce fetch latency

AMDGPU_GEM_CREATE_CPU_GTT_USWC should be faster when CPU reads
are unexpected (because they aren't cached).

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/5978>
src/amd/vulkan/radv_cmd_buffer.c