glsl: Bail after reporting an error for non-constant const_in parameters.
Otherwise we continue and hit the "Illegal formal parameter mode" assertion. Fixes negative compile test texelFetchOffset.frag in piglit. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
27395cb5b6
commit
c25b494332
|
@ -164,6 +164,7 @@ match_function_by_name(exec_list *instructions, const char *name,
|
||||||
_mesa_glsl_error(loc, state,
|
_mesa_glsl_error(loc, state,
|
||||||
"parameter `%s' must be a constant expression",
|
"parameter `%s' must be a constant expression",
|
||||||
formal->name);
|
formal->name);
|
||||||
|
return ir_call::get_error_instruction(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((formal->mode == ir_var_out)
|
if ((formal->mode == ir_var_out)
|
||||||
|
|
Loading…
Reference in New Issue