Fix pipeline to shader stage conversion when filling in shader infos

The two vertex pipeline stages need to be both treated as a single stage, and all subsequent stages need to be offset by -1
This commit is contained in:
Billy Laws 2022-09-17 13:10:23 +01:00
parent a9213debc7
commit 3456fb39fa

View File

@ -209,7 +209,7 @@ namespace skyline::gpu::interconnect::maxwell3d {
continue;
auto runtimeInfo{MakeRuntimeInfo(packedState, programs[i], lastProgram, hasGeometry)};
shaderStages[i] = {ConvertVkShaderStage(pipelineStage(i)), ctx.gpu.shader.CompileShader(runtimeInfo, programs[i], bindings), programs[i].info};
shaderStages[i - (i >= 1 ? 1 : 0)] = {ConvertVkShaderStage(pipelineStage(i)), ctx.gpu.shader.CompileShader(runtimeInfo, programs[i], bindings), programs[i].info};
lastProgram = &programs[i];
}