mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
fix(agc): include resource details in rejected draw diagnostics
AI-assisted change. Graphics regression tests passed on Fedora 44.
This commit is contained in:
@@ -167,7 +167,10 @@ GuestTextureResource DecodeTextureResource(std::span<const std::uint32_t> words)
|
||||
Require(width == height, "guest cube texture descriptor is not square");
|
||||
Require(baseArray <= depth, "guest cube texture descriptor has a base array past its last array slice");
|
||||
if (baseArray == depth) depth += 5u;
|
||||
Require((depth - baseArray + 1u) % 6u == 0, "guest cube texture descriptor does not contain a multiple of 6 array slices");
|
||||
if ((depth - baseArray + 1u) % 6u != 0) {
|
||||
Require(false, "guest cube texture descriptor does not contain a multiple of 6 array slices" +
|
||||
describe() + " (base array " + std::to_string(baseArray) + ")");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -529,7 +529,12 @@ std::set<std::uint32_t> ValidateShaders(std::span<const CompiledShader> shaders,
|
||||
if (i != 0) {
|
||||
for (const auto& [location, signature] : current.inputs) {
|
||||
const auto output = previous.outputs.find(location);
|
||||
Require(output != previous.outputs.end() && output->second == signature, "graphics interfaces disagree at location " + std::to_string(location));
|
||||
if (output == previous.outputs.end() || output->second != signature) {
|
||||
Require(false, "graphics interfaces disagree at location " + std::to_string(location) +
|
||||
" (stage " + std::to_string(i - 1) + " output " +
|
||||
(output == previous.outputs.end() ? "missing" : output->second) +
|
||||
", stage " + std::to_string(i) + " input " + signature + ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
previous = current;
|
||||
|
||||
Reference in New Issue
Block a user