Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix support for disabling ray tracing op in OptiX #105

Closed
wants to merge 1 commit into from

Conversation

dvicini
Copy link
Member

@dvicini dvicini commented Oct 18, 2024

This partially addresses the issue mitsuba-renderer/mitsuba3#1349 in Mitsuba.

Currently, invalid PTX is generated if a ray tracing op is intended to be disabled. This PR adds the missing label for the generated code to be valid.

Alternatively, we could also just disable this jump if ray tracing is anyway disabled. Not sure what's the cost of the jump vs setting a number of registers to 0.

Copy link
Member

@njroussel njroussel left a comment

Choose a reason for hiding this comment

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

Hi @dvicini

Thanks for reporting this, I've fixed it by completely removing the branching in fc80ebd.

@njroussel njroussel closed this Nov 4, 2024
@njroussel njroussel deleted the disable_ray_trace_fix branch November 4, 2024 15:36
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.

2 participants