-
Notifications
You must be signed in to change notification settings - Fork 898
[SPIR-V] Follow-up to #8616: exclude entry functions from function-target decoration #8719
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
base: main
Are you sure you want to change the base?
Changes from 7 commits
c822094
832333c
e9b7aa0
aa659ee
c7b6d51
e9e0557
322a3e3
05f8c94
d453748
5096ce6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,23 +22,27 @@ The included licenses apply to the following files: | |
| Place release notes for the upcoming release below this line and remove this | ||
| line upon naming the release. Refer to previous for appropriate section names. | ||
|
|
||
| #### Bug Fixes | ||
|
|
||
| - Fixed derivative operations being moved into divergent control flow, which | ||
| could produce incorrect results | ||
| [#8001](https://github.com/microsoft/DirectXShaderCompiler/issues/8001). | ||
| - SPIR-V: Fixed an invalid `OpSelect` being generated when optimizing for | ||
| SPIR-V 1.3 and earlier | ||
| [#8603](https://github.com/microsoft/DirectXShaderCompiler/issues/8603). | ||
|
|
||
| #### HLSL Language | ||
|
|
||
| - Casting a scalar to a struct or array containing a resource is now an error | ||
| instead of crashing | ||
| [#6661](https://github.com/microsoft/DirectXShaderCompiler/issues/6661). | ||
|
|
||
| #### SPIR-V | ||
|
|
||
| - Functions can now be decorated with inline SPIR-V. `[[vk::ext_capability]]` | ||
| and `[[vk::ext_extension]]` are now honored on ordinary functions | ||
| [#8616](https://github.com/microsoft/DirectXShaderCompiler/pull/8616) | ||
| [#8719](https://github.com/microsoft/DirectXShaderCompiler/pull/8719). | ||
|
|
||
| #### Bug Fixes | ||
|
|
||
| - Fixed derivative operations being moved into divergent control flow, which | ||
| could produce incorrect results | ||
| [#8001](https://github.com/microsoft/DirectXShaderCompiler/issues/8001). | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The release note changes here don't match the functional change. Was this a mis-merge or is there something else going on here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed there were two competing "Bug Fixes" sections, so I was trying to be helpful and clean it up. Looking at other releases, the "Bug Fixes" section comes after the other headers, so the second section was correct. |
||
| - SPIR-V: Fixed an invalid `OpSelect` being generated when optimizing for | ||
| SPIR-V 1.3 and earlier | ||
| [#8603](https://github.com/microsoft/DirectXShaderCompiler/issues/8603). | ||
| - Fixed internal compiler errors when a member method is called on a ray payload | ||
| or on one of its fields with payload access qualifiers enabled | ||
| [#6464](https://github.com/microsoft/DirectXShaderCompiler/issues/6464). | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // RUN: %dxc -T ps_6_0 -E main -fcgl -Vd %s -spirv | FileCheck %s --implicit-check-not "OpDecorate %src_main" | ||
|
|
||
| // A function-level inline-SPIR-V decoration on an *entry point* is consumed by | ||
| // the stage-variable path and applied to the entry's interface variable, not to | ||
| // the source OpFunction. (An ordinary function is handled in another way, see | ||
| // spv.intrinsicDecorate.function.hlsl.) | ||
| // | ||
| // The --implicit-check-not above asserts the source function (%src_main) was | ||
| // not decorated by the inline assembly intended for the stage variables. | ||
|
|
||
| // CHECK: OpDecorate %out_var_SV_Target Location 23 | ||
|
|
||
| [[vk::ext_decorate(/* Location */ 30, 23)]] | ||
| float4 main() : SV_Target { | ||
| return 1.0; | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.