Ensure that 'in' and 'inout' formal parameters are valid lvalues

This causes the following tests to pass:

    glslparsertest/shaders/function10.frag
This commit is contained in:
Ian Romanick
2010-04-02 15:51:02 -07:00
parent cf37c9e8da
commit c35bb00130
2 changed files with 31 additions and 3 deletions

View File

@@ -126,13 +126,10 @@ parameter_lists_match(exec_list *list_a, exec_list *list_b)
break;
case ir_var_out:
/* FINISHME: Make sure that actual is a valid lvalue. */
score = type_compare(actual->type, param->type);
break;
case ir_var_inout:
/* FINISHME: Make sure that actual is a valid lvalue. */
/* Since there are no bi-directional automatic conversions (e.g.,
* there is int -> float but no float -> int), inout parameters must
* be exact matches.