Skip to content

Remainder of inout signature element not passed through when one component is modified #2528

Open

Description

@tex3d

In the case of an inout signature element, we do not pass through components not modified by the shader unless no components are touched.

The following test case succeeds if you do not write to pos.w, but fails with a validation error if you do since we do not output pos.xyz. Fxc does pass these through, so we should fix this.

// RUN: %dxc -E main -T vs_6_0 %s | FileCheck %s

// CHECK: call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 0,
// CHECK: call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 1,
// CHECK: call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 2,
// CHECK: call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 3,

// Should pass the rest (xyz) of SV_Position through
void main(inout float4 pos: SV_Position) {
  pos.w = 1;
}

Activity

  1. added
    bug
    on Oct 26, 2019
  2. added
    fxc-disagrees
    on Jun 18, 2024
  3. damyanp commented on Jun 18, 2024

    @damyanp
    Member

    It's not entirely clear that this is something that is likely to impact real-life scenarios. Until we have data otherwise, setting this to dormant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfxc-disagrees

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions