descriptors: allocate heap sets one at a time #1758

Closed
github-bot wants to merge 1 commit from gh-pr/1758/head into gh-pr/1758/base
Owner

@⁠Arda501 on GitHub · 2026-10-20 13:06 UTC · original
Arda501:pr/descriptor-heap-alloc → main · +21 −22 · 1 files · 1 commits · closed without merging

Game and problem

SAROS (PPSA07631, v01.00), Linux (CachyOS), RX 9070 XT, Mesa RADV. Drawing with pipelines whose descriptor set holds a large sampled-image array (about 1,190 to 1,430 images plus a few buffers and samplers) exits with:

Error: condition (!Allocate(layout, fresh_batch)) is true in descriptorHeap.cpp

The failure is in DescriptorHeap::Commit: the allocation from a newly created or reset pool fails, even for a single set.

Cause

DescriptorHeap::Allocate asks for DescriptorSetBatch (32) sets in one vkAllocateDescriptorSets call. On VK_ERROR_OUT_OF_POOL_MEMORY it halves the count and retries in the same pool. With RADV, a multi-set allocation that runs out of memory partway keeps the pool memory of the sets it made before failing (the pool has no FREE_DESCRIPTOR_SET flag, so the pool is a linear allocator). After the 32-set attempt fails, the pool is already exhausted, so 16, 8, ... and finally 1 set fail as well, and the fresh-pool path exits.

A standalone Vulkan test with the same layout (bindings 7/7/7/2/2/0/7, 2+1+2+1190+62 sampled images + samplers) shows it on RADV GFX1201:

  • One set per call: a default-size pool (8192 sampled images) holds 11 sets.
  • A 32-set call fails, then 16, 8, 4, 2 and 1 set all fail with VK_ERROR_OUT_OF_POOL_MEMORY in that same, otherwise empty pool.

Change

  • Allocate allocates one set per call, up to the batch size, and stops at the first out-of-memory result. A failed single-set call does not consume pool memory, so a fresh pool always gets at least the sets that fit.
  • The pool sizes go up (32768 storage buffers, 65536 sampled images, 8192 storage images and samplers) so that pools holding these large sets are not replaced every few draws.

One file, descriptorHeap.cpp.

Testing

  • The standalone test above (Linux, RADV 9070 XT).
  • SAROS on Linux: the heap exit came up on my local performance branch, which records draws with these large bindless sets; with this change that branch runs without it. On main 1a053f9e alone, SAROS exits earlier, at gameplay start, for an unrelated reason fixed in #1760, so this exit cannot be reached there yet.
  • Builds on Linux (clang, RelWithDebInfo) on main 1a053f9e. Not built or tested on Windows.

AI use

Claude Code found the failing call, wrote the standalone reproduction and the change, and built it.
I reviewed all changes and did the game testing.

🤖 Generated with Claude Code

**@⁠Arda501** on GitHub · 2026-10-20 13:06 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1758) `Arda501:pr/descriptor-heap-alloc` → `main` · +21 −22 · 1 files · 1 commits · closed without merging ## Game and problem SAROS (PPSA07631, v01.00), Linux (CachyOS), RX 9070 XT, Mesa RADV. Drawing with pipelines whose descriptor set holds a large sampled-image array (about 1,190 to 1,430 images plus a few buffers and samplers) exits with: ``` Error: condition (!Allocate(layout, fresh_batch)) is true in descriptorHeap.cpp ``` The failure is in `DescriptorHeap::Commit`: the allocation from a newly created or reset pool fails, even for a single set. ## Cause `DescriptorHeap::Allocate` asks for `DescriptorSetBatch` (32) sets in one `vkAllocateDescriptorSets` call. On `VK_ERROR_OUT_OF_POOL_MEMORY` it halves the count and retries in the same pool. With RADV, a multi-set allocation that runs out of memory partway keeps the pool memory of the sets it made before failing (the pool has no `FREE_DESCRIPTOR_SET` flag, so the pool is a linear allocator). After the 32-set attempt fails, the pool is already exhausted, so 16, 8, ... and finally 1 set fail as well, and the fresh-pool path exits. A standalone Vulkan test with the same layout (bindings 7/7/7/2/2/0/7, 2+1+2+1190+62 sampled images + samplers) shows it on RADV GFX1201: - One set per call: a default-size pool (8192 sampled images) holds 11 sets. - A 32-set call fails, then 16, 8, 4, 2 and 1 set all fail with `VK_ERROR_OUT_OF_POOL_MEMORY` in that same, otherwise empty pool. ## Change - `Allocate` allocates one set per call, up to the batch size, and stops at the first out-of-memory result. A failed single-set call does not consume pool memory, so a fresh pool always gets at least the sets that fit. - The pool sizes go up (32768 storage buffers, 65536 sampled images, 8192 storage images and samplers) so that pools holding these large sets are not replaced every few draws. One file, `descriptorHeap.cpp`. ## Testing - The standalone test above (Linux, RADV 9070 XT). - SAROS on Linux: the heap exit came up on my local performance branch, which records draws with these large bindless sets; with this change that branch runs without it. On `main` 1a053f9e alone, SAROS exits earlier, at gameplay start, for an unrelated reason fixed in #1760, so this exit cannot be reached there yet. - Builds on Linux (clang, RelWithDebInfo) on `main` 1a053f9e. Not built or tested on Windows. ## AI use Claude Code found the failing call, wrote the standalone reproduction and the change, and built it. I reviewed all changes and did the game testing. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A multi-set vkAllocateDescriptorSets that runs out of pool memory can keep
the memory of the sets it made before failing (RADV linear pools), so the
halving retry never fits even one set and the fresh-pool allocation
aborts. Large bindless-style layouts (1000+ sampled images) hit this.
Allocate sets one at a time and size the pools for such layouts.

