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

[SPIR-V] Crash when using sampler on half texture #6989

Open
Keenuts opened this issue Oct 29, 2024 · 0 comments
Open

[SPIR-V] Crash when using sampler on half texture #6989

Keenuts opened this issue Oct 29, 2024 · 0 comments
Labels
bug Bug, regression, crash spirv Work related to SPIR-V

Comments

@Keenuts
Copy link
Collaborator

Keenuts commented Oct 29, 2024

Description

DXC crashes when Sample is used on a texture storing 16bit floats.

Steps to Reproduce

// RUN: %dxc -T cs_6_7 -E main -spirv -enable-16bit-types %s | FileCheck %s

Texture2D<half> texture;
RWBuffer<half> buffer;
SamplerState s;

[numthreads(8, 8, 8)]
void main() {
  half t = texture.Sample(s, float2(0, 0));
}

Actual Behavior

DirectXShaderCompiler/tools/clang/lib/SPIRV/LowerTypeVisitor.cpp(186)
Func:	visitInstruction
@Keenuts Keenuts added bug Bug, regression, crash spirv Work related to SPIR-V labels Oct 29, 2024
@Keenuts Keenuts added this to the Next+1 Release milestone Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash spirv Work related to SPIR-V
Projects
None yet
Development

No branches or pull requests

1 participant