radv/aco: actually disable ACO when unsupported
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 25 Sep 2019 11:04:51 +0000 (12:04 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Thu, 26 Sep 2019 10:04:45 +0000 (11:04 +0100)
We were setting this twice. The second time, we weren't later disabling
it if unsupported.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index af425b39b96b61fbedcb903235cc070fb87cc1dc..ea132ee8bc422c856dc2dce414e6fa476c074454 100644 (file)
@@ -373,7 +373,6 @@ radv_physical_device_init(struct radv_physical_device *device,
                                    (device->use_aco || device->instance->perftest_flags & RADV_PERFTEST_SHADER_BALLOT);
 
        device->use_ngg_streamout = false;
-       device->use_aco = device->instance->perftest_flags & RADV_PERFTEST_ACO;
 
        /* Determine the number of threads per wave for all stages. */
        device->cs_wave_size = 64;