glsl: remove the return type from lower_precision
It's unused. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5746>
This commit is contained in:
@@ -188,7 +188,7 @@ ir_variable *compare_index_block(ir_builder::ir_factory &body,
|
|||||||
bool lower_64bit_integer_instructions(exec_list *instructions,
|
bool lower_64bit_integer_instructions(exec_list *instructions,
|
||||||
unsigned what_to_lower);
|
unsigned what_to_lower);
|
||||||
|
|
||||||
bool lower_precision(const struct gl_shader_compiler_options *options,
|
void lower_precision(const struct gl_shader_compiler_options *options,
|
||||||
exec_list *instructions);
|
exec_list *instructions);
|
||||||
|
|
||||||
#endif /* GLSL_IR_OPTIMIZATION_H */
|
#endif /* GLSL_IR_OPTIMIZATION_H */
|
||||||
|
@@ -49,8 +49,6 @@ public:
|
|||||||
|
|
||||||
ir_function_signature *map_builtin(ir_function_signature *sig);
|
ir_function_signature *map_builtin(ir_function_signature *sig);
|
||||||
|
|
||||||
bool progress;
|
|
||||||
|
|
||||||
/* Set of rvalues that can be lowered. This will be filled in by
|
/* Set of rvalues that can be lowered. This will be filled in by
|
||||||
* find_lowerable_rvalues_visitor. Only the root node of a lowerable section
|
* find_lowerable_rvalues_visitor. Only the root node of a lowerable section
|
||||||
* will be added to this set.
|
* will be added to this set.
|
||||||
@@ -777,8 +775,6 @@ find_precision_visitor::handle_rvalue(ir_rvalue **rvalue)
|
|||||||
*/
|
*/
|
||||||
if ((*rvalue)->type->base_type != GLSL_TYPE_BOOL)
|
if ((*rvalue)->type->base_type != GLSL_TYPE_BOOL)
|
||||||
*rvalue = convert_precision((*rvalue)->type->base_type, true, *rvalue);
|
*rvalue = convert_precision((*rvalue)->type->base_type, true, *rvalue);
|
||||||
|
|
||||||
progress = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ir_visitor_status
|
ir_visitor_status
|
||||||
@@ -847,8 +843,7 @@ find_precision_visitor::map_builtin(ir_function_signature *sig)
|
|||||||
}
|
}
|
||||||
|
|
||||||
find_precision_visitor::find_precision_visitor(const struct gl_shader_compiler_options *options)
|
find_precision_visitor::find_precision_visitor(const struct gl_shader_compiler_options *options)
|
||||||
: progress(false),
|
: lowerable_rvalues(_mesa_pointer_set_create(NULL)),
|
||||||
lowerable_rvalues(_mesa_pointer_set_create(NULL)),
|
|
||||||
lowered_builtins(NULL),
|
lowered_builtins(NULL),
|
||||||
clone_ht(NULL),
|
clone_ht(NULL),
|
||||||
lowered_builtin_mem_ctx(NULL),
|
lowered_builtin_mem_ctx(NULL),
|
||||||
@@ -869,7 +864,7 @@ find_precision_visitor::~find_precision_visitor()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
void
|
||||||
lower_precision(const struct gl_shader_compiler_options *options,
|
lower_precision(const struct gl_shader_compiler_options *options,
|
||||||
exec_list *instructions)
|
exec_list *instructions)
|
||||||
{
|
{
|
||||||
@@ -878,6 +873,4 @@ lower_precision(const struct gl_shader_compiler_options *options,
|
|||||||
find_lowerable_rvalues(options, instructions, v.lowerable_rvalues);
|
find_lowerable_rvalues(options, instructions, v.lowerable_rvalues);
|
||||||
|
|
||||||
visit_list_elements(&v, instructions);
|
visit_list_elements(&v, instructions);
|
||||||
|
|
||||||
return v.progress;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user