SPIRV-Cross/reference/shaders/vert
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
..
basic.vert Update to latest glslang/SPIRV-Tools. 2019-01-30 13:41:57 +01:00
ground.vert Do not eagerly invalidate all active variables on a branch. 2019-07-24 11:17:30 +02:00
invariant.vert Handle invariant decoration more robustly. 2018-11-22 11:55:57 +01:00
ocean.vert Rewrite everything to use Bitset rather than uint64_t. 2018-03-12 13:24:14 +01:00
read-from-row-major-array.vert Force recompile if we add row-major transpose functions in MSL. 2018-05-04 09:43:34 +02:00
return-array.vert Return arrays in HLSL/MSL by writing to an output variable instead. 2018-02-08 12:22:08 +01:00
texture_buffer.vert Fix declaration of coherent images. 2017-08-29 15:52:59 +02:00
ubo.vert Add explicit in/out locations everywhere. 2017-06-21 09:39:08 +02:00