glsl: flatten a tautological conditional in lower_precision

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5746>
This commit is contained in:
Marek Olšák 2020-06-26 07:16:41 -04:00
parent 9fccae80be
commit 977b84652a
1 changed files with 5 additions and 8 deletions

View File

@ -378,14 +378,11 @@ find_lowerable_rvalues_visitor::visit_enter(ir_texture *ir)
{ {
ir_hierarchical_visitor::visit_enter(ir); ir_hierarchical_visitor::visit_enter(ir);
if (stack.back().state == UNKNOWN) { /* The precision of the sample value depends on the precision of the
/* The precision of the sample value depends on the precision of the * sampler.
* sampler. */
*/ stack.back().state = handle_precision(ir->type,
stack.back().state = handle_precision(ir->type, ir->sampler->precision());
ir->sampler->precision());
}
return visit_continue; return visit_continue;
} }