Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
77676b6
fix(agc): handle the fill kernel that reads its pattern from a buffer
marcio-ch Oct 12, 2026
3ca00a1
feat(agc): sample non-sRGB textures through FORCE_DEGAMMA samplers as…
Pipodi Oct 12, 2026
6f88690
feat(agc): skip the draws and dispatches of one shader with APS5_SKIP…
johnmaia Oct 12, 2026
5fe3325
fix(agc): release cached address space on device teardown
MarcZX10 Oct 13, 2026
e68a5bf
fix(agc): give R8 and R8G8 no sRGB twin where the device decodes them…
Pipodi Oct 13, 2026
21ce278
fix(agc): drop the comment in SrgbTwinFormat
Pipodi Oct 13, 2026
3b4ebcd
perf(agc): allocate CPU snapshots on demand
Sanjaysrinivas Oct 11, 2026
23c71e3
fix(agc): avoid snapshot upload PR conflict
Sanjaysrinivas Oct 11, 2026
1006a83
fix(agc): register snapshot fixture GPU memory
Sanjaysrinivas Oct 11, 2026
a9d8309
fix(agc): use storage factory in snapshot test
Sanjaysrinivas Oct 12, 2026
d7faf80
fix(agc): avoid storage snapshot overlap
Sanjaysrinivas Oct 13, 2026
09f60c3
fix(agc): skip an indexed draw with no indices or instances
mrfelek Oct 13, 2026
e9e8dad
test(agc): skip an indexed draw with no indices or instances
mrfelek Oct 13, 2026
2238ddf
perf(agc): cache a draw key the second time it is seen
oneandonlydean Oct 11, 2026
4ca6a15
feat(agc): decode GS_FAST_LAUNCH geometry with one point per subgroup
tv7 Oct 12, 2026
9a65287
fix(agc): start the sample location registers at their clear-state value
fdfawef324 Oct 13, 2026
2cf91d3
fix(agc): make host imports over writable pages on macOS
Zheorgyan Oct 13, 2026
c8fc25d
fix(agc): keep fused geometry programs out of the caller's memory
fma-rc Oct 13, 2026
fac606c
feat(libSceAgcDriver): skip CMASK decode on single-sample views with …
pushkarreddyy Oct 13, 2026
eb0eaef
feat(libSceAgc): ignore address argument on non-sample-dump events in…
pushkarreddyy Oct 13, 2026
23eb459
feat(agc): execute INDEX_ATTRIBUTES_INDIRECT (PM4 0x91)
fdfawef324 Oct 13, 2026
ee1f335
fix(agc): keep stores after occlusion dumps after them in a queued run
johnmaia Oct 13, 2026
24233f1
test(agc): run the queued write group tests in ctest
johnmaia Oct 13, 2026
f02998a
feat(agc): describe which layers of an array surface a texture view r…
YossiYad Oct 13, 2026
0e7d2fb
fix(agc): sample a slice-0 array color target as a 2D texture through…
YossiYad Oct 13, 2026
2247d69
test(agc): flush the slice-0 draw before clearing the cached textures
YossiYad Oct 13, 2026
ea6808d
docs(agc): record INDEX_ATTRIBUTES_INDIRECT in TechnicalDebt.md
RINNECODER Oct 14, 2026
2d37f77
test(agc): check the sync 9 shared decode fixes on the Metal path
RINNECODER Oct 14, 2026
05a477a
fix(agc): refuse indexed fast-launch mesh draws on Metal
RINNECODER Oct 14, 2026
0a8dc74
feat(agc): sample non-sRGB textures through FORCE_DEGAMMA samplers as…
RINNECODER Oct 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion core/libs/prx/libSceAgc/DcbFlow/src/Sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ std::uint32_t* APS5_VABI sceAgcDcbEventWrite(CommandBuffer* buf, std::uint8_t ev
Agc::Command::CheckAddress(guestAddress, 8, __func__);
return Agc::Command::Emit(buf, 0x46u, {0x100u | eventType, static_cast<std::uint32_t>(guestAddress), static_cast<std::uint32_t>(guestAddress >> 32u)}, __func__);
}
Agc::Command::Require(address == nullptr, __func__, "this event does not use an address");
const auto eventIndex = eventType == 7 || eventType == 15 || eventType == 16 ? 0x400u : 0u;
return Agc::Command::Emit(buf, 0x46u, {eventIndex | eventType}, __func__);
}
Expand Down
74 changes: 60 additions & 14 deletions core/libs/prx/libSceAgc/Misc/src/ShaderFusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <algorithm>
#include <array>
#include <cstring>
#include <map>
#include <mutex>
#include <stdexcept>
#include <string>
#include <cstdint>
Expand All @@ -29,8 +31,7 @@ constexpr std::uint32_t SCodeEnd = 0xbf9f0000u;
constexpr std::uint32_t SNop = 0xbf800000u;
constexpr std::uint32_t SSetpcS6 = 0xbe802006u;
constexpr std::uint32_t SSwappcNullS6 = 0xbefd2106u;
constexpr std::uint8_t FusedCodeAlignmentLog2 = 8;
constexpr std::size_t FusedCodeAlignment = std::size_t{1} << FusedCodeAlignmentLog2;
constexpr std::size_t FusedCodeAlignment = 256;
constexpr char TrailerMagic[8] = {'b', 'a', 'r', 'e', 'f', 'o', 'o', 't'};
constexpr std::size_t TrailerCodeBytesOffset = sizeof(TrailerMagic) + 3 * sizeof(std::uint32_t);
constexpr std::uint32_t Rsrc1VgprMask = 0x3fu;
Expand Down Expand Up @@ -191,14 +192,45 @@ void SetProgramAddress(std::vector<ShaderRegister>& regs, std::uint32_t loOffset
throw std::runtime_error("sceAgcFuseShaderHalves_0200: back half has no program address register pair");
}

