radv/gfx9: fix primitive topology when adjacency is used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Dec 2017 19:57:21 +0000 (20:57 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Dec 2017 09:49:17 +0000 (10:49 +0100)
Found by inspection.

Cc: 17.3 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c

index 3fc21bb501f0ac473be46d8f35db624fab07ce17..14ada20d525c4bf24ed7d04fccee5c411142743c 100644 (file)
@@ -1122,7 +1122,7 @@ static void calculate_gfx9_gs_info(const VkGraphicsPipelineCreateInfo *pCreateIn
        case VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY:
        case VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY:
        case VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY:
-               uses_adjacency = false;
+               uses_adjacency = true;
                break;
        default:
                uses_adjacency = false;