Reviewed-by: Timothy Arceri <[email protected]>

On 12/04/17 03:58, Samuel Pitoiset wrote:
Fixes the following Clang warnings.

brw_fs_channel_expressions.cpp:219:12: warning: enumeration values 
'ir_unop_ballot', 'ir_unop_read_first_invocation', and 
'ir_binop_read_invocation' not handled in switch [-Wswitch]
   switch (expr->operation) {
           ^
1 warning generated.

Signed-off-by: Samuel Pitoiset <[email protected]>
---
 src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp 
b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
index 76dbc06535..58fa207880 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
@@ -470,6 +470,9 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment 
*ir)
    case ir_unop_vote_eq:
    case ir_unop_unpack_int_2x32:
    case ir_unop_unpack_uint_2x32:
+   case ir_unop_ballot:
+   case ir_unop_read_first_invocation:
+   case ir_binop_read_invocation:
       unreachable("unsupported");
    }


_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to