Re-enable it for constant buffers, paper mario does actually need it

This commit is contained in:
Gabriel A 2024-05-26 13:40:20 -03:00
parent 5c62a839f3
commit b4fa70416d

View file

@ -143,6 +143,13 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations
private static bool IsBindlessAccessAllowed(Operand nvHandle)
{
if (nvHandle.Type == OperandType.ConstantBuffer)
{
// Bindless access with handles from constant buffer is allowed.
return true;
}
if (nvHandle.AsgOp is not Operation handleOp ||
handleOp.Inst != Instruction.Load ||
(handleOp.StorageKind != StorageKind.Input && handleOp.StorageKind != StorageKind.StorageBuffer))