SPIRV-Cross/reference/opt/shaders
Hans-Kristian Arntzen 7a6c2da9aa GLSL: Handle more proper semantics for RelaxedPrecision.
GLSL and RelaxedPrecision are quite different in what they affect.
RelaxedPrecision affects operations, while this is merely implied in
GLSL based on inputs.

This leads to situations where we have to promote mediump inputs to
highp, and the simplest approach is to force highp temporaries for
inputs which are consumed in a highp context. For completeness, we also
demote RelaxedPrecision inputs to mediump variables.

PHI is handled by copying the PHI into a temporary.

We have to be very careful with hoisted temporaries, since the child
temporary will not be analyzed up-front. We inherit the hoisted-ness
state and emit the hoisted child temporary as necessary. When faking the
temporaries with OpCopyObject, we make sure to block any variable
hoisting.

Hoisting children of PHI variables is fine, since PHIs are not hoisted with
the same framework as other temporaries.
2022-05-02 15:11:24 +02:00
..
amd Move all .invalid shaders into no-opt folders. 2019-11-05 13:19:19 -05:00
asm GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
comp GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
desktop-only GLSL: Be more aggressive about using type_alias. 2020-07-29 12:48:41 +02:00
flatten Move all .invalid shaders into no-opt folders. 2019-11-05 13:19:19 -05:00
frag GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
geom Roll dependencies. 2022-01-05 14:56:01 +01:00
legacy Normalize all internal workaround methods to use spv prefix. 2020-11-23 15:42:27 +01:00
tesc Roll dependencies 2020-05-20 10:27:51 -04:00
tese GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
vert GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
vulkan GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00