SPIRV-Cross/shaders-no-opt
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
..
asm GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
comp Test behavior around OpSelect with matrices. 2021-10-13 16:08:29 +02:00
frag Handle Modf/Frexp in more cases. 2021-11-07 11:36:44 +01:00
legacy/frag GLSL: Use for-loop fallback instead of do/while for legacy ESSL. 2020-06-29 12:50:31 +02:00
vert GLSL: Add option to force flattening IO blocks. 2020-07-28 15:16:06 +02:00
vulkan Add test for SPIR-V 1.6 Volatile HelperInvocation. 2022-03-04 11:19:33 +01:00