summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-10-10 12:10:15 +0100
committerRhys Perry <[email protected]>2019-10-10 20:02:36 +0000
commitba71be228fc063b27ad292d206f8c1cac631a73a (patch)
treed658a8df125b96a7ca0719ff680cb8ceca786794 /src
parentb7fc082b2876864ac3088aa9d25930fe8b81c372 (diff)
radv/aco: disable NGG when ACO is used
Note that radv_device.c still has to be modified to use ACO with Navi. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-By: Timur Kristóf <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 582ab228802..cf57a441481 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -339,6 +339,10 @@ radv_physical_device_init(struct radv_physical_device *device,
device->use_ngg = device->rad_info.chip_class >= GFX10 &&
device->rad_info.family != CHIP_NAVI14 &&
!(device->instance->debug_flags & RADV_DEBUG_NO_NGG);
+ if (device->use_aco && device->use_ngg) {
+ fprintf(stderr, "WARNING: disabling NGG because ACO is used.\n");
+ device->use_ngg = false;
+ }
device->use_ngg_streamout = false;