Allow merging of drawcalls with matching output vertex formats but different inputs

Broken out from #17479
This commit is contained in:
Henrik Rydgård committed 2023-08-21 14:43:37 +02:00
1 parent 266c653e7e
commit 0ecc337c17
2 files changed
+65 -21

No files matched your search

+2
View File
@@ -1065,6 +1065,8 @@ static const StepFunction posstep_through[4] = {
&VertexDecoder::Step_PosFloatThrough,
};
// IMPORTANT: When changing how the formats map, your changes must match the rules
// in IsVTypeCompatible in GPUCommonHW. See the comments on that function.
void VertexDecoder::SetVertexType(u32 fmt, const VertexDecoderOptions &options, VertexDecoderJitCache *jitCache) {
fmt_ = fmt;
throughmode = (fmt & GE_VTYPE_THROUGH) != 0;