int FuseGeometryHalves(Shader* fused_result, const Shader* front, const Shader* back, void* scratch_mem) {
constexpr auto fn = "sceAgcFuseShaderHalves_0200";
if (scratch_mem == nullptr) Fail(fn, "geometry halves need fused shader memory");
auto layout = ComputeGeometryLayout(fn, front, back);
const auto scratch = reinterpret_cast<std::uintptr_t>(scratch_mem);
const auto base = AlignUp(scratch, FusedCodeAlignment);
struct FusedProgram {
std::vector<std::uint8_t> storage;
Shader* header;
};

std::mutex FusedProgramsMutex;
std::map<std::vector<std::uint8_t>, FusedProgram> FusedPrograms;

void AppendBytes(std::vector<std::uint8_t>& bytes, const void* data, std::size_t size) {
if (size == 0) return;
const auto* begin = static_cast<const std::uint8_t*>(data);
bytes.insert(bytes.end(), begin, begin + size);
}

std::vector<std::uint8_t> FusionKey(const Shader* front, const Shader* back, const GeometryLayout& layout) {
std::vector<std::uint8_t> key;
constexpr auto headerBytes = offsetof(Shader, num_sh_registers) + sizeof(Shader::num_sh_registers);
AppendBytes(key, front, headerBytes);
AppendBytes(key, back, headerBytes);
AppendBytes(key, const_cast<const void*>(front->code), layout.frontBytes);
AppendBytes(key, const_cast<const void*>(back->code), back->shader_size);
AppendBytes(key, layout.sh.data(), layout.sh.size() * sizeof(ShaderRegister));
AppendBytes(key, layout.cx.data(), layout.cx.size() * sizeof(ShaderRegister));
AppendBytes(key, back->specials, back->special_sizes_bytes);
AppendBytes(key, front->input_semantics, front->num_input_semantics * sizeof(ShaderSemantic));
AppendBytes(key, back->output_semantics, back->num_output_semantics * sizeof(ShaderSemantic));
if (back->user_data == nullptr) return key;
AppendBytes(key, back->user_data, offsetof(ShaderUserData, sharp_resource_count) + sizeof(ShaderUserData::sharp_resource_count));
AppendBytes(key, back->user_data->direct_resource_offset, back->user_data->direct_resource_count * sizeof(std::uint16_t));
for (std::size_t i = 0; i < layout.sharpOffsets.size(); ++i) AppendBytes(key, back->user_data->sharp_resource_offset[i], back->user_data->sharp_resource_count[i] * sizeof(ShaderSharp));
return key;
}

FusedProgram BuildFusedProgram(const char* fn, const Shader* front, const Shader* back, GeometryLayout& layout) {
FusedProgram program{std::vector<std::uint8_t>(layout.totalBytes + FusedCodeAlignment - 1), nullptr};
const auto storage = reinterpret_cast<std::uintptr_t>(program.storage.data());
const auto base = AlignUp(storage, FusedCodeAlignment);
if ((base & SHADER_BASE_ALIGN_MASK) != 0) Fail(fn, "fused shader memory is not a valid program address");
auto* memory = static_cast<std::uint8_t*>(scratch_mem) + (base - scratch);
auto* memory = program.storage.data() + (base - storage);
std::memcpy(memory, const_cast<const void*>(front->code), layout.frontBytes);
for (std::size_t offset = layout.frontBytes; offset < layout.backOffset; offset += sizeof(SNop)) std::memcpy(memory + offset, &SNop, sizeof(SNop));
std::memcpy(memory + layout.backOffset, const_cast<const void*>(back->code), back->shader_size);
Expand Down Expand Up @@ -241,10 +273,24 @@ int FuseGeometryHalves(Shader* fused_result, const Shader* front, const Shader*
fused.type = static_cast<std::uint8_t>(ShaderBinaryType::Gs);
fused.num_sh_registers = static_cast<std::uint8_t>(layout.sh.size());
fused.num_cx_registers = static_cast<std::uint8_t>(layout.cx.size());
auto* header = reinterpret_cast<Shader*>(memory + layout.headerOffset);
*header = fused;
program.header = reinterpret_cast<Shader*>(memory + layout.headerOffset);
*program.header = fused;
AgcDriverRegisterShader_nid_postfix(program.header);
return program;
}

int FuseGeometryHalves(Shader* fused_result, const Shader* front, const Shader* back, void* scratch_mem) {
constexpr auto fn = "sceAgcFuseShaderHalves_0200";
if (scratch_mem == nullptr) Fail(fn, "geometry halves need fused shader memory");
auto layout = ComputeGeometryLayout(fn, front, back);
auto key = FusionKey(front, back, layout);
std::lock_guard lock(FusedProgramsMutex);
auto found = FusedPrograms.find(key);
if (found == FusedPrograms.end()) found = FusedPrograms.emplace(std::move(key), BuildFusedProgram(fn, front, back, layout)).first;
Shader fused = *found->second.header;
std::memcpy(scratch_mem, fused.sh_registers, std::size_t{fused.num_sh_registers} * sizeof(ShaderRegister));
fused.sh_registers = static_cast<ShaderRegister*>(scratch_mem);
*fused_result = fused;
AgcDriverRegisterShader_nid_postfix(header);
return 0;
}

Expand Down Expand Up @@ -306,8 +352,8 @@ int APS5_VABI sceAgcGetFusedShaderSize_0080(SizeAlign* dst, const Shader* front,
if (!ValidHalves(front, back)) return GRAPHICS5_ERROR_INVALID_SHADER_HALVES;
if (GeometryHalves(front)) {
const auto layout = ComputeGeometryLayout("sceAgcGetFusedShaderSize_0080", front, back);
dst->m_size = layout.totalBytes + FusedCodeAlignment - 1;
dst->m_align = FusedCodeAlignmentLog2;
dst->m_size = layout.sh.size() * sizeof(ShaderRegister);
dst->m_align = 4;
return 0;
}
dst->m_size = std::uint64_t{back->num_sh_registers} * sizeof(ShaderRegister);
Expand Down
44 changes: 44 additions & 0 deletions core/libs/prx/libSceAgc/tests/Commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <cstring>
#include <string>

extern "C" std::uint32_t* APS5_VABI sceAgcDcbEventWrite(CommandBuffer* buf, std::uint8_t eventType, const volatile void* address);
extern "C" std::uint64_t APS5_VABI sceAgcDcbEventWriteGetSize(std::uint8_t eventType);
extern "C" std::uint32_t* APS5_VABI sceAgcDcbResetQueue(CommandBuffer* buf, std::uint32_t op, std::uint32_t state);
extern "C" std::uint32_t* APS5_VABI sceAgcDcbClearState(CommandBuffer* buf, std::uint32_t command);
extern "C" std::uint32_t* APS5_VABI sceAgcDcbSetFlip(CommandBuffer* buf, std::uint32_t handle, std::int32_t index, std::uint32_t mode, std::int64_t argument);
Expand Down Expand Up @@ -555,6 +557,47 @@ void testDefaults() {
expectFailure([] { Agc::Command::GetRegisterDefaults(0xffffffffu, true, __func__); });
}

void testEventWrite() {
Storage storage;
const auto* samplePacket = sceAgcDcbEventWrite(&storage.buffer, 0x38, reinterpret_cast<const void*>(0x1000));
check(samplePacket == storage.words.data(), "incorrect event 0x38 return pointer");
check(storage.words[0] == 0xc0024600u, "incorrect event 0x38 packet header");
check(storage.words[1] == (0x100u | 0x38u), "incorrect event 0x38 first payload word");
check(storage.words[2] == 0x1000u, "incorrect event 0x38 low address word");
check(storage.words[3] == 0u, "incorrect event 0x38 high address word");
check(sceAgcDcbEventWriteGetSize(0x38) == 16, "incorrect event 0x38 size");
check(sceAgcDcbEventWriteGetSize(0x39) == 16, "incorrect event 0x39 size");

Storage sample39;
sceAgcDcbEventWrite(&sample39.buffer, 0x39, reinterpret_cast<const void*>(0x2008));
check(sample39.words[0] == 0xc0024600u && sample39.words[1] == (0x100u | 0x39u) && sample39.words[2] == 0x2008u && sample39.words[3] == 0u, "incorrect event 0x39 packet");

expectFailure([&] { sceAgcDcbEventWrite(&storage.buffer, 0x38, reinterpret_cast<const void*>(0x1001)); });
expectFailure([&] { sceAgcDcbEventWrite(&storage.buffer, 0x40, nullptr); });

Storage partialFlush;
sceAgcDcbEventWrite(&partialFlush.buffer, 7, nullptr);
check(partialFlush.words[0] == 0xc0004600u && partialFlush.words[1] == 0x407u, "incorrect event 7 partial flush packet");
check(sceAgcDcbEventWriteGetSize(7) == 8, "incorrect event 7 size");

Storage partialFlush15;
sceAgcDcbEventWrite(&partialFlush15.buffer, 15, nullptr);
check(partialFlush15.words[0] == 0xc0004600u && partialFlush15.words[1] == 0x40fu, "incorrect event 15 partial flush packet");

Storage partialFlush16;
sceAgcDcbEventWrite(&partialFlush16.buffer, 16, nullptr);
check(partialFlush16.words[0] == 0xc0004600u && partialFlush16.words[1] == 0x410u, "incorrect event 16 partial flush packet");

Storage cacheFlushNull;
sceAgcDcbEventWrite(&cacheFlushNull.buffer, 0x16, nullptr);
check(cacheFlushNull.words[0] == 0xc0004600u && cacheFlushNull.words[1] == 0x16u, "incorrect event 0x16 null address packet");
check(sceAgcDcbEventWriteGetSize(0x16) == 8, "incorrect event 0x16 size");

Storage cacheFlushWithAddress;
sceAgcDcbEventWrite(&cacheFlushWithAddress.buffer, 0x16, reinterpret_cast<const void*>(0x2d2a10000ull));
check(cacheFlushWithAddress.words[0] == 0xc0004600u && cacheFlushWithAddress.words[1] == 0x16u, "incorrect event 0x16 with address packet");
}

}

int main(int argc, char** argv) {
Expand All @@ -566,6 +609,7 @@ int main(int argc, char** argv) {
return 0;
}
testPackets();
testEventWrite();
testNop();
testClearState();
testIndexedIndirectDraws();
Expand Down
53 changes: 39 additions & 14 deletions core/libs/prx/libSceAgc/tests/ShaderFusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,20 @@ void testFusion(std::size_t misalignment, std::uint32_t terminator = SSetpcS6) {
Halves halves(terminator);
SizeAlign size{};
check(sceAgcGetFusedShaderSize_0080(&size, &halves.front, &halves.back) == 0, "fused size query failed");
check(size.m_align == 8, "fused shaders are not 256-byte aligned");
check(size.m_size > 256 + 255 + halves.back.shader_size + sizeof(Shader), "fused size does not cover the alignment padding, code and header");
check(size.m_size == 7 * sizeof(ShaderRegister) && size.m_align == 4, "fused size is not the fused register list");
std::vector<std::uint8_t> storage(size.m_size + 512, 0xcd);
auto* scratch = aligned(storage, 256) + misalignment;
Shader fused{};
check(sceAgcFuseShaderHalves_0200(&fused, &halves.front, &halves.back, scratch) == 0, "fusion failed");
for (std::size_t i = 0; i < 16; ++i) check(scratch[size.m_size + i] == 0xcd, "fusion wrote past the reported size");
auto* memory = scratch + (256 - misalignment) % 256;
const auto base = reinterpret_cast<std::uintptr_t>(memory);
const auto scratchBase = reinterpret_cast<std::uintptr_t>(scratch);
const auto base = reinterpret_cast<std::uintptr_t>(fused.code);
const auto* memory = reinterpret_cast<const std::uint8_t*>(base);
check(fused.type == static_cast<std::uint8_t>(ShaderRegs::ShaderBinaryType::Gs), "fused shader is not a GS");
check(fused.code == memory && fused.shader_size == 256 + halves.back.shader_size, "fused code placement is wrong");
check(base % 256 == 0 && fused.shader_size == 256 + halves.back.shader_size, "fused code placement is wrong");
check(word(memory, 0) == SMovS0 && word(memory, 1) == VMovV0, "front program was not copied");
for (std::size_t i = 2; i < 64; ++i) check(word(memory, i) == SNop, "front program does not fall through to the back half");
check(std::memcmp(memory + 256, halves.backCode.data(), halves.back.shader_size) == 0, "back program was not copied");
check(reinterpret_cast<std::uintptr_t>(fused.sh_registers) == reinterpret_cast<std::uintptr_t>(scratch), "fused registers are not in the caller's memory");
const auto* backLo = find(fused, 0x088u);
const auto* frontLo = find(fused, 0x0C8u);
check(backLo != nullptr && backLo->value == static_cast<std::uint32_t>((base + 256) >> 8u), "back program address was not patched");
Expand All @@ -158,17 +157,42 @@ void testFusion(std::size_t misalignment, std::uint32_t terminator = SSetpcS6) {
check(fused.num_output_semantics == 1 && fused.output_semantics[0].semantic == 3, "back outputs were not kept");
check(fused.scratch_size_dw_per_thread == 16, "scratch size is not the larger half's");
check(fused.specials != nullptr && fused.specials != halves.back.specials && fused.specials->ge_cntl.value == 0x77u, "back specials were not copied");
const auto inside = [&](const void* pointer) {
const auto inside = [&](std::uintptr_t address) {
const auto begin = reinterpret_cast<std::uintptr_t>(storage.data());
return address >= begin && address < begin + storage.size();
};
const auto program = [&](const void* pointer) {
const auto address = reinterpret_cast<std::uintptr_t>(pointer);
return address >= scratchBase && address < scratchBase + size.m_size;
return !inside(address) && address >= base + fused.shader_size && address < base + fused.shader_size + fused.header_size + alignof(Shader);
};
check(inside(fused.sh_registers) && inside(fused.cx_registers) && inside(fused.specials) && inside(fused.input_semantics) && inside(fused.output_semantics), "fused tables are not in the fused memory");
check(inside(fused.user_data) && inside(fused.user_data->direct_resource_offset) && inside(fused.user_data->sharp_resource_offset[1]), "fused user data is not in the fused memory");
check(!inside(base) && program(fused.cx_registers) && program(fused.specials) && program(fused.input_semantics) && program(fused.output_semantics), "fused tables are not beside the fused code");
check(program(fused.user_data) && program(fused.user_data->direct_resource_offset) && program(fused.user_data->sharp_resource_offset[1]), "fused user data is not beside the fused code");
check(fused.user_data->direct_resource_count == 2 && fused.user_data->direct_resource_offset[1] == 9u && fused.user_data->sharp_resource_offset[1][0].offset_dw == 12 && fused.user_data->sharp_resource_offset[0] == nullptr && fused.user_data->eud_size_dw == 4, "fused user data is wrong");
const auto headerOffset = static_cast<std::size_t>(size.m_size) - 255 - fused.header_size;
check(headerOffset % alignof(Shader) == 0 && headerOffset >= fused.shader_size, "fused header is misplaced");
const auto* header = reinterpret_cast<const Shader*>(memory + headerOffset);
check(header->code == fused.code && header->sh_registers == fused.sh_registers && header->user_data == fused.user_data && header->header_size == fused.header_size && header->shader_size == fused.shader_size && header->type == fused.type && header->num_sh_registers == fused.num_sh_registers, "fused memory has no self-contained header");
}

void testScratchReuse() {
Halves first;
Halves second;
second.backCode[0] = VMovV0;
SizeAlign size{};
check(sceAgcGetFusedShaderSize_0080(&size, &first.front, &first.back) == 0, "fused size query failed");
std::vector<std::uint8_t> scratch(size.m_size);
Shader firstFused{};
Shader secondFused{};
check(sceAgcFuseShaderHalves_0200(&firstFused, &first.front, &first.back, scratch.data()) == 0, "first fusion failed");
const auto firstCode = reinterpret_cast<std::uintptr_t>(firstFused.code);
check(sceAgcFuseShaderHalves_0200(&secondFused, &second.front, &second.back, scratch.data()) == 0, "second fusion failed");
const auto secondCode = reinterpret_cast<std::uintptr_t>(secondFused.code);
check(firstCode != secondCode, "two fused programs share one code address");
check(word(reinterpret_cast<const void*>(firstCode), 64) == SMovS0, "fusing into reused memory overwrote the first fused program");
check(word(reinterpret_cast<const void*>(secondCode), 64) == VMovV0, "second fused program has the wrong back half");
Shader again{};
check(sceAgcFuseShaderHalves_0200(&again, &first.front, &first.back, scratch.data()) == 0, "repeated fusion failed");
check(reinterpret_cast<std::uintptr_t>(again.code) == firstCode, "the same halves were fused into a second program");
first.backCode[0] = VMovV0;
Shader changed{};
check(sceAgcFuseShaderHalves_0200(&changed, &first.front, &first.back, scratch.data()) == 0, "fusion of changed halves failed");
check(reinterpret_cast<std::uintptr_t>(changed.code) != firstCode && word(reinterpret_cast<const void*>(firstCode), 64) == SMovS0, "changed halves reused the earlier fused program");
}

void testRejections() {
Expand Down Expand Up @@ -252,6 +276,7 @@ int main() {
testFusion(0xa0);
testFusion(4);
testFusion(0, SSwappcNullS6);
testScratchReuse();
testRejections();
testHullHalves();
LibcRunShutdown_nid_postfix();
Expand Down
12 changes: 10 additions & 2 deletions core/libs/prx/libSceAgcDriver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -869,10 +869,16 @@ if(BUILD_TESTING)
set_tests_properties(agc_parked_import_unmap PROPERTIES SKIP_RETURN_CODE 77 TIMEOUT 30 ENVIRONMENT "APS5_PIN_WAIT_MS=3000")
add_test(NAME agc_unit_shadow COMMAND agc_driver_recorder_tests --unit-shadow-only)
set_tests_properties(agc_unit_shadow PROPERTIES SKIP_RETURN_CODE 77 TIMEOUT 30 ENVIRONMENT "APS5_PIN_WAIT_MS=3000")
if(WIN32)
add_test(NAME agc_storage_cpu_snapshot COMMAND agc_driver_recorder_tests --storage-cpu-snapshot-only)
set_tests_properties(agc_storage_cpu_snapshot PROPERTIES ENVIRONMENT "ANYPS5_NO_SHADER_CACHE=1" TIMEOUT 30 SKIP_RETURN_CODE 77
ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
endif()
add_test(NAME agc_descriptor_pool_recycling COMMAND agc_driver_recorder_tests --descriptor-pool-only)
set_tests_properties(agc_descriptor_pool_recycling PROPERTIES SKIP_RETURN_CODE 77)
add_test(NAME agc_queued_write_groups COMMAND agc_driver_recorder_tests --queued-write-groups-only)
if(WIN32)
set_tests_properties(agc_host_import_unmap agc_parked_import_unmap agc_unit_shadow agc_descriptor_pool_recycling PROPERTIES ENVIRONMENT_MODIFICATION
set_tests_properties(agc_host_import_unmap agc_parked_import_unmap agc_unit_shadow agc_descriptor_pool_recycling agc_queued_write_groups PROPERTIES ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
endif()
endif()
Expand Down Expand Up @@ -1168,8 +1174,10 @@ if(BUILD_TESTING)
add_test(NAME agc_driver_pm4_failure COMMAND agc_driver_pm4_tests failure)
set_tests_properties(agc_driver_pm4_failure PROPERTIES ENVIRONMENT "ANYPS5_NO_SHADER_CACHE=1" SKIP_RETURN_CODE 77)
add_test(NAME agc_descriptor_pool_reset_failure COMMAND agc_driver_graphics_tests --descriptor-pool-reset-failure)
add_test(NAME agc_driver_address_space_teardown COMMAND agc_driver_graphics_tests --address-space-teardown)
set_tests_properties(agc_driver_address_space_teardown PROPERTIES ENVIRONMENT "ANYPS5_NO_SHADER_CACHE=1" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
if(WIN32)
set_tests_properties(agc_driver_pm4_failure agc_descriptor_pool_reset_failure PROPERTIES ENVIRONMENT_MODIFICATION
set_tests_properties(agc_driver_pm4_failure agc_descriptor_pool_reset_failure agc_driver_address_space_teardown PROPERTIES ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
endif()
if(NOT WIN32)
Expand Down
Loading
Loading