Skip to content

update spirv-headers and fix handling of gl_HitTEXT#2471

Merged
johnkslang merged 2 commits intoKhronosGroup:masterfrom
dgkoch:dgkoch_fix_hitT
Nov 30, 2020
Merged

update spirv-headers and fix handling of gl_HitTEXT#2471
johnkslang merged 2 commits intoKhronosGroup:masterfrom
dgkoch:dgkoch_fix_hitT

Conversation

@dgkoch
Copy link
Copy Markdown
Contributor

@dgkoch dgkoch commented Nov 28, 2020

Update spirv-headers known_good to f027d53
and update SPIRV/spirv.hpp to copy from that version as well.

In GLSL gl_HitTNV/gl_HitTEXT is defined as an alias of gl_RayTmaxNV/gl_RayTmaxEXT
SPV_NV_ray_tracing has a dedicated HitTNV which gl_HitTNV maps to.
For SPV_KHR_ray_tracing, gl_HitTEXT gets mapped to a RayTmaxKHR decoraged variable
to simplify the SPIRV consumer.
This change fixes the mapping for the GL_EXT_ray_tracing extension, and updates
the test results to match.

Update MissNV shader test to not use ObjectRay builtins

  • They shouldn't exist in the miss stage because there is no object intersected

Update spirv-headers known_good to f027d53
and update SPIRV/spirv.hpp to copy from that version as well.

In GLSL gl_HitTNV/gl_HitTEXT is defined as an alias of gl_RayTmaxNV/gl_RayTmaxEXT
SPV_NV_ray_tracing has a dedicated HitTNV which gl_HitTNV maps to.
For SPV_KHR_ray_tracing, gl_HitTEXT gets mapped to a RayTmaxKHR decoraged variable
to simplify the SPIRV consumer.
This change fixes the mapping for the GL_EXT_ray_tracing extension, and updates
the test results to match.
They shouldn't existing in the miss stage because there is no object intersected
@dgkoch
Copy link
Copy Markdown
Contributor Author

dgkoch commented Nov 29, 2020

cc @johnkslang @dneto0

This is needed after KhronosGroup/SPIRV-Tools#4040 and should probably be landed as a precursor to KhronosGroup/SPIRV-Tools#4041

@johnkslang
Copy link
Copy Markdown
Contributor

Okay. Will like to update SPIRV-Headers first. We should not be seeing individual edits here.

Maybe it's really time to stop using a copy. It was needed early on, but now submodule might be better. A submodule can still control which commit is being relied on, but otherwise does all the rest automatically (when defaults are updated to operate recursively).

@johnkslang
Copy link
Copy Markdown
Contributor

Ah, this was a backward incompatible change to the header. That should like almost never happen. Will again bypass normal process of first copying in the header to glslang.

@johnkslang johnkslang merged commit e11a2c8 into KhronosGroup:master Nov 30, 2020
dneto0 added a commit to dneto0/shaderc that referenced this pull request Dec 7, 2020
Incorporate SPIRV-Tools fixes for new terminator
instructions in Vulkan raytracing extensions.
KhronosGroup/SPIRV-Tools#4050

Incorporate glslang fixes
 - raytracing:
   - KhronosGroup/glslang#2471
 - Update validator known-good
   - KhronosGroup/glslang#2473
dneto0 added a commit to google/shaderc that referenced this pull request Dec 7, 2020
Incorporate SPIRV-Tools fixes for new terminator
instructions in Vulkan raytracing extensions.
KhronosGroup/SPIRV-Tools#4050

Incorporate glslang fixes
 - raytracing:
   - KhronosGroup/glslang#2471
 - Update validator known-good
   - KhronosGroup/glslang#2473
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