From c5010e72b6305d11b17c607a8fc1425c0b4c57f5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 11 Sep 2019 09:22:29 +0200 Subject: [PATCH] radv/gfx10: disable unsupported transform feedback features for NGG Mostly multiple streams and queries which have to be fixed/implemented. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 7786a71afc8..6a36c9afa6b 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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; -- 2.30.2