mesa: make the arguments in the asm statemants optional
geometry shaders emit/end functions don't take any arguments
This commit is contained in:
@@ -2191,9 +2191,8 @@ _parse_asm_statement(struct parse_context *ctx,
|
|||||||
if (_parse_identifier(ctx, &p)) {
|
if (_parse_identifier(ctx, &p)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (_parse_asm_arguments(ctx, &p)) {
|
/* optional arguments */
|
||||||
return -1;
|
_parse_asm_arguments(ctx, &p);
|
||||||
}
|
|
||||||
if (_parse_token(ctx, SL_PP_SEMICOLON, &p)) {
|
if (_parse_token(ctx, SL_PP_SEMICOLON, &p)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@@ -489,7 +489,6 @@ st_translate_geometry_program(struct st_context *st,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(0);
|
|
||||||
/* which vertex output goes to the first geometry input */
|
/* which vertex output goes to the first geometry input */
|
||||||
if (inputsRead & GEOM_BIT_VERTICES)
|
if (inputsRead & GEOM_BIT_VERTICES)
|
||||||
vslot = 0;
|
vslot = 0;
|
||||||
|
Reference in New Issue
Block a user