mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
[rpcsx-gpu] hacks for gnm compositor
This commit is contained in:
parent
b0166046be
commit
9bf5336478
8 changed files with 150 additions and 50 deletions
|
|
@ -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 ®s, 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 ®s, std::uint32_t count,
|
|||
shaderLoadTaskSet.schedule();
|
||||
shaderLoadTaskSet.wait();
|
||||
|
||||
auto primType = static_cast<PrimitiveType>(regs.vgtPrimitiveType);
|
||||
|
||||
std::vector<VkRenderingAttachmentInfo> colorAttachments;
|
||||
|
||||
std::vector<VkBool32> colorBlendEnable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue