zink: change pipeline hashes to index based on vk primitive type
[mesa.git] / src / gallium / drivers / zink / zink_program.h
index 9e7582e52c2fafee4ac9dc2368e19d79392b96bc..5e68783a2f80177ea6d36c3db90194c8e4d93174 100644 (file)
@@ -51,7 +51,7 @@ struct zink_gfx_program {
    VkDescriptorSetLayout dsl;
    VkPipelineLayout layout;
    unsigned num_descriptors;
-   struct hash_table *pipelines[PIPE_PRIM_TRIANGLE_FAN + 1];
+   struct hash_table *pipelines[10]; // number of draw modes we support
    struct set *render_passes;
 };