The number of outputs components is 4 higher than the number of fragment
inputs because gl_Position needs to be counted as well.
Component: Vulkan
Affects: dEQP-VK.glsl.limits.near_max.fragment_input.*
Change-Id: Ic1cd888c04c8877312af104f5bcd3afc607480f8
TCU_THROW(NotSupportedError, notSupportedStr.c_str());
}
- if (m_inputComponents > maxVertexOutputComponents)
+ // gl_Position counts as an output component as well, so outputComponents = inputComponents + 4
+ if (m_inputComponents + 4 > maxVertexOutputComponents)
{
const std::string notSupportedStr = "Unsupported number of user specified vertex output components (" +
- de::toString(m_inputComponents) +
+ de::toString(m_inputComponents + 4) +
") maxVertexOutputComponents=" + de::toString(maxVertexOutputComponents);
TCU_THROW(NotSupportedError, notSupportedStr.c_str());
}