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:
0309199
)
nir/spirv: Add a documenting assert for OpConstantSampler
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 5 Jan 2016 01:04:26 +0000
(17:04 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 5 Jan 2016 01:37:10 +0000
(17:37 -0800)
src/glsl/nir/spirv/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv/spirv_to_nir.c
b/src/glsl/nir/spirv/spirv_to_nir.c
index
53228e4
..
9a5cedd
100644
(file)
--- a/
src/glsl/nir/spirv/spirv_to_nir.c
+++ b/
src/glsl/nir/spirv/spirv_to_nir.c
@@
-836,6
+836,10
@@
vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
val->constant = vtn_null_constant(b, val->const_type);
break;
+ case SpvOpConstantSampler:
+ assert(!"OpConstantSampler requires Kernel Capability");
+ break;
+
default:
unreachable("Unhandled opcode");
}