mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-23 17:13:13 -05:00
Since #4048 enabled robustBufferAccess2, AMD's Windows driver draws nothing in agc_driver_layered_volume_draw and agc_driver_layered_volume_vertex, and the selected loads make the high half of agc_driver_subvector_loop's wave64 skip its loop. Until the cause is found, that driver does not get the feature, and its loads keep their selections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
919 B
C++
34 lines
919 B
C++
#include "prx/libSceAgcDriver/Execution/include/RobustBufferAccess.hpp"
|
|
#include <cstdio>
|
|
|
|
namespace {
|
|
|
|
struct Case {
|
|
VkDriverId driver;
|
|
bool usable;
|
|
};
|
|
|
|
constexpr Case Cases[]{
|
|
{VK_DRIVER_ID_AMD_PROPRIETARY, false},
|
|
{VK_DRIVER_ID_AMD_OPEN_SOURCE, true},
|
|
{VK_DRIVER_ID_MESA_RADV, true},
|
|
{VK_DRIVER_ID_NVIDIA_PROPRIETARY, true},
|
|
{VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS, true},
|
|
{VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA, true},
|
|
{VK_DRIVER_ID_MESA_LLVMPIPE, true},
|
|
{VK_DRIVER_ID_MOLTENVK, true},
|
|
};
|
|
|
|
}
|
|
|
|
int main() {
|
|
int failures = 0;
|
|
for (const auto& item : Cases) {
|
|
if (AgcDriver::RobustBufferAccess2Usable(item.driver) != item.usable) {
|
|
std::fprintf(stderr, "driver %d: expected robustBufferAccess2 to be %s\n", static_cast<int>(item.driver), item.usable ? "usable" : "unusable");
|
|
++failures;
|
|
}
|
|
}
|
|
return failures == 0 ? 0 : 1;
|
|
}
|