[rpcsx-gpu] hacks for gnm compositor

This commit is contained in:
DH 2023-11-12 01:29:14 +03:00
parent b0166046be
commit 9bf5336478
8 changed files with 150 additions and 50 deletions

View file

@ -1697,7 +1697,7 @@ static bool isPrimRequiresConversion(PrimitiveType primType) {
return true;
default:
util::unreachable();
util::unreachable("prim type: %u\n", (unsigned)primType);
}
}
@ -3731,6 +3731,12 @@ static void draw(TaskChain &taskSet, QueueRegisters &regs, std::uint32_t count,
return;
}
auto primType = static_cast<PrimitiveType>(regs.vgtPrimitiveType);
if (primType == PrimitiveType::kPrimitiveTypeNone) {
return;
}
regs.depthClearEnable = true;
auto resources = Ref(new GpuActionResources());
@ -3750,8 +3756,6 @@ static void draw(TaskChain &taskSet, QueueRegisters &regs, std::uint32_t count,
shaderLoadTaskSet.schedule();
shaderLoadTaskSet.wait();
auto primType = static_cast<PrimitiveType>(regs.vgtPrimitiveType);
std::vector<VkRenderingAttachmentInfo> colorAttachments;
std::vector<VkBool32> colorBlendEnable;