Developed with AI assistance (Claude Code); tested on Linux (RADV,
RX 9070 XT) with SAROS.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:04:50 +00:00
github-bot closed this pull request 2026-11-26 10:04:50 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-20 13:09 UTC · original · edited 2026-10-20 13:42 UTC

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7ecd6d92-8cb2-4b03-a35f-da37cd946428
📥 Commits

Reviewing files that changed from the base of the PR and between 1a053f9e13 and 287b03bd84.

📒 Files selected for processing: 1
  • src/graphics/host_gpu/renderer/pipeline/descriptorHeap.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

📝 Walkthrough

Descriptor pool capacities increase for storage buffers, sampled images, storage images, and samplers. DescriptorHeap::Allocate now requests descriptor sets one at a time. It stops when the batch is filled or allocation fails. For pool exhaustion or fragmentation, it reports whether it allocated at least one set. The previous retry behavior that halved the requested allocation size is removed.

Suggested reviewers: nmzik

Priority: ➖ Normal

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 287b0

The change allocates descriptor sets one at a time and raises pool capacities, which addresses the reported RADV retry failure. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: allocating descriptor heap sets one at a time.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The pull request description directly explains the descriptor allocation failure, the RADV cause, the one-at-a-time allocation change, the pool capacity changes, and the related testing.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-20 13:09 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1758#issuecomment-6291604060) · edited 2026-10-20 13:42 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/1758?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=3"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3" alt="Review in Change Stack →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary><strong>ℹ️ Recent review info</strong></summary> <dl> <dd> <details> <summary><strong>⚙️ Run configuration</strong></summary> <dl> <dd> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `7ecd6d92-8cb2-4b03-a35f-da37cd946428` </dd> </dl> </details> <details> <summary><strong>📥 Commits</strong></summary> <dl> <dd> Reviewing files that changed from the base of the PR and between 1a053f9e13405bf34171a47aae9f2b9a6e7afd7d and 287b03bd84140086e97ba3cebdb2fcb925b6222b. </dd> </dl> </details> <details> <summary><strong>📒 Files selected for processing: 1</strong></summary> <dl> <dd> * `src/graphics/host_gpu/renderer/pipeline/descriptorHeap.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. </dd> </dl> </details> <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary><strong>📝 Walkthrough</strong></summary> <dl> <dd> Descriptor pool capacities increase for storage buffers, sampled images, storage images, and samplers. `DescriptorHeap::Allocate` now requests descriptor sets one at a time. It stops when the batch is filled or allocation fails. For pool exhaustion or fragmentation, it reports whether it allocated at least one set. The previous retry behavior that halved the requested allocation size is removed. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ➖ Normal <!-- change_assessment_commit:"287b03bd84140086e97ba3cebdb2fcb925b6222b" --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong>⚪ Minimal</strong> · up to <code>287b0</code></summary> <dl> <dd> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `287b0` --> <!-- final_review_risk_coverage:{"sourceCommitId":"287b03bd84140086e97ba3cebdb2fcb925b6222b","coveredCommitId":"287b03bd84140086e97ba3cebdb2fcb925b6222b","kind":"reviewed"} --> The change allocates descriptor sets one at a time and raises pool capacities, which addresses the reported RADV retry failure. No concrete merge-blocking risk was identified. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4 · <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> 1</strong></summary> <dl> <dd> <strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-failed-14-v2.svg" width="14" height="14" align="middle" alt="Failed" title="Failed"></picture></sup> Failed checks: 1 warning</strong> | Check name | Status | Explanation | Resolution | | :---------------- | :----------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ![Warning](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-warning.svg) | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary><strong><sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> Passed checks: 4 passed</strong></summary> <dl> <dd> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title clearly and concisely describes the main change: allocating descriptor heap sets one at a time. | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The pull request description directly explains the descriptor allocation failure, the RADV cause, the one-at-a-time allocation change, the pool capacity changes, and the related testing. | </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=1758)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>❤️ Share</strong></summary> <dl> <dd> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-02 00:57 UTC · original

