Skip to content

[SPIR-V] Unable to set 'unknown' format when using image_format attribute #6981

Closed
KhronosGroup/SPIRV-Tools
#5860

Description

Description

Context: #6979 (comment)
Repro:

// RUN: %dxc -T cs_6_7 -E main -spirv -fspv-target-env=vulkan1.3 %s
[[vk::binding(0,0)]]
[[vk::image_format("unknown")]]
RWTexture3D<float32_t2> untypedImage;

[numthreads(8,8,8)]
void main(uint32_t3 gl_GlobalInvocationID : SV_DispatchThreadID)
{
    untypedImage[gl_GlobalInvocationID] = float32_t2(4,5);
}

Actual Behavior
DXC generates Rg32f as format for untypedImage instead of the requested Unknown.

Activity

  1. added
    bug
    spirv
    on Oct 22, 2024
  2. Keenuts commented on Oct 22, 2024

    @Keenuts
    CollaboratorAuthor

    Mateusz Kielan (@devshgraphicsprogramming) to track this specific issue.

  3. Keenuts commented on Oct 24, 2024

    @Keenuts
    CollaboratorAuthor

    spirv-tools fix in, now I need to bring it to DXC

  4. added a commit that references this issue on Oct 28, 2024
    6a7eae1
  5. added a commit that references this issue on Jul 24, 2025
    9996044
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugspirv

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions