i965: Return NONE from brw_swap_cmod on unknown input.
authorMatt Turner <mattst88@gmail.com>
Mon, 11 Aug 2014 18:12:43 +0000 (11:12 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 12 Aug 2014 18:09:45 +0000 (11:09 -0700)
commite005c1148db04cb706a65392c2b0beda19efa0b1
treedb009e770a400c82f473a5c79f95505530259d33
parentab66b196699b80cc32cf00fa7cd794cfa992cf3c
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 <cwabbott0@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp