shader: allow larger bounded Gen5 programs (#514)

This commit is contained in:
jute-ado
2026-07-22 13:46:15 +02:00
committed by GitHub
parent 2a4da8c0a9
commit 5f97031df5
2 changed files with 20 additions and 2 deletions
@@ -80,7 +80,7 @@ public static class Gen5ShaderTranslator
public static bool IsScalarConsumed(ulong[] mask, uint register) =>
register < 256 && (mask[register >> 6] & (1UL << (int)(register & 63))) != 0;
private const int MaxInstructions = 4096;
private const int MaxInstructions = 16384;
private const uint PsUserDataRegister = 0x0C;
private const uint VsUserDataRegister = 0x4C;
private const uint GsUserDataRegister = 0x8C;