radv: enable GS on GFX9
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 19 Oct 2017 23:09:08 +0000 (01:09 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Oct 2017 06:14:00 +0000 (07:14 +0100)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index 125498809ecbafe3d4254eef6c5526cc6856a772..ab7e97b8ba1e4d7291b0fe243b1b9a06f4c29567 100644 (file)
@@ -419,8 +419,6 @@ void radv_GetPhysicalDeviceFeatures(
        VkPhysicalDevice                            physicalDevice,
        VkPhysicalDeviceFeatures*                   pFeatures)
 {
-       RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
-       bool is_gfx9 = pdevice->rad_info.chip_class >= GFX9;
        memset(pFeatures, 0, sizeof(*pFeatures));
 
        *pFeatures = (VkPhysicalDeviceFeatures) {
@@ -428,7 +426,7 @@ void radv_GetPhysicalDeviceFeatures(
                .fullDrawIndexUint32                      = true,
                .imageCubeArray                           = true,
                .independentBlend                         = true,
-               .geometryShader                           = !is_gfx9,
+               .geometryShader                           = true,
                .tessellationShader                       = true,
                .sampleRateShading                        = true,
                .dualSrcBlend                             = true,