VideoCore: Corrections to the MME Inliner and removal of hacky instance management.

This commit is contained in:
Fernando Sahmkow
2019-09-15 14:25:07 -04:00
committed by FernandoS27
parent ba02d564f8
commit 7606da5611
6 changed files with 81 additions and 31 deletions

View File

@ -114,6 +114,18 @@ Node ShaderIR::GetOutputAttribute(Attribute::Index index, u64 element, Node buff
break;
}
}
if (index == Attribute::Index::TessCoordInstanceIDVertexID) {
switch (element) {
case 2:
uses_instance_id = true;
break;
case 3:
uses_vertex_id = true;
break;
default:
break;
}
}
if (index == Attribute::Index::ClipDistances0123 ||
index == Attribute::Index::ClipDistances4567) {
const auto clip_index =