projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c290b1
)
spirv: add switch case for nir_texop_txf_ms_mcs in vtn_handle_texture()
author
Brian Paul
<brianp@vmware.com>
Wed, 18 May 2016 01:28:37 +0000
(19:28 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 18 May 2016 20:57:45 +0000
(14:57 -0600)
Mark it as unreachable. Silences a compiler warning:
spirv/spirv_to_nir.c:1397:4: warning: enumeration value
'nir_texop_txf_ms_mcs' not handled in switch [-Wswitch]
switch (instr->op) {
^
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/compiler/spirv/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/compiler/spirv/spirv_to_nir.c
b/src/compiler/spirv/spirv_to_nir.c
index
56948bf
..
c92dfca
100644
(file)
--- a/
src/compiler/spirv/spirv_to_nir.c
+++ b/
src/compiler/spirv/spirv_to_nir.c
@@
-1413,6
+1413,8
@@
vtn_handle_texture(struct vtn_builder *b, SpvOp opcode,
/* These don't */
instr->sampler = NULL;
break;
+ case nir_texop_txf_ms_mcs:
+ unreachable("unexpected nir_texop_txf_ms_mcs");
}
nir_ssa_dest_init(&instr->instr, &instr->dest,