hedge-dev / hedge-dev/UnleashedRecomp

Latest D3D12 Agility SDK breaks running Debug builds

Open
#1,638 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #1640 by @blueskythlikesclouds — closed without merging
Dominant language
C++
Stars
5.1k
Forks
421
PR merge metrics
No merged PRs in 30d

Description

The following validation error is triggered when running the game using the D3D12 backend on Debug builds. It triggers the moment the textures used for ImGui are trying to be loaded.

Agility SDK: 1.616.1

D3D12 ERROR: ID3D12CommandList::CopyTextureRegion: Barrier layout(D3D12_BARRIER_LAYOUT_LEGACY_COPY_DEST), pResource = 0x0000008008045BA0:'Unnamed ID3D12Resource Object', subresource = [0], does not match expected layout (D3D12_BARRIER_LAYOUT_COMMON) using D3D12_COMMAND_LIST_TYPE_COPY command list 0x00000080077F5B80:'Unnamed ID3D12GraphicsCommandList Object') in CopyTextureRegion for use as a destination resource [ STATE_SETTING ERROR #1334: INCOMPATIBLE_BARRIER_LAYOUT]
D3D12: **BREAK** enabled for the previous message, which was: [ ERROR STATE_SETTING #1334: INCOMPATIBLE_BARRIER_LAYOUT ]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce a Debug build using the D3D12 backend with Agility SDK 1.616.1 while the ImGui textures load, and inspect the texture upload path around CopyTextureRegion and its resource barriers. Done means the validation error no longer occurs during texture loading without regressing the D3D12 backend.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.