radv/gfx10: Enable binning.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 21 Jul 2019 01:40:00 +0000 (03:40 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 23 Jul 2019 19:26:59 +0000 (21:26 +0200)
Numbers for Talos:

gfx10 without binning: 77.0 77.7 77.2 77.6
gfx10 with binning: 82.3 82.0 82.7 82.4

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c

index 93b03afda22ab937af2c733462ee11d25a32b388..9ba100df6e87b59ed0ac14ea2cbf10fe3c8f1623 100644 (file)
@@ -1896,8 +1896,7 @@ VkResult radv_CreateDevice(
                }
        }
 
-       /* TODO: Enable binning for GFX10. */
-       device->pbb_allowed = device->physical_device->rad_info.chip_class == GFX9 &&
+       device->pbb_allowed = device->physical_device->rad_info.chip_class >= GFX9 &&
                              !(device->instance->debug_flags & RADV_DEBUG_NOBINNING);
 
        /* Disabled and not implemented for now. */