SPIRV-Cross/shaders-no-opt/asm
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
..
comp Handle early reads from loop variables with initializers. 2022-04-28 14:36:53 +02:00
frag GLSL: Handle more proper semantics for RelaxedPrecision. 2022-05-02 15:11:24 +02:00
geom Move .invalid. test shaders to the more appropriate subfolders. 2019-11-06 10:40:37 +01:00
rgen Handle nonuniformEXT qualifier for acceleration structures. 2021-01-22 13:13:56 +01:00
tesc Handle edge cases in OpCopyMemory. 2021-03-08 14:15:27 +01:00
vert GLSL: Support GL_EXT_debug_printf. 2022-04-19 12:07:54 +02:00
degenerate-selection-constructs.asm.frag CFG: Handle degenerate selection constructs. 2021-11-07 13:32:29 +01:00
loop-header-self-continue-break.asm.comp Handle case where block is loop header, continue AND break block. 2020-10-27 12:29:08 +01:00
temporary.zero-initialize.asm.frag Add support for forcefully zero-initialized variables. 2020-03-26 13:38:27 +01:00