summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-10-26 06:58:56 -0700
committerMatt Turner <mattst88@gmail.com>2015-11-02 09:33:31 -0800
commit7c81a6a647257c309cb1ca36c60aa4bfa8e2e022 (patch)
tree026f011468ed261c31ce96f68e92c6b06f17d8c2 /src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
parentd9b09f8a306dfd471e45b5294c3adcb119114387 (diff)
downloadexternal_mesa3d-7c81a6a647257c309cb1ca36c60aa4bfa8e2e022.zip
external_mesa3d-7c81a6a647257c309cb1ca36c60aa4bfa8e2e022.tar.gz
external_mesa3d-7c81a6a647257c309cb1ca36c60aa4bfa8e2e022.tar.bz2
i965: Replace default case with list of enum values.
If we add a new file type, we'd like to get warnings if it's not handled. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
index 97e206d..2620482 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
@@ -416,9 +416,10 @@ fs_visitor::try_copy_propagate(fs_inst *inst, int arg, acp_entry *entry)
inst->src[arg].subreg_offset = offset % 32;
}
break;
- default:
- unreachable("Invalid register file");
- break;
+
+ case MRF:
+ case IMM:
+ unreachable("not reached");
}
if (has_source_modifiers) {