kyty: 864 GiB sparse mirror triggers VUID-VkBufferCreateInfo-size-06409 and fails validation-checked replay tests

オープン
#736 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
testing

調査の方向性

Start with the sparse mirror buffer creation path exercised by the four named Kyty replay tests, then inspect how the focused GPU suite handles Vulkan validation logs. Reproduce with the provided PowerShell environment and CTest command. Done when the oversized buffer no longer triggers VUID-VkBufferCreateInfo-size-06409 and all four tests pass with validation enabled.

索引モデルが issue の本文から書いたものです。

説明

Commit: db7808f91d0812fe559831b496c2ca3abd4e0821 (AnyKyty)
Hardware / OS: Windows 11 (10.0.26300.0), Intel Core i9-9900K, AMD Radeon RX 6800 (AMD proprietary driver 26.11.2, Vulkan 1.4.315), Khronos validation layer 1.4.363
Tracking: #705

Behavior

When running the focused Kyty GPU suite with VK_LAYER_KHRONOS_validation, creating the 864 GiB sparse mirror buffer (927712935936 bytes) exceeds VkPhysicalDeviceMaintenance4Properties.maxBufferSize (2147483648 bytes) and emits VUID-VkBufferCreateInfo-size-06409 (102 entries across 57 tests on AMD Windows, matching the 109 entries reported on Linux RADV in #705).

Four tests that pass without validation fail under VK_LAYER_KHRONOS_validation specifically because they check the validation log:

  • kyty_shim_depth_target_alias (stencil-filled: stencil replay logged a Vulkan validation error)
  • kyty_shim_formatted_buffer_norm (replay failed Vulkan validation log checks)
  • kyty_shim_buffer_bounds_replay (replay failed Vulkan validation log checks)
  • kyty_shim_packed_buffer_format (replay failed Vulkan validation log checks)

Reproduction

$env:VK_ADD_LAYER_PATH = "C:\VulkanSDK\1.4.363.0\Bin"
$env:VK_INSTANCE_LAYERS = "VK_LAYER_KHRONOS_validation"
$env:ANYPS5_REQUIRE_VULKAN = "1"
$env:ANYPS5_NO_SHADER_CACHE = "1"
ctest --test-dir build -R "^(kyty_shim_depth_target_alias|kyty_shim_formatted_buffer_norm|kyty_shim_buffer_bounds_replay|kyty_shim_packed_buffer_format)$" --output-on-failure -V

First VUID- line

Validation Error: [ VUID-VkBufferCreateInfo-size-06409 ] | MessageID = 0xec321b6c
vkCreateBuffer(): pCreateInfo->size (927712935936) is larger than the maximum allowed buffer size VkPhysicalDeviceMaintenance4Properties.maxBufferSize (2147483648).
The Vulkan spec states: size must be less than or equal to VkPhysicalDeviceMaintenance4Properties::maxBufferSize (https://docs.vulkan.org/spec/latest/chapters/resources.html#VUID-VkBufferCreateInfo-size-06409)

AI-assisted: yes. Built, ran, and drafted with an AI assistant.

主要言語
C++
スター
214
フォーク
7
平均マージ
7時間 53分
マージ済み PR(30日)
280

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

simnJS/AnyPS5 のほかの issue

simnJS/AnyPS5 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。