glsl/opt_algebraic: Drop csel(true/false, x, y) optimization.
No change on freedreno shader-db. Acked-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21475>
This commit is contained in:
@@ -646,13 +646,6 @@ ir_algebraic_visitor::handle_expression(ir_expression *ir)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ir_triop_csel:
|
|
||||||
if (is_vec_one(op_const[0]))
|
|
||||||
return ir->operands[1];
|
|
||||||
if (is_vec_zero(op_const[0]))
|
|
||||||
return ir->operands[2];
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* Remove interpolateAt* instructions for demoted inputs. They are
|
/* Remove interpolateAt* instructions for demoted inputs. They are
|
||||||
* assigned a constant expression to facilitate this.
|
* assigned a constant expression to facilitate this.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user