projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7896d1
)
nir/spirv/glsl450: Implement FrexpStruct
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 20 Jan 2016 19:36:41 +0000
(11:36 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 20 Jan 2016 19:36:41 +0000
(11:36 -0800)
src/glsl/nir/spirv/vtn_glsl450.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv/vtn_glsl450.c
b/src/glsl/nir/spirv/vtn_glsl450.c
index d38e1c73d9df06106e5f833683108e282a811a29..eb81620ea11d6704050da8a7fd07469f753b48dc 100644
(file)
--- a/
src/glsl/nir/spirv/vtn_glsl450.c
+++ b/
src/glsl/nir/spirv/vtn_glsl450.c
@@
-612,8
+612,14
@@
handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint,
return;
}
+ case GLSLstd450FrexpStruct: {
+ assert(glsl_type_is_struct(val->ssa->type));
+ val->ssa->elems[0]->def = build_frexp(nb, src[0],
+ &val->ssa->elems[1]->def);
+ return;
+ }
+
case GLSLstd450ModfStruct:
- case GLSLstd450FrexpStruct:
case GLSLstd450PackDouble2x32:
case GLSLstd450UnpackDouble2x32:
case GLSLstd450IMix: