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

Fixing verify / Fixing EMBREE_RAY_PACKETS=OFF #275

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

maikschulze
Copy link

Hi,
Syoyo and I have noticed that the 'verify' executable creates various FAILED results, particularly when compiling with EMBREE_RAY_PACKETS=OFF

We provide a fix to the rtcIntersect4/8/16 and rtcOccluded4/8/16 functions for the rare case '!defined(EMBREE_RAY_PACKETS)'. This fixes invalid casts between RTCRayK/RTCRayHitK and RayK and RayHitK and ensures that proper set/get functions are applied for the internal emulation through Ray and RayHit.

In addition, we partially fix the cause for failure of the 'RayMasksTest' case.

Without Pull Request (with EMBREE_RAY_PACKETS=OFF):
verify_sse2_before.txt
With Pull Request (with EMBREE_RAY_PACKETS=OFF):
verify_sse2_after.txt

@maikschulze maikschulze changed the title Verify fixes Fixing verify / Fixing EMBREE_RAY_PACKETS=OFF Mar 1, 2020
… filter out the computed hits in the epilog function.

Note that RTC_DEVICE_PROPERTY_BACKFACE_CULLING_ENABLED is not fully functional and appears to be always disabled in the intersector. Hence, the test will still fail when compiling with RTC_DEVICE_PROPERTY_BACKFACE_CULLING_ENABLED=OFF (reporting 4 instead of 2 hits)
…' information on rtcOccluded. This information is only written on rtcIntersect. We blindly pass these cases.
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.

None yet

1 participant