From: Dave Airlie Date: Thu, 25 Aug 2011 20:05:13 +0000 (+0100) Subject: glsl: fix crash when a const is passed to texelFetchOffset X-Git-Tag: 062012170305~4896^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ce716257a3529d0aa750d7a7b344984c5ac4274;p=profile%2Fivi%2Fmesa.git glsl: fix crash when a const is passed to texelFetchOffset while debugging texelFetchOffset we kept hitting the assert. Signed-off-by: Dave Airlie Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 8b79d85..ca45934 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -195,6 +195,7 @@ match_function_by_name(exec_list *instructions, const char *name, if (formal->type->is_numeric() || formal->type->is_boolean()) { switch (formal->mode) { + case ir_var_const_in: case ir_var_in: { ir_rvalue *converted = convert_component(actual, formal->type);