Skip to content

Accessing matrix input data in hull shader's patch constant function results in a compiler error #2958

Closed

Description

Title

Accessing matrix input data in hull shader's patch constant function results in a compiler error

Functional impact

Requires shaders that compiled with FXC to be rewritten to workaround this compiler error

Minimal repro steps

What is the smallest, simplest set of steps to reproduce the issue. If needed, provide a project that demonstrates the issue.

  1. Using this input file (hull.txt), run the following commands:
    dxc.exe /Od /Zpr /nologo /Ths_6_0 /EHullFunc /Fo"hullout.tmp" "hull.txt"
    dxc.exe /Od /Zpr /nologo /Ths_6_0 /EHullUnpackedFunc /Fo"hullunpackedout.tmp" "hull.txt"
    dxc.exe /Od /Zpr /nologo /Ths_6_0 /EHullSimpleFunc /Fo"hullsimpleout.tmp" "hull.txt"

Expected result

The compile succeeds for all entry points in the file.

Actual result

The compile using HullFunc as the entry point returns 0x80AA0018 (DXC_E_GENERAL_INTERNAL_ERROR). The other entry points, which either omit the matrix usage or access it as separate float4s, compile successfully.

Activity

  1. changed the title [-]Accessing matrix input data in hull patch function results in compiler error[/-] [+]Accessing matrix input data in hull shader's patch constant function results in a compiler error[/+] on Jun 8, 2020
  2. added a commit that references this issue on Aug 5, 2020
    8e6fd60
  3. added a commit that references this issue on Aug 7, 2020
    03676eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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