Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Revert "Do not generate dummy exports for PS on GFX10"#1354

Merged
JaxLinAMD merged 1 commit intoGPUOpen-Drivers:devfrom
perlfu:revert-gfx10-remove-ps-dummy-export
Aug 11, 2021
Merged

Revert "Do not generate dummy exports for PS on GFX10"#1354
JaxLinAMD merged 1 commit intoGPUOpen-Drivers:devfrom
perlfu:revert-gfx10-remove-ps-dummy-export

Conversation

@perlfu
Copy link
Copy Markdown
Contributor

@perlfu perlfu commented Aug 10, 2021

There is a subtle interaction with fragment shaders which write to
color buffers with no attachment. LLPC removes these outputs,
but it appears some shaders are expecting an output to happen
and relying on the results of a discard through this.

This was not picked up by Vulkan CTS testing, persumably as the
pipelines it uses are well-defined, but this behaviour does
occur in game titles.

The old dummy export behaviour was masking this problem by always
exporting when discards occur. Revert to this behaviour while
we investigate further.

This reverts commit 533147b.

There is a subtle interaction with fragment shaders which write to
color buffers with no attachment.  LLPC removes these outputs,
but it appears some shaders are expecting an output to happen
and relying on the results of a discard through this.

This was not picked up by Vulkan CTS testing, persumably as the
pipelines it uses are well-defined, but this behaviour does
occur in game titles.

The old dummy export behaviour was masking this problem by always
exporting when discards occur.  Revert to this behaviour while
we investigate further.

This reverts commit 533147b.
@perlfu perlfu requested review from amdrexu and trenouf as code owners August 10, 2021 04:12
@amdvlk-admin
Copy link
Copy Markdown

Test summary for commit 72cce05

Driver commits used in build
  • CWPACK: amd-master 7387247eb9889ddcabbc1053b9c2052e253b088e
  • METROHASH: amd-master 3c566dd9cda44ca7fd97659e0b53ac953f9037d2
  • PAL: dev 0e83f232d8b70c6823f62bbd9dbf286a68037fe2
  • SPVGEN: dev a46945586e83a71cb07b11936eb5fe503afd6360
  • XGL: dev a1cbd305b2745124f1ec6e924fb4934cb9d4af34
  • LLVM-PROJECT: amd-gfx-gpuopen-dev 9afbdfdf92f4fea339d4c9fdd9178856abd6bdfd
CTS tests (Failed: 0/228724)
  • Built with version 1.2.5.2
  • Rhel 8.2, Gfx10
    • Passed: 32108/57181 (56.2%)
    • Failed: 0/57181 (0.0%)
    • Not Supported: 25073/57181 (43.8%)
    Ubuntu 18.04, Gfx9
    • Passed: 32108/57181 (56.2%)
    • Failed: 0/57181 (0.0%)
    • Not Supported: 25073/57181 (43.8%)
    Ubuntu 20.04, Gfx8
    • Passed: 32488/57181 (56.8%)
    • Failed: 0/57181 (0.0%)
    • Not Supported: 24693/57181 (43.2%)
    Ubuntu 20.04, Gfx103
    • Passed: 35419/57181 (61.9%)
    • Failed: 0/57181 (0.0%)
    • Not Supported: 21762/57181 (38.1%)

@JaxLinAMD JaxLinAMD merged commit 06baf4f into GPUOpen-Drivers:dev Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants