Skip to content

Simple Amplification Shader internal compiler error repro (using 2021-12-08 dxc.exe release) #4421

@DanHCM

Description

@DanHCM

Hello. I've got a quite small reproduction of an "Internal compiler error: access violation ..." using the 2021-12-08 released dxc as follows -

dxc.exe test.hlsl -E main -T as_6_5 -Od

where 'test.hlsl' contains -

struct SharedPayload
{
  uint2 m_a;

  void Foo( in float3 v3 )
  {
    uint3 f16Vec3 = f32tof16(v3);
    m_a.x = f16Vec3.x | (f16Vec3.y<<16);
    m_a.y = f16Vec3.z;
  }
};

groupshared SharedPayload g_payload;

[numthreads(8, 8, 1)]
void main()
{
  g_payload.Foo( 1.0.xxx );
  DispatchMesh(1,1,1,g_payload);
}

I'm not claiming this is supposed to compile without errors but I would expect it to report a sensible error message rather than get a memory access violation.

Cheers

Dan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions