SPIRV-Cross/reference
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
..
opt Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
shaders Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
shaders-hlsl Support the SPV_EXT_demote_to_helper_invocation extension. 2019-07-17 09:12:22 -05:00
shaders-hlsl-no-opt Test glsl.std450 more exhaustively. 2019-07-17 11:53:05 +02:00
shaders-msl Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
shaders-msl-no-opt Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
shaders-no-opt Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
shaders-reflection Employ heuristics to figure out how to emit SSBO/UAV reflection names. 2019-06-10 11:24:24 +02:00