Mesa (master): mesa/st: Fix compiler warnings from INTEL_shader_integer_functions.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jan 28 21:02:15 UTC 2020
Module: Mesa
Branch: master
Commit: 527a8c345bf2b011c867f1c4d0356d0f0f3c647d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=527a8c345bf2b011c867f1c4d0356d0f0f3c647d
Author: Eric Anholt <eric at anholt.net>
Date: Fri Jan 24 14:35:49 2020 -0800
mesa/st: Fix compiler warnings from INTEL_shader_integer_functions.
Fixes: 1d165b054863 ("glsl: Add new expressions for INTEL_shader_integer_functions2")
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3539>
---
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index c9f8d13c764..15e912d27aa 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -2388,6 +2388,13 @@ glsl_to_tgsi_visitor::visit_expression(ir_expression* ir, st_src_reg *op)
case ir_unop_ssbo_unsized_array_length:
case ir_unop_atan:
case ir_binop_atan2:
+ case ir_unop_clz:
+ case ir_binop_add_sat:
+ case ir_binop_sub_sat:
+ case ir_binop_abs_sub:
+ case ir_binop_avg:
+ case ir_binop_avg_round:
+ case ir_binop_mul_32x16:
/* This operation is not supported, or should have already been handled.
*/
assert(!"Invalid ir opcode in glsl_to_tgsi_visitor::visit()");
More information about the mesa-commit
mailing list