mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 11:26:56 +02:00
rename legacy Graphics -> Agc
This commit is contained in:
@@ -20823,8 +20823,8 @@ void CheckPm4ContextStateOperations(RenderContext &renderer) {
|
||||
break;
|
||||
}
|
||||
const auto size_dw = static_cast<size_t>(
|
||||
Gen5::GraphicsDcbContextStateOpGetSize(operation_value) / 4);
|
||||
auto *emitted = Gen5::GraphicsDcbContextStateOp(
|
||||
Gen5::AgcDcbContextStateOpGetSize(operation_value) / 4);
|
||||
auto *emitted = Gen5::AgcDcbContextStateOp(
|
||||
reinterpret_cast<Gen5::CommandBuffer *>(&dcb), operation_value);
|
||||
bool packet_matches = true;
|
||||
size_t segment_offset = 0;
|
||||
@@ -20919,11 +20919,11 @@ void CheckPm4ContextStateOperations(RenderContext &renderer) {
|
||||
"processor reset retained an invalid saved Cx state");
|
||||
|
||||
Require("Pm4ContextState", "HLE packet size",
|
||||
Gen5::GraphicsDcbContextStateOpGetSize(0) == 20 &&
|
||||
Gen5::GraphicsDcbContextStateOpGetSize(1) == 108 &&
|
||||
Gen5::GraphicsDcbContextStateOpGetSize(2) == 108 &&
|
||||
Gen5::GraphicsDcbContextStateOpGetSize(3) == 128 &&
|
||||
Gen5::GraphicsDcbContextStateOpGetSize(4) == 0,
|
||||
Gen5::AgcDcbContextStateOpGetSize(0) == 20 &&
|
||||
Gen5::AgcDcbContextStateOpGetSize(1) == 108 &&
|
||||
Gen5::AgcDcbContextStateOpGetSize(2) == 108 &&
|
||||
Gen5::AgcDcbContextStateOpGetSize(3) == 128 &&
|
||||
Gen5::AgcDcbContextStateOpGetSize(4) == 0,
|
||||
"context-state HLE sizes do not match libSceAgc");
|
||||
std::printf("[host] %-32s ok\n", "Pm4ContextState");
|
||||
}
|
||||
|
||||
@@ -5115,7 +5115,7 @@ void TestPsInputCountRegisterDecode() {
|
||||
void TestGraphicsCreateInterpolantMapping() {
|
||||
ShaderRegister regs[32] = {};
|
||||
|
||||
Check(Gen5::GraphicsCreateInterpolantMapping(regs, nullptr, nullptr) == 0,
|
||||
Check(Gen5::AgcCreateInterpolantMapping(regs, nullptr, nullptr) == 0,
|
||||
"null pixel shader interpolant mapping failed");
|
||||
for (uint32_t i = 0; i < 32u; i++) {
|
||||
Check(regs[i].offset == Pm4::CX_PS_SHADER_USAGE_BASE + i,
|
||||
@@ -5154,7 +5154,7 @@ void TestGraphicsCreateInterpolantMapping() {
|
||||
ps.input_semantics = ps_semantics;
|
||||
ps.num_input_semantics = static_cast<uint32_t>(std::size(ps_semantics));
|
||||
|
||||
Check(Gen5::GraphicsCreateInterpolantMapping(regs, &gs, &ps) == 0,
|
||||
Check(Gen5::AgcCreateInterpolantMapping(regs, &gs, &ps) == 0,
|
||||
"shader interpolant mapping failed");
|
||||
Check(regs[0].value == 0x00000005u,
|
||||
"matched interpolant mapping did not use GS hardware mapping");
|
||||
|
||||
Reference in New Issue
Block a user