mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-09-28 03:56:28 -05:00
GX2: Set correct shader mode default
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
#include "Cafe/HW/Latte/ISA/RegDefines.h"
|
||||
#include "GX2.h"
|
||||
#include "Cafe/HW/Latte/Core/Latte.h"
|
||||
#include "Cafe/HW/Latte/Core/LatteDraw.h"
|
||||
|
||||
#include "Cafe/HW/Latte/Core/LattePM4.h"
|
||||
|
||||
#include "GX2_Shader.h"
|
||||
#include "GX2_Command.h"
|
||||
#include "GX2_State.h"
|
||||
#include "Cafe/CafeSystem.h"
|
||||
@@ -213,6 +213,8 @@ void GX2SetDefaultState()
|
||||
{
|
||||
GX2::GX2ReserveCmdSpace(0x100);
|
||||
|
||||
GX2::GX2SetShaderModeEx(GX2::GX2_SHADER_MODE::UNIFORM_REGISTER, 48, 64, 0, 0, 200, 192);
|
||||
|
||||
Latte::LATTE_PA_CL_VTE_CNTL reg{};
|
||||
reg.set_VPORT_X_OFFSET_ENA(true).set_VPORT_X_SCALE_ENA(true);
|
||||
reg.set_VPORT_Y_OFFSET_ENA(true).set_VPORT_Y_SCALE_ENA(true);
|
||||
|
||||
@@ -36,6 +36,8 @@ namespace GX2
|
||||
COMPUTE_SHADER = 3,
|
||||
};
|
||||
|
||||
void GX2SetShaderModeEx(GX2_SHADER_MODE mode, uint32 shaderGprsVS, uint32 shaderStackVS, uint32 shaderGprsGS, uint32 shaderStackGS, uint32 shaderGprsPS, uint32 shaderStackPS);
|
||||
|
||||
void GX2ShaderInit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user