Windows data for this PR: Ghost of Yōtei (PPSA26344) hits the same exit, and this change fixes it there.

  • On main 893b03552 + #1967 (RX 9070 XT, AMD Windows driver 26.10.1, Windows 11): the game exits with condition (!Allocate(layout, fresh_batch)) is true at descriptorHeap.cpp:57. The failing layout has 5 storage buffers, 2390 sampled images and 3 samplers in 7 bindings. #1967 is needed to get this far; it removes an earlier stack overflow in this game.
  • AMD's Windows driver behaves like RADV here. In a fresh pool with main's default sizes, one set per call, 5 sets of 2390 sampled images fit. After a failed 32-set call, the same pool refuses 16, 8, 4, 2 and 1 set with VK_ERROR_OUT_OF_POOL_MEMORY. The same happens for sets of 1024 to 8192 sampled images. ViniciusDean measured the same on an RX 9070 XT in #829. TheCruZ's GTA V fork avoids it differently: TheCruZ/KytyPS5-GTA@6a15afa counts the room left in the pool and asks only for the sets that fit.
  • With this PR (287b03bd8) merged into the same build: the game no longer exits in DescriptorHeap::Commit and keeps loading. It then stays on a black screen while it keeps compiling pipelines. That is a separate problem.
  • Harness on Windows (clang, with #2038 so that it starts on AMD GPUs): DescriptorHeapLargeSet and the test below pass with this PR's descriptorHeap.cpp.

A harness test for this path, if you want it in the PR. On the RX 9070 XT:

  • It exits at descriptorHeap.cpp:57 on main and passes with this PR.
  • It also exits there with this PR's pool sizes but main's halving Allocate, so it covers the one-set-per-call change itself, not only the bigger pools.
  • It uses 4096 images per set so that a 32-set request does not fit a pool of this PR's size.
DescriptorHeapSampledImageSet (tests/ShaderRecompilerComputeTests.cpp)
  void CheckDescriptorHeapSampledImageSet() {
    constexpr const char *name = "DescriptorHeapSampledImageSet";
    EnsureRuntimeContext();
    vk::DescriptorSetLayoutBinding binding{};
    binding.binding = 0;
    binding.descriptorType = vk::DescriptorType::eSampledImage;
    binding.descriptorCount = 4096;
    binding.stageFlags = vk::ShaderStageFlagBits::eCompute;
    vk::DescriptorSetLayoutCreateInfo create{};
    create.sType = vk::StructureType::eDescriptorSetLayoutCreateInfo;
    create.bindingCount = 1;
    create.pBindings = &binding;
    vk::DescriptorSetLayout layout = nullptr;
    RequireVk(name, "layout", m_device.createDescriptorSetLayout(&create, nullptr, &layout),
              "vkCreateDescriptorSetLayout");

    {
      RenderContext context(m_runtime_context);
      auto &scheduler = context.GetCommandScheduler();
      HW::Context registers{};
      HW::UserConfig user_config{};
      HW::Shader shaders{};
      scheduler.Begin(registers, user_config, shaders);
      std::set<VkDescriptorSet> sets;
      const auto commit = [&] {
        const auto set = context.GetDescriptorHeap().Commit(layout);
        Require(name, "allocation", set != nullptr,
                "descriptor heap could not allocate a 4096-image set");
        sets.insert(static_cast<VkDescriptorSet>(set));
      };
      for (uint32_t i = 0; i < 12; i++) {
        commit();
      }
      Require(name, "distinct sets", sets.size() == 12,
              "descriptor heap handed out one set twice before the GPU finished");
      scheduler.Finish();
      for (uint32_t i = 0; i < 12; i++) {
        commit();
      }
    }

    m_device.destroyDescriptorSetLayout(layout, nullptr);
    std::printf("[host]    %-32s ok\n", name);
  }

It is called after CheckDescriptorHeapLargeSet() in the --descriptor-heap-only selector and in the full run.

**@⁠Nawid3333** on GitHub · 2026-11-02 00:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1758#issuecomment-6566532656) Windows data for this PR: Ghost of Yōtei (PPSA26344) hits the same exit, and this change fixes it there. - **On main 893b03552 + #1967 (RX 9070 XT, AMD Windows driver 26.10.1, Windows 11):** the game exits with `condition (!Allocate(layout, fresh_batch)) is true` at `descriptorHeap.cpp:57`. The failing layout has 5 storage buffers, 2390 sampled images and 3 samplers in 7 bindings. #1967 is needed to get this far; it removes an earlier stack overflow in this game. - **AMD's Windows driver behaves like RADV here.** In a fresh pool with main's default sizes, one set per call, 5 sets of 2390 sampled images fit. After a failed 32-set call, the same pool refuses 16, 8, 4, 2 and 1 set with `VK_ERROR_OUT_OF_POOL_MEMORY`. The same happens for sets of 1024 to 8192 sampled images. ViniciusDean measured the same on an RX 9070 XT in #829. TheCruZ's GTA V fork avoids it differently: TheCruZ/KytyPS5-GTA@6a15afa counts the room left in the pool and asks only for the sets that fit. - **With this PR (287b03bd8) merged into the same build:** the game no longer exits in `DescriptorHeap::Commit` and keeps loading. It then stays on a black screen while it keeps compiling pipelines. That is a separate problem. - **Harness on Windows (clang, with #2038 so that it starts on AMD GPUs):** `DescriptorHeapLargeSet` and the test below pass with this PR's `descriptorHeap.cpp`. A harness test for this path, if you want it in the PR. On the RX 9070 XT: - It exits at `descriptorHeap.cpp:57` on main and passes with this PR. - It also exits there with this PR's pool sizes but main's halving `Allocate`, so it covers the one-set-per-call change itself, not only the bigger pools. - It uses 4096 images per set so that a 32-set request does not fit a pool of this PR's size. <details><summary>DescriptorHeapSampledImageSet (tests/ShaderRecompilerComputeTests.cpp)</summary> ```cpp void CheckDescriptorHeapSampledImageSet() { constexpr const char *name = "DescriptorHeapSampledImageSet"; EnsureRuntimeContext(); vk::DescriptorSetLayoutBinding binding{}; binding.binding = 0; binding.descriptorType = vk::DescriptorType::eSampledImage; binding.descriptorCount = 4096; binding.stageFlags = vk::ShaderStageFlagBits::eCompute; vk::DescriptorSetLayoutCreateInfo create{}; create.sType = vk::StructureType::eDescriptorSetLayoutCreateInfo; create.bindingCount = 1; create.pBindings = &binding; vk::DescriptorSetLayout layout = nullptr; RequireVk(name, "layout", m_device.createDescriptorSetLayout(&create, nullptr, &layout), "vkCreateDescriptorSetLayout"); { RenderContext context(m_runtime_context); auto &scheduler = context.GetCommandScheduler(); HW::Context registers{}; HW::UserConfig user_config{}; HW::Shader shaders{}; scheduler.Begin(registers, user_config, shaders); std::set<VkDescriptorSet> sets; const auto commit = [&] { const auto set = context.GetDescriptorHeap().Commit(layout); Require(name, "allocation", set != nullptr, "descriptor heap could not allocate a 4096-image set"); sets.insert(static_cast<VkDescriptorSet>(set)); }; for (uint32_t i = 0; i < 12; i++) { commit(); } Require(name, "distinct sets", sets.size() == 12, "descriptor heap handed out one set twice before the GPU finished"); scheduler.Finish(); for (uint32_t i = 0; i < 12; i++) { commit(); } } m_device.destroyDescriptorSetLayout(layout, nullptr); std::printf("[host] %-32s ok\n", name); } ``` It is called after `CheckDescriptorHeapLargeSet()` in the `--descriptor-heap-only` selector and in the full run. </details>
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-15 14:49 UTC · original

Another game: A Plague Tale: Requiem (PPSA05366), tested by @⁠Crispy81 in #1995 on Windows 11 with an RX 9070 XT and a Ryzen 7 7700X.

  • bc934ef: the game reaches the main menu, starts a new game and stops right after it has loaded, with condition (!Allocate(layout, fresh_batch)) is true at descriptorHeap.cpp:55.
  • bc934ef + this PR (fork build, a merge of 287b03bd8 into bc934ef03 and nothing else): the game gets past that point and into gameplay (comment, with screenshots).
**@⁠Nawid3333** on GitHub · 2026-11-15 14:49 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1758#issuecomment-6896369584) Another game: A Plague Tale: Requiem (PPSA05366), tested by @⁠Crispy81 in #1995 on Windows 11 with an RX 9070 XT and a Ryzen 7 7700X. - **bc934ef:** the game reaches the main menu, starts a new game and stops right after it has loaded, with `condition (!Allocate(layout, fresh_batch)) is true` at `descriptorHeap.cpp:55`. - **bc934ef + this PR** ([fork build](https://github.com/Nawid3333/KytyPS5/actions/runs/43151236611), a merge of 287b03bd8 into bc934ef03 and nothing else): the game gets past that point and into gameplay ([comment](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1995), with screenshots).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.