SPIRV-Cross/reference/shaders
Hans-Kristian Arntzen 461f1506e7 Do not eagerly invalidate all active variables on a branch.
This is not necessary, as we must emit an invalidating store before we
potentially consume an invalid expression. In fact, we're a bit
conservative here in this case for example:

int tmp = variable;
if (...)
{
    variable = 10;
}
else
{
    // Consuming tmp here is fine, but it was
    // invalidated while emitting other branch.
    // Technically, we need to study if there is an invalidating store
    // in the CFG between the loading block and this block, and the other
    // branch will not be a part of that analysis.
    int tmp2 = tmp * tmp;
}

Fixing this case means complex CFG traversal *everywhere*, and it feels like overkill.

Fixing this exposed a bug with access chains, so fix a bug where expression dependencies were not
inherited properly in access chains. Access chains are now considered forwarded if there
is at least one dependency which is also forwarded.
2019-07-24 11:17:30 +02:00
..
amd Remove some stale test files. 2018-04-27 10:33:27 +02:00
asm Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
comp Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
desktop-only GLSL: Support GL_ARB_shader_stencil_export. 2019-06-12 10:06:54 +02:00
flatten Deal with case where a variable is dominated by inner part of a loop. 2019-06-06 11:11:44 +02:00
frag Update external repos. 2019-07-13 16:50:21 -05:00
geom Add explicit in/out locations everywhere. 2017-06-21 09:39:08 +02:00
legacy Support fma() in older GLSL targets. 2019-04-08 10:38:32 +02:00
tesc Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
tese Fix input array size in tessellation evaluation shaders. 2019-01-09 10:47:16 +01:00
vert Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
vulkan Don't forward uses of an OpIsHelperInvocationEXT op. 2019-07-18 17:32:35 -05:00