mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
Merge pull request #1811 from gerardlesan/test/agc-mesh-ctest
test(agc): run agc_driver_mesh_tests under ctest
This commit is contained in:
@@ -626,7 +626,7 @@ if(BUILD_TESTING)
|
||||
if(WIN32)
|
||||
set_tests_properties(agc_shader_bindless PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
|
||||
endif()
|
||||
foreach(agcTest IN ITEMS agc_driver_tests agc_shader_memory_tests agc_structurizer_tests agc_spirv_module_tests agc_dpp_write_tests agc_masked_select_tests agc_vop1_control_decode_tests agc_validate_program_tests agc_shader_disk_cache_tests agc_shader_device_profile_tests agc_shader_control_flow_tests agc_driver_flip_tests agc_driver_pm4_tests agc_driver_graphics_tests agc_driver_bda_device_tests ${agcExecutionTests})
|
||||
foreach(agcTest IN ITEMS agc_driver_tests agc_shader_memory_tests agc_structurizer_tests agc_spirv_module_tests agc_dpp_write_tests agc_masked_select_tests agc_vop1_control_decode_tests agc_validate_program_tests agc_shader_disk_cache_tests agc_shader_device_profile_tests agc_shader_control_flow_tests agc_driver_flip_tests agc_driver_pm4_tests agc_driver_graphics_tests agc_driver_bda_device_tests agc_driver_mesh_tests ${agcExecutionTests})
|
||||
if(agcTest STREQUAL "agc_driver_constant_store_tests")
|
||||
continue()
|
||||
endif()
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp"
|
||||
#include "Recompiler.hpp"
|
||||
#include "execution/VulkanTestDevice.hpp"
|
||||
#include "prx/libc/include/GuestAllocations.hpp"
|
||||
#include <array>
|
||||
#include <cmath>
|
||||
@@ -240,11 +241,17 @@ int main() {
|
||||
}
|
||||
FanRestart[FanRim] = 0xffffu;
|
||||
|
||||
AgcDriver::VulkanDevice device;
|
||||
const auto testDevice = OpenVulkanTestDevice();
|
||||
if (!testDevice) return VulkanTestSkipped;
|
||||
auto& device = *testDevice;
|
||||
const auto target = device.Target();
|
||||
if (!target.mesh.has_value()) {
|
||||
std::puts("Mesh tests skipped: the device has no VK_EXT_mesh_shader");
|
||||
return 0;
|
||||
std::puts("skipped, the device has no VK_EXT_mesh_shader");
|
||||
return VulkanTestSkipped;
|
||||
}
|
||||
if (device.DeviceName().starts_with("llvmpipe")) {
|
||||
std::puts("skipped, the device has no mesh shader compiler that handles these programs (llvmpipe)");
|
||||
return VulkanTestSkipped;
|
||||
}
|
||||
|
||||
for (const auto& [name, subgroup] : {std::pair{"one-wave subgroups", SmallSubgroup}, std::pair{"two-wave subgroups", WideSubgroup}}) {
|
||||
|
||||
@@ -6,7 +6,6 @@ from pathlib import Path
|
||||
TEST_OUTPUT = r"tests[\\/]"
|
||||
|
||||
KNOWN_UNRUN = {
|
||||
"agc_driver_mesh_tests",
|
||||
"agc_driver_recorder_tests",
|
||||
"video_out_flip_tests",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user