Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3efd75f

Browse files
committed
Include the new primitive type in the pipeline hash
1 parent b57e45e commit 3efd75f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

impeller/renderer/pipeline_descriptor.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ std::size_t PipelineDescriptor::GetHash() const {
4040
fml::HashCombineSeed(seed, back_stencil_attachment_descriptor_);
4141
fml::HashCombineSeed(seed, winding_order_);
4242
fml::HashCombineSeed(seed, cull_mode_);
43+
fml::HashCombineSeed(seed, primitive_type_);
4344
return seed;
4445
}
4546

@@ -57,7 +58,8 @@ bool PipelineDescriptor::IsEqual(const PipelineDescriptor& other) const {
5758
back_stencil_attachment_descriptor_ ==
5859
other.back_stencil_attachment_descriptor_ &&
5960
winding_order_ == other.winding_order_ &&
60-
cull_mode_ == other.cull_mode_;
61+
cull_mode_ == other.cull_mode_ &&
62+
primitive_type_ == other.primitive_type_;
6163
}
6264

6365
PipelineDescriptor& PipelineDescriptor::SetLabel(std::string label) {

0 commit comments

Comments
 (0)