Use a new approach for shader BRX targets (#2532)
* Use a new approach for shader BRX targets * Make shader cache actually work * Improve the shader pattern matching a bit * Extend LDC search to predecessor blocks, catches more cases * Nit * Only save the amount of constant buffer data actually used. Avoids crashes on partially mapped buffers * Ignore Rd on predicate instructions, as they do not have a Rd register (catches more cases)
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
using Ryujinx.Graphics.GAL;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@ -20,6 +19,8 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
||||
private ShaderCompileTaskCallback _action;
|
||||
private AutoResetEvent _taskDoneEvent;
|
||||
|
||||
public bool IsFaulted => _programsTask.IsFaulted;
|
||||
|
||||
/// <summary>
|
||||
/// Create a new shader compile task, with an event to signal whenever a subtask completes.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user