nir/spirv: Get rid of default GS info
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 00:41:54 +0000 (16:41 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 Dec 2015 01:45:43 +0000 (17:45 -0800)
shaderc has been fixed for a while now.

src/glsl/nir/spirv/spirv_to_nir.c

index 6a4cc182ff7a17816a02821199d04043f1e97c9b..e184ef93359e9cff092ca276e13b597c64ec7291 100644 (file)
@@ -3674,12 +3674,6 @@ spirv_to_nir(const uint32_t *words, size_t word_count,
    b->values = rzalloc_array(b, struct vtn_value, value_id_bound);
    exec_list_make_empty(&b->functions);
 
-   /* XXX: We shouldn't need these defaults */
-   if (b->shader->stage == MESA_SHADER_GEOMETRY) {
-      b->shader->info.gs.vertices_in = 3;
-      b->shader->info.gs.output_primitive = 4; /* GL_TRIANGLES */
-   }
-
    /* Handle all the preamble instructions */
    words = vtn_foreach_instruction(b, words, word_end,
                                    vtn_handle_preamble_instruction);