diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-04-19 12:22:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-19 12:22:20 -0700 |
| commit | cbedf01cc53b848dfcc086f04098ef438121a7c7 (patch) | |
| tree | 94a3ca8016ecea0dcd09c2498d17de6e61723462 /tools/render-test/render-gl.cpp | |
| parent | 163bf58765cc2c921d20fa3a22d268d5e3785a4d (diff) | |
Fix GS cross-compilation after IR type system change (#507)
The cross-compilation logic for geometry shaders would look through the user's entry point for calls like `someStream.Emit<X>(val)` and turn that into `outputGlobals = val; EmitVertex();`.
It was recognizing the `Emit()` calls by looking at the callee in all `call` instructions and seeing if it was registered to lower to GLSL as `EmitVertex()`. The logic was try to look "through" `specialize` instructions (to deal with the `<X>` bit in the call above), but this wasn't updated for the new IR encoding where the first operand to a `specialize` is the generic being specialized, and not the function nested inside it.
The fix here is to properly look through both `specialize` instructions and generics. This is kind of a gross operation and we've done things like it in a few places, so it might be something we try to extract into a utility function in the future.
Diffstat (limited to 'tools/render-test/render-gl.cpp')
0 files changed, 0 insertions, 0 deletions
