SPIRV-Cross/reference
Chip Davis a43dcd7b99 MSL: Return early from helper tesc invocations.
Return after loading the input control point array if there are more
input points than output points, and this was one of the helper
invocations spun off to load the input points. I was hesitant to do this
initially, since the MSL spec has this to say about barriers:

> The `threadgroup_barrier` (or `simdgroup_barrier`) function must be
> encountered by all threads in a threadgroup (or SIMD-group) executing
> the kernel.

That is, if any thread executes the barrier, then all threads must
execute it, or the barrier'd invocations will hang. But, the key words
here seem to be "executing the kernel;" inactive invocations, those that
have already returned, need not encounter the barrier to prevent hangs.
Indeed, I've encountered no problems from doing this, at least on my
hardware. This also fixes a few CTS tests that were failing due to
execution ordering; apparently, my assumption that the later, invalid
data written by the helpers would get overwritten was wrong.
2019-02-24 12:17:47 -06:00
..
opt MSL: Return early from helper tesc invocations. 2019-02-24 12:17:47 -06:00
shaders MSL: Fix textures which are sampled and compared against. 2019-02-22 12:27:40 +01:00
shaders-hlsl MSL: Fix textures which are sampled and compared against. 2019-02-22 12:27:40 +01:00
shaders-hlsl-no-opt MSL: Fix case where we pass arrays to functions by value. 2019-01-14 11:00:14 +01:00
shaders-msl MSL: Return early from helper tesc invocations. 2019-02-24 12:17:47 -06:00
shaders-msl-no-opt Pass the original pointer type to ensure_correct_attribute_type(). 2019-02-11 16:07:43 -06:00
shaders-no-opt Fix edge case where opaque types can be declared on stack. 2019-02-19 17:28:31 +01:00
shaders-reflection Fix edge case where opaque types can be declared on stack. 2019-02-19 17:28:31 +01:00