mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-28 12:47:04 +02:00
[shader_recompiler] IPA perspective-inject extended to legacy attrs + generic fixed check made vector-level
This commit is contained in:
parent
f9af788554
commit
e48caec38e
3 changed files with 31 additions and 14 deletions
|
|
@ -132,13 +132,7 @@ void AddNVNStorageBuffers(IR::Program& program) {
|
|||
}
|
||||
}
|
||||
|
||||
bool IsLegacyAttribute(IR::Attribute attribute) {
|
||||
return (attribute >= IR::Attribute::ColorFrontDiffuseR &&
|
||||
attribute <= IR::Attribute::ColorBackSpecularA) ||
|
||||
attribute == IR::Attribute::FogCoordinate ||
|
||||
(attribute >= IR::Attribute::FixedFncTexture0S &&
|
||||
attribute <= IR::Attribute::FixedFncTexture9Q);
|
||||
}
|
||||
using IR::IsLegacyAttribute; //rescoped to attribute.h to make it visible in load_store_attribute.cpp IPA
|
||||
|
||||
std::map<IR::Attribute, IR::Attribute> GenerateLegacyToGenericMappings(
|
||||
const VaryingState& state, std::queue<IR::Attribute> unused_generics,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue