radv/gfx10: disable unsupported transform feedback features for NGG
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 11 Sep 2019 07:22:29 +0000 (09:22 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 16 Sep 2019 10:08:22 +0000 (12:08 +0200)
Mostly multiple streams and queries which have to be fixed/implemented.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index 7786a71afc8d18f4563af0923f1fe859029dc3bc..6a36c9afa6b0b545bad4a26b87e3e6b891b8af93 100644 (file)
@@ -929,7 +929,7 @@ void radv_GetPhysicalDeviceFeatures2(
                        VkPhysicalDeviceTransformFeedbackFeaturesEXT *features =
                                (VkPhysicalDeviceTransformFeedbackFeaturesEXT*)ext;
                        features->transformFeedback = true;
-                       features->geometryStreams = true;
+                       features->geometryStreams = !pdevice->use_ngg_streamout;
                        break;
                }
                case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES_EXT: {
@@ -1415,8 +1415,8 @@ void radv_GetPhysicalDeviceProperties2(
                        properties->maxTransformFeedbackStreamDataSize = 512;
                        properties->maxTransformFeedbackBufferDataSize = UINT32_MAX;
                        properties->maxTransformFeedbackBufferDataStride = 512;
-                       properties->transformFeedbackQueries = true;
-                       properties->transformFeedbackStreamsLinesTriangles = true;
+                       properties->transformFeedbackQueries = !pdevice->use_ngg_streamout;
+                       properties->transformFeedbackStreamsLinesTriangles = !pdevice->use_ngg_streamout;
                        properties->transformFeedbackRasterizationStreamSelect = false;
                        properties->transformFeedbackDraw = true;
                        break;