mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
glsl: Handle fp16 unary operations when lowering matrix operations
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3929>
This commit is contained in:
parent
1b8edffaa5
commit
ad27eb28d9
1 changed files with 3 additions and 0 deletions
|
|
@ -360,6 +360,9 @@ ir_mat_op_to_vec_visitor::visit_leave(ir_assignment *orig_assign)
|
|||
switch (orig_expr->operation) {
|
||||
case ir_unop_d2f:
|
||||
case ir_unop_f2d:
|
||||
case ir_unop_f2f16:
|
||||
case ir_unop_f2fmp:
|
||||
case ir_unop_f162f:
|
||||
case ir_unop_neg: {
|
||||
/* Apply the operation to each column.*/
|
||||
for (i = 0; i < matrix_columns; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue