diff options
author | Matt Turner <[email protected]> | 2014-08-11 11:12:43 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-08-12 11:09:45 -0700 |
commit | e005c1148db04cb706a65392c2b0beda19efa0b1 (patch) | |
tree | db009e770a400c82f473a5c79f95505530259d33 /src/mesa/drivers/dri/i965/brw_eu.c | |
parent | ab66b196699b80cc32cf00fa7cd794cfa992cf3c (diff) |
i965: Return NONE from brw_swap_cmod on unknown input.
Comparing ~0u with a packed enum (i.e., 1 byte) always evaluates to
false. Shouldn't gcc warn about this?
Reported-by: Connor Abbott <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.c b/src/mesa/drivers/dri/i965/brw_eu.c index b4d5d882883..990597286d8 100644 --- a/src/mesa/drivers/dri/i965/brw_eu.c +++ b/src/mesa/drivers/dri/i965/brw_eu.c @@ -84,7 +84,7 @@ brw_swap_cmod(uint32_t cmod) case BRW_CONDITIONAL_LE: return BRW_CONDITIONAL_GE; default: - return ~0; + return BRW_CONDITIONAL_NONE; } } |