Skip to content

Conversation

@erikaharrison-adsk
Copy link
Contributor

Description of Change(s)

HdStUpdateInstancerData returns early when DirtyInstancer is not set, leaving output parameters unwritten. Initialize local variables to current member values before the call to preserve state in that case.

Fixes random rendering test failures (disappearing geometry) on Linux.

Link to proposal (if applicable)

  • N/A

Fixes Issue(s)

  • N/A

Checklist

HdStUpdateInstancerData returns early when DirtyInstancer is not set,
leaving output parameters unwritten. Initialize local variables to
current member values before the call to preserve state in that case.

Fixes random rendering test failures (disappearing geometry) on Linux.
Comment on lines +191 to +198
HdStUpdateInstancerData(sceneDelegate->GetRenderIndex(),
renderParam,
this,
drawItem,
&_sharedData,
*dirtyBits,
&displayOpacityFromInstancer);
_displayOpacityFromInstancer = displayOpacityFromInstancer;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, if DirtyInstancer was not set, the function would return early and leave the locals like displayOpacityFromInstancer uninitialized, so the prim's members like _displayOpacityFromInstancer would be populated with garbage. This triggered a bunch of unit test failures for us on Linux only, mostly testUsdImagingGL*.

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-11713

(This is an automated message. See here for more information.)

@pixar-oss pixar-oss closed this in cfa5e51 Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants