mesa: make the arguments in the asm statemants optional
authorZack Rusin <zackr@vmware.com>
Wed, 30 Jun 2010 01:45:41 +0000 (21:45 -0400)
committerZack Rusin <zackr@vmware.com>
Wed, 30 Jun 2010 01:45:41 +0000 (21:45 -0400)
geometry shaders emit/end functions don't take any arguments

src/glsl/cl/sl_cl_parse.c
src/mesa/state_tracker/st_program.c

index 65df6c3..09456f5 100644 (file)
@@ -2191,9 +2191,8 @@ _parse_asm_statement(struct parse_context *ctx,
    if (_parse_identifier(ctx, &p)) {
       return -1;
    }
-   if (_parse_asm_arguments(ctx, &p)) {
-      return -1;
-   }
+   /* optional arguments */
+   _parse_asm_arguments(ctx, &p);
    if (_parse_token(ctx, SL_PP_SEMICOLON, &p)) {
       return -1;
    }
index 1b8612d..172d7df 100644 (file)
@@ -489,7 +489,6 @@ st_translate_geometry_program(struct st_context *st,
       return;
    }
 
-   assert(0);
    /* which vertex output goes to the first geometry input */
    if (inputsRead & GEOM_BIT_VERTICES)
       vslot = 0;