Skip to content

Commit

Permalink
fix logicalproject uniform pull up
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Nov 27, 2024
1 parent b934881 commit 93a5155
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,12 @@ public void computeUniform(DataTrait.Builder builder) {
builder.addUniformSlotAndLiteral(proj.toSlot(), proj.child(0));
} else if (proj.child(0) instanceof Slot) {
Slot slot = (Slot) proj.child(0);
if (child(0).getLogicalProperties().getTrait().isUniformAndHasConstValue(slot)) {
DataTrait childTrait = child(0).getLogicalProperties().getTrait();
if (childTrait.isUniformAndHasConstValue(slot)) {
builder.addUniformSlotAndLiteral(proj.toSlot(),
child(0).getLogicalProperties().getTrait().getUniformValue(slot).get());
} else if (childTrait.isUniform(slot)) {
builder.addUniformSlot(proj.toSlot());
}
}
}
Expand Down

0 comments on commit 93a5155

Please sign in to comment.