From a5529eb235bcff2c677fb6a32ae633d3b4d6700d Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 15 Oct 2020 15:11:56 -0500 Subject: [PATCH] anv: Go back to using the sampler for UBO pulls This functionally reverts b54d37a8676acbd725ef1817479f2630d3ea95be. This fixes a 12% performance regression in DOOM (2016) on Tigerlake. Fixes: b54d37a8676a "anv: Use the data cache for indirect UBO..." Reviewed-by: Kenneth Graunke Part-of: --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 6efa2c7..3accdf7 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -513,7 +513,7 @@ anv_physical_device_try_create(struct anv_instance *instance, device->info.gen < 8 || !device->has_context_isolation; device->compiler->supports_shader_constants = true; device->compiler->compact_params = false; - device->compiler->indirect_ubos_use_sampler = device->info.gen <= 7; + device->compiler->indirect_ubos_use_sampler = true; /* Broadwell PRM says: * -- 2.7.4