diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-11 14:50:39 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-13 10:06:07 +0200 |
commit | 9ced105a52896dddf272a6052412275f65efe3b6 (patch) | |
tree | 10a218cc7ca9358b96b6849bab43fe59d41672cd | |
parent | b6b566b48e0240c1be9b3fd5ff1bb227a40f9260 (diff) |
i965: add missing ir_unop_*/ir_binop_* in visit_leave()
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]>
Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 76dbc065351..58fa2078803 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"); } |