[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HPRGSBFP1N6SFQFC52SYFR":3,"skill-same:01M6HPRGSBFP1N6SFQFC52SYFR":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6HPRGSBFP1N6SFQFC52SYFR","gfxstream_deqp_vk",null,"Build, run, debug, and iterate on Linux deqp-vk Vulkan CTS tests over Gfxstream (guest vulkan.ranchu.so + host kumquat_virtio + Lavapipe) without an Android guest image. Use this skill whenever running dEQP-VK tests against Gfxstream, diagnosing Vulkan CTS failures, collecting guest\u002Fhost\u002FQPA logs, or making iterative fixes to Gfxstream guest (external\u002Fmesa3d), Gfxstream host (hardware\u002Fgoogle\u002Fgfxstream), or dEQP (external\u002Fdeqp). This skill assumes a certain checkout structure to locate gfxstream, mesa3d, and deqp folders relative to the workspace root.","google\u002Fgfxstream","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M6HPRE9KHA311A3B04BX5XFY",65,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fgfxstream\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgfxstream_deqp_vk\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,9],"gfxstream deqp vk","vk","structure","running","Workspace Root","iterate","fixes","root","locate","checkout","host","tests","image","build","use","workspace","logs","run","debug","linux","vulkan","android","2026-11-10 10:12:30",false,"---\nname: gfxstream_deqp_vk\ndescription: Build, run, debug, and iterate on Linux deqp-vk Vulkan CTS tests over Gfxstream (guest vulkan.ranchu.so + host kumquat_virtio + Lavapipe) without an Android guest image. Use this skill whenever running dEQP-VK tests against Gfxstream, diagnosing Vulkan CTS failures, collecting guest\u002Fhost\u002FQPA logs, or making iterative fixes to Gfxstream guest (external\u002Fmesa3d), Gfxstream host (hardware\u002Fgoogle\u002Fgfxstream), or dEQP (external\u002Fdeqp). This skill assumes a certain checkout structure to locate gfxstream, mesa3d, and deqp folders relative to the workspace root.\n---\n\n# Gfxstream Linux `deqp-vk` Fast-Iteration Skill\n\nThis skill enables fast edit-compile-test iterations for Vulkan CTS (`deqp-vk`) over Gfxstream on Linux via `bazel test` without booting an Android guest image.\n\n## Architecture & Key Paths\n\n```\n[deqp-vk (@deqp\u002F\u002F:deqp-vk, Linux headless target)]\n       |  (--deqp-vk-library-path=vulkan.ranchu.so)\n       v\n[Guest Gfxstream ICD: vulkan.ranchu.so (@mesa\u002F\u002F:mesa_gfxstream_guest_vulkan)]  (VIRTGPU_KUMQUAT=1)\n       |  (\u002Ftmp\u002Fkumquat-gpu-0 UNIX socket + shared memory blobs)\n       v\n[Host Server: kumquat_virtio (@rutabaga\u002F\u002F:rutabaga_gfx_kumquat_server)]  (libgfxstream_backend)\n       |  (VK_DRIVER_FILES=vk_lavapipe_icd.json or host driver)\n       v\n[Host Vulkan Driver: Lavapipe \u002F SwiftShader \u002F Host GPU]\n```\n\n### Expected Checkout Structure & Source Code Locations\n```\n\u003Cworkspace_root>\u002F\n├── hardware\u002Fgoogle\u002Fgfxstream\u002F   # Gfxstream host, Bazel build files, & dEQP test wrapper\n├── external\u002Fmesa3d\u002F             # Optional local Gfxstream guest Vulkan driver checkout\n└── external\u002Fdeqp\u002F               # Optional local dEQP \u002F Vulkan CTS source checkout\n```\n\n- **Gfxstream Repository (Host & Test Wrapper)**: `hardware\u002Fgoogle\u002Fgfxstream`\n  - **Host Vulkan Decoder**: `host\u002Fvulkan\u002F` (`VkDecoder.cpp`, `VkDecoderGlobalState.cpp`, `VkSubDecoder.cpp`, etc.)\n  - **Host Vulkan Codegen**: `codegen\u002Fscripts\u002F` and `host\u002Fvulkan\u002Fcereal\u002F`\n  - **Bazel dEQP Test Macro & Wrapper**:\n    - `tests\u002Fdeqp\u002Ftooling\u002Fdeqp.bzl` (`gfxstream_deqp_vk_test`)\n    - `tests\u002Fdeqp\u002Ftooling\u002Fdeqp_wrapper.sh`\n    - `tests\u002Fdeqp\u002Ftooling\u002Fdeqp_qpa_to_test_xml.py` & `tests\u002Fdeqp\u002Ftooling\u002Fdeqp_qpa_to_test_xml_main.py`\n    - `tests\u002Fdeqp\u002FBUILD.bazel` (`\u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests`)\n  - **dEQP Bazel Build Definitions**: `third_party\u002Fdeqp\u002F`, `third_party\u002Famber\u002F`, `third_party\u002Flibpng\u002F`\n  - **Mesa Bazel Build Definitions**: `third_party\u002Fmesa\u002F` (`mesa.MODULE.bazel`, `BUILD.mesa.bazel`)\n- **Gfxstream Guest Vulkan ICD (`vulkan.ranchu.so`)**: `external\u002Fmesa3d\u002Fsrc\u002Fgfxstream`\n  - **Guest Vulkan Driver & Encoder**: `src\u002Fgfxstream\u002Fguest\u002Fvulkan\u002F` and `src\u002Fgfxstream\u002Fguest\u002Fvulkan_enc\u002F` (`ResourceTracker.cpp`, `VkEncoder.cpp`, `gfxstream_vk_device.cpp`, `gfxstream_vk_cmd.cpp`, etc.)\n  - **Guest Codegen**: `src\u002Fgfxstream\u002Fcodegen\u002Fscripts\u002F`\n- **dEQP \u002F Vulkan CTS Source**: `external\u002Fdeqp`\n  - **Vulkan CTS Modules**: `external\u002Fvulkancts\u002Fmodules\u002Fvulkan\u002F`\n  - **Built-in Mustpass Caselists**: `external\u002Fvulkancts\u002Fmustpass\u002Fmain\u002Fvk-default\u002F`\n\n---\n\n## Scope & Limitations (CRITICAL)\n\nThis harness runs on **Linux host + Linux guest user-space** (`DEQP_SUPPORT_HEADLESS=1` over `kumquat_virtio`), **without** an Android OS framework (`surfaceflinger`, `gralloc`, `libandroid`).\n\n### Supported Test Suites\n- Core Vulkan 1.0 \u002F 1.1 \u002F 1.2 \u002F 1.3 API, pipeline, shader, SPIR-V, compute, memory, synchronization, descriptors, dynamic rendering, renderpass, image, texture, subgroups, robustness, YCbCr, and POSIX external memory\u002Fsemaphore (`opaque_fd`) tests:\n  - `dEQP-VK.api.*` (excluding Android-specific subtrees below)\n  - `dEQP-VK.pipeline.*`, `dEQP-VK.binding_model.*`, `dEQP-VK.spirv_assembly.*`, `dEQP-VK.glsl.*`\n  - `dEQP-VK.memory.*`, `dEQP-VK.synchronization.*`, `dEQP-VK.Synchronization2.*`\n  - `dEQP-VK.compute.*`, `dEQP-VK.draw.*`, `dEQP-VK.renderpass*`, `dEQP-VK.dynamic_rendering.*`\n  - `dEQP-VK.image.*`, `dEQP-VK.texture.*`, `dEQP-VK.ycbcr.*`, `dEQP-VK.subgroups.*`, `dEQP-VK.robustness.*`\n\n### Unsupported Test Suites (Require Android Guest Image)\nDo **NOT** use this harness to validate Android-only extensions; they will report `NotSupported` or fail to find Android symbols:\n1. **Android Hardware Buffers (AHB)**:\n   - `VK_ANDROID_external_memory_android_hardware_buffer`\n   - `dEQP-VK.api.external.memory.android_hardware_buffer.*`\n2. **Android Window System Integration (WSI)**:\n   - `VK_KHR_android_surface`, `ANativeWindow`, `VK_ANDROID_native_buffer`\n   - `dEQP-VK.wsi.android.*`\n3. **Android Native Sync FD \u002F Gralloc**:\n   - Android-specific fence\u002Fsemaphore FDs requiring Android `libsync` or `gralloc` HALs.\n\n---\n\n## Workflow Commands\n\nAlways run commands with `Cwd` set to `\u003Cworkspace_root>\u002Fhardware\u002Fgoogle\u002Fgfxstream`.\nBazel automatically fetches and builds `@deqp\u002F\u002F:deqp-vk`, `@deqp\u002F\u002F:data`, `@mesa\u002F\u002F:mesa_gfxstream_guest_vulkan`, and `@rutabaga\u002F\u002F:rutabaga_gfx_kumquat_server`.\n\n### 1. Running Tests via `bazel test`\n\n```bash\n# Run default smoke tests (dEQP-VK.api.smoke.*) against host Vulkan driver:\nbazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n  --test_output=streamed\n\n# Run smoke tests against hermetic Lavapipe software Vulkan driver:\nbazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n  --graphics_drivers=gles_angle_vulkan_lavapipe \\\n  --test_output=streamed\n\n# Run a single test or custom comma-separated wildcard pattern via --test_arg:\nbazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n  --graphics_drivers=gles_angle_vulkan_lavapipe \\\n  --test_output=streamed \\\n  --test_arg=--deqp_cases=\"dEQP-VK.api.smoke.triangle\"\n\n# Pass custom Kumquat --renderer-features (e.g. VulkanValidation:print):\nbazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n  --graphics_drivers=gles_angle_vulkan_lavapipe \\\n  --test_output=streamed \\\n  --test_arg=--renderer_features=\"VulkanValidation:print\" \\\n  --test_arg=--deqp_cases=\"dEQP-VK.api.smoke.triangle\"\n```\n\n### 2. Defining Sharded Test Targets with `gfxstream_deqp_vk_test`\n\n`gfxstream_deqp_vk_test` in `tests\u002Fdeqp\u002Ftooling\u002Fdeqp.bzl` supports native Bazel test sharding (`shard_count` \u002F `TEST_TOTAL_SHARDS` \u002F `TEST_SHARD_INDEX`):\n\n```python\ngfxstream_deqp_vk_test(\n    name = \"deqp_vk_smoke_tests\",\n    deqp_cases = [\"dEQP-VK.api.smoke.*\"],\n)\n```\n\n### 3. Iterating Against Local `external\u002Fmesa3d` or `external\u002Fdeqp` Checkouts\n\nBy default, `third_party\u002Fmesa\u002Fmesa.MODULE.bazel` and `third_party\u002Fdeqp\u002Fdeqp.MODULE.bazel` pin `@mesa` and `@deqp` to hermetic upstream commits.\nTo build and test against local source modifications in `\u003Cworkspace_root>\u002Fexternal\u002Fmesa3d` or `\u003Cworkspace_root>\u002Fexternal\u002Fdeqp`:\n\n#### Local `@mesa` (`\u003Cworkspace_root>\u002Fexternal\u002Fmesa3d`):\n1. Ensure the testing patch (`third_party\u002Fmesa\u002FPATCH.0001_disable_vk_envvar_modification_for_testing.patch`) is applied and `BUILD.bazel` is symlinked to `third_party\u002Fmesa\u002FBUILD.mesa.bazel`:\n   ```bash\n   ln -sf $(pwd)\u002Fthird_party\u002Fmesa\u002FBUILD.mesa.bazel ..\u002F..\u002Fexternal\u002Fmesa3d\u002FBUILD.bazel\n   git -C ..\u002F..\u002Fexternal\u002Fmesa3d apply --check $(pwd)\u002Fthird_party\u002Fmesa\u002FPATCH.0001_disable_vk_envvar_modification_for_testing.patch 2>\u002Fdev\u002Fnull && \\\n     git -C ..\u002F..\u002Fexternal\u002Fmesa3d apply $(pwd)\u002Fthird_party\u002Fmesa\u002FPATCH.0001_disable_vk_envvar_modification_for_testing.patch || true\n   ```\n2. Pass `--override_repository=+git_repository+mesa=$(realpath ..\u002F..\u002Fexternal\u002Fmesa3d)` to `bazel test`:\n   ```bash\n   bazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n     --graphics_drivers=gles_angle_vulkan_lavapipe \\\n     --override_repository=+git_repository+mesa=$(realpath ..\u002F..\u002Fexternal\u002Fmesa3d) \\\n     --test_output=streamed \\\n     --test_arg=--deqp_cases=\"dEQP-VK.api.smoke.triangle\"\n   ```\n   *(Remember to remove the temporary `BUILD.bazel` symlink and revert the patch in `external\u002Fmesa3d` before committing changes there.)*\n\n#### Local `@deqp` (`\u003Cworkspace_root>\u002Fexternal\u002Fdeqp`):\n1. Symlink `third_party\u002Fdeqp\u002FBUILD.deqp.bazel` to `..\u002F..\u002Fexternal\u002Fdeqp\u002FBUILD.bazel`:\n   ```bash\n   ln -sf $(pwd)\u002Fthird_party\u002Fdeqp\u002FBUILD.deqp.bazel ..\u002F..\u002Fexternal\u002Fdeqp\u002FBUILD.bazel\n   ```\n2. Pass `--override_repository=+git_repository+deqp=$(realpath ..\u002F..\u002Fexternal\u002Fdeqp)` to `bazel test`:\n   ```bash\n   bazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n     --graphics_drivers=gles_angle_vulkan_lavapipe \\\n     --override_repository=+git_repository+deqp=$(realpath ..\u002F..\u002Fexternal\u002Fdeqp) \\\n     --test_output=streamed \\\n     --test_arg=--deqp_cases=\"dEQP-VK.api.smoke.triangle\"\n   ```\n\n---\n\n## Collecting & Analyzing Logs\n\nEvery `bazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests` invocation writes test results and diagnostic artifacts under `bazel-testlogs\u002Ftests\u002Fdeqp\u002Fdeqp_vk_smoke_tests\u002F`:\n\n1. **`test.xml`**:\n   - JUnit XML converted from `TestResults.qpa` by `deqp_qpa_to_test_xml_main`, listing per-case pass\u002Ffail\u002Fskip\u002Fcrash status and failure details.\n2. **`test.log`**:\n   - Captures stdout\u002Fstderr from `deqp_wrapper.sh`, `deqp-vk`, and guest `vulkan.ranchu.so` (`mesa_loge`, `mesa_logi`, guest encoder errors, VirtGpuKumquat messages).\n3. **`test.outputs\u002F`** (undeclared test outputs, or `test.outputs\u002Foutputs.zip` when zipped):\n   - **`TestResults.qpa`**: Raw dEQP QPA log file for all executed test cases.\n   - **`kumquat_logs.txt`**: Captures stdout\u002Fstderr from `kumquat_virtio`, Gfxstream host Vulkan decoder (`VkDecoder`, `FrameBuffer`, `VkCommonOperations`), and Lavapipe\u002FSwiftShader\u002Fhost driver messages.\n   - **`sharded_deqp_caselist.txt`**: Exact list of dEQP test cases assigned to the shard.\n\n---\n\n## Recommended AI Debugging Loop\n\n1. **Reproduce**: Run the failing test case in isolation:\n   ```bash\n   bazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n     --graphics_drivers=gles_angle_vulkan_lavapipe \\\n     --test_output=streamed \\\n     --test_arg=--deqp_cases=\"dEQP-VK.\u003Cfailing_test>\"\n   ```\n2. **Inspect Logs**:\n   - Check `bazel-testlogs\u002Ftests\u002Fdeqp\u002Fdeqp_vk_smoke_tests\u002Ftest.xml`, `test.log`, and `test.outputs\u002F` (`TestResults.qpa`, `kumquat_logs.txt`) for dEQP failure details and guest encoder vs. host decoder errors.\n3. **Modify Code**:\n   - For host-side Vulkan decoding\u002Femulation issues: edit files under `hardware\u002Fgoogle\u002Fgfxstream\u002Fhost\u002Fvulkan\u002F`.\n   - For guest-side Vulkan encoding\u002Fresource tracking issues: edit files under `external\u002Fmesa3d\u002Fsrc\u002Fgfxstream\u002Fguest\u002F` and run with `--override_repository=+git_repository+mesa=...`.\n   - For dEQP test adjustments or extra debug logging in CTS: edit files under `external\u002Fdeqp\u002Fexternal\u002Fvulkancts\u002F` and run with `--override_repository=+git_repository+deqp=...`.\n4. **Rebuild & Verify**:\n   Re-run the `bazel test` command above, then run the broader module wildcard (e.g. `--test_arg=--deqp_cases=\"dEQP-VK.\u003Cmodule>.*\"`) to ensure no regressions.\n","# Gfxstream Linux `deqp-vk` Fast-Iteration Skill\n\nThis skill enables fast edit-compile-test iterations for Vulkan CTS (`deqp-vk`) over Gfxstream on Linux via `bazel test` without booting an Android guest image.\n\n## Architecture & Key Paths\n\n```\n[deqp-vk (@deqp\u002F\u002F:deqp-vk, Linux headless target)]\n       |  (--deqp-vk-library-path=vulkan.ranchu.so)\n       v\n[Guest Gfxstream ICD: vulkan.ranchu.so (@mesa\u002F\u002F:mesa_gfxstream_guest_vulkan)]  (VIRTGPU_KUMQUAT=1)\n       |  (\u002Ftmp\u002Fkumquat-gpu-0 UNIX socket + shared memory blobs)\n       v\n[Host Server: kumquat_virtio (@rutabaga\u002F\u002F:rutabaga_gfx_kumquat_server)]  (libgfxstream_backend)\n       |  (VK_DRIVER_FILES=vk_lavapipe_icd.json or host driver)\n       v\n[Host Vulkan Driver: Lavapipe \u002F SwiftShader \u002F Host GPU]\n```\n\n### Expected Checkout Structure & Source Code Locations\n```\n\u003Cworkspace_root>\u002F\n├── hardware\u002Fgoogle\u002Fgfxstream\u002F   # Gfxstream host, Bazel build files, & dEQP test wrapper\n├── external\u002Fmesa3d\u002F             # Optional local Gfxstream guest Vulkan driver checkout\n└── external\u002Fdeqp\u002F               # Optional local dEQP \u002F Vulkan CTS source checkout\n```\n\n- **Gfxstream Repository (Host & Test Wrapper)**: `hardware\u002Fgoogle\u002Fgfxstream`\n  - **Host Vulkan Decoder**: `host\u002Fvulkan\u002F` (`VkDecoder.cpp`, `VkDecoderGlobalState.cpp`, `VkSubDecoder.cpp`, etc.)\n  - **Host Vulkan Codegen**: `codegen\u002Fscripts\u002F` and `host\u002Fvulkan\u002Fcereal\u002F`\n  - **Bazel dEQP Test Macro & Wrapper**:\n    - `tests\u002Fdeqp\u002Ftooling\u002Fdeqp.bzl` (`gfxstream_deqp_vk_test`)\n    - `tests\u002Fdeqp\u002Ftooling\u002Fdeqp_wrapper.sh`\n    - `tests\u002Fdeqp\u002Ftooling\u002Fdeqp_qpa_to_test_xml.py` & `tests\u002Fdeqp\u002Ftooling\u002Fdeqp_qpa_to_test_xml_main.py`\n    - `tests\u002Fdeqp\u002FBUILD.bazel` (`\u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests`)\n  - **dEQP Bazel Build Definitions**: `third_party\u002Fdeqp\u002F`, `third_party\u002Famber\u002F`, `third_party\u002Flibpng\u002F`\n  - **Mesa Bazel Build Definitions**: `third_party\u002Fmesa\u002F` (`mesa.MODULE.bazel`, `BUILD.mesa.bazel`)\n- **Gfxstream Guest Vulkan ICD (`vulkan.ranchu.so`)**: `external\u002Fmesa3d\u002Fsrc\u002Fgfxstream`\n  - **Guest Vulkan Driver & Encoder**: `src\u002Fgfxstream\u002Fguest\u002Fvulkan\u002F` and `src\u002Fgfxstream\u002Fguest\u002Fvulkan_enc\u002F` (`ResourceTracker.cpp`, `VkEncoder.cpp`, `gfxstream_vk_device.cpp`, `gfxstream_vk_cmd.cpp`, etc.)\n  - **Guest Codegen**: `src\u002Fgfxstream\u002Fcodegen\u002Fscripts\u002F`\n- **dEQP \u002F Vulkan CTS Source**: `external\u002Fdeqp`\n  - **Vulkan CTS Modules**: `external\u002Fvulkancts\u002Fmodules\u002Fvulkan\u002F`\n  - **Built-in Mustpass Caselists**: `external\u002Fvulkancts\u002Fmustpass\u002Fmain\u002Fvk-default\u002F`\n\n---\n\n## Scope & Limitations (CRITICAL)\n\nThis harness runs on **Linux host + Linux guest user-space** (`DEQP_SUPPORT_HEADLESS=1` over `kumquat_virtio`), **without** an Android OS framework (`surfaceflinger`, `gralloc`, `libandroid`).\n\n### Supported Test Suites\n- Core Vulkan 1.0 \u002F 1.1 \u002F 1.2 \u002F 1.3 API, pipeline, shader, SPIR-V, compute, memory, synchronization, descriptors, dynamic rendering, renderpass, image, texture, subgroups, robustness, YCbCr, and POSIX external memory\u002Fsemaphore (`opaque_fd`) tests:\n  - `dEQP-VK.api.*` (excluding Android-specific subtrees below)\n  - `dEQP-VK.pipeline.*`, `dEQP-VK.binding_model.*`, `dEQP-VK.spirv_assembly.*`, `dEQP-VK.glsl.*`\n  - `dEQP-VK.memory.*`, `dEQP-VK.synchronization.*`, `dEQP-VK.Synchronization2.*`\n  - `dEQP-VK.compute.*`, `dEQP-VK.draw.*`, `dEQP-VK.renderpass*`, `dEQP-VK.dynamic_rendering.*`\n  - `dEQP-VK.image.*`, `dEQP-VK.texture.*`, `dEQP-VK.ycbcr.*`, `dEQP-VK.subgroups.*`, `dEQP-VK.robustness.*`\n\n### Unsupported Test Suites (Require Android Guest Image)\nDo **NOT** use this harness to validate Android-only extensions; they will report `NotSupported` or fail to find Android symbols:\n1. **Android Hardware Buffers (AHB)**:\n   - `VK_ANDROID_external_memory_android_hardware_buffer`\n   - `dEQP-VK.api.external.memory.android_hardware_buffer.*`\n2. **Android Window System Integration (WSI)**:\n   - `VK_KHR_android_surface`, `ANativeWindow`, `VK_ANDROID_native_buffer`\n   - `dEQP-VK.wsi.android.*`\n3. **Android Native Sync FD \u002F Gralloc**:\n   - Android-specific fence\u002Fsemaphore FDs requiring Android `libsync` or `gralloc` HALs.\n\n---\n\n## Workflow Commands\n\nAlways run commands with `Cwd` set to `\u003Cworkspace_root>\u002Fhardware\u002Fgoogle\u002Fgfxstream`.\nBazel automatically fetches and builds `@deqp\u002F\u002F:deqp-vk`, `@deqp\u002F\u002F:data`, `@mesa\u002F\u002F:mesa_gfxstream_guest_vulkan`, and `@rutabaga\u002F\u002F:rutabaga_gfx_kumquat_server`.\n\n### 1. Running Tests via `bazel test`\n\n```bash\n# Run default smoke tests (dEQP-VK.api.smoke.*) against host Vulkan driver:\nbazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n  --test_output=streamed\n\n# Run smoke tests against hermetic Lavapipe software Vulkan driver:\nbazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n  --graphics_drivers=gles_angle_vulkan_lavapipe \\\n  --test_output=streamed\n\n# Run a single test or custom comma-separated wildcard pattern via --test_arg:\nbazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n  --graphics_drivers=gles_angle_vulkan_lavapipe \\\n  --test_output=streamed \\\n  --test_arg=--deqp_cases=\"dEQP-VK.api.smoke.triangle\"\n\n# Pass custom Kumquat --renderer-features (e.g. VulkanValidation:print):\nbazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n  --graphics_drivers=gles_angle_vulkan_lavapipe \\\n  --test_output=streamed \\\n  --test_arg=--renderer_features=\"VulkanValidation:print\" \\\n  --test_arg=--deqp_cases=\"dEQP-VK.api.smoke.triangle\"\n```\n\n### 2. Defining Sharded Test Targets with `gfxstream_deqp_vk_test`\n\n`gfxstream_deqp_vk_test` in `tests\u002Fdeqp\u002Ftooling\u002Fdeqp.bzl` supports native Bazel test sharding (`shard_count` \u002F `TEST_TOTAL_SHARDS` \u002F `TEST_SHARD_INDEX`):\n\n```python\ngfxstream_deqp_vk_test(\n    name = \"deqp_vk_smoke_tests\",\n    deqp_cases = [\"dEQP-VK.api.smoke.*\"],\n)\n```\n\n### 3. Iterating Against Local `external\u002Fmesa3d` or `external\u002Fdeqp` Checkouts\n\nBy default, `third_party\u002Fmesa\u002Fmesa.MODULE.bazel` and `third_party\u002Fdeqp\u002Fdeqp.MODULE.bazel` pin `@mesa` and `@deqp` to hermetic upstream commits.\nTo build and test against local source modifications in `\u003Cworkspace_root>\u002Fexternal\u002Fmesa3d` or `\u003Cworkspace_root>\u002Fexternal\u002Fdeqp`:\n\n#### Local `@mesa` (`\u003Cworkspace_root>\u002Fexternal\u002Fmesa3d`):\n1. Ensure the testing patch (`third_party\u002Fmesa\u002FPATCH.0001_disable_vk_envvar_modification_for_testing.patch`) is applied and `BUILD.bazel` is symlinked to `third_party\u002Fmesa\u002FBUILD.mesa.bazel`:\n   ```bash\n   ln -sf $(pwd)\u002Fthird_party\u002Fmesa\u002FBUILD.mesa.bazel ..\u002F..\u002Fexternal\u002Fmesa3d\u002FBUILD.bazel\n   git -C ..\u002F..\u002Fexternal\u002Fmesa3d apply --check $(pwd)\u002Fthird_party\u002Fmesa\u002FPATCH.0001_disable_vk_envvar_modification_for_testing.patch 2>\u002Fdev\u002Fnull && \\\n     git -C ..\u002F..\u002Fexternal\u002Fmesa3d apply $(pwd)\u002Fthird_party\u002Fmesa\u002FPATCH.0001_disable_vk_envvar_modification_for_testing.patch || true\n   ```\n2. Pass `--override_repository=+git_repository+mesa=$(realpath ..\u002F..\u002Fexternal\u002Fmesa3d)` to `bazel test`:\n   ```bash\n   bazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n     --graphics_drivers=gles_angle_vulkan_lavapipe \\\n     --override_repository=+git_repository+mesa=$(realpath ..\u002F..\u002Fexternal\u002Fmesa3d) \\\n     --test_output=streamed \\\n     --test_arg=--deqp_cases=\"dEQP-VK.api.smoke.triangle\"\n   ```\n   *(Remember to remove the temporary `BUILD.bazel` symlink and revert the patch in `external\u002Fmesa3d` before committing changes there.)*\n\n#### Local `@deqp` (`\u003Cworkspace_root>\u002Fexternal\u002Fdeqp`):\n1. Symlink `third_party\u002Fdeqp\u002FBUILD.deqp.bazel` to `..\u002F..\u002Fexternal\u002Fdeqp\u002FBUILD.bazel`:\n   ```bash\n   ln -sf $(pwd)\u002Fthird_party\u002Fdeqp\u002FBUILD.deqp.bazel ..\u002F..\u002Fexternal\u002Fdeqp\u002FBUILD.bazel\n   ```\n2. Pass `--override_repository=+git_repository+deqp=$(realpath ..\u002F..\u002Fexternal\u002Fdeqp)` to `bazel test`:\n   ```bash\n   bazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n     --graphics_drivers=gles_angle_vulkan_lavapipe \\\n     --override_repository=+git_repository+deqp=$(realpath ..\u002F..\u002Fexternal\u002Fdeqp) \\\n     --test_output=streamed \\\n     --test_arg=--deqp_cases=\"dEQP-VK.api.smoke.triangle\"\n   ```\n\n---\n\n## Collecting & Analyzing Logs\n\nEvery `bazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests` invocation writes test results and diagnostic artifacts under `bazel-testlogs\u002Ftests\u002Fdeqp\u002Fdeqp_vk_smoke_tests\u002F`:\n\n1. **`test.xml`**:\n   - JUnit XML converted from `TestResults.qpa` by `deqp_qpa_to_test_xml_main`, listing per-case pass\u002Ffail\u002Fskip\u002Fcrash status and failure details.\n2. **`test.log`**:\n   - Captures stdout\u002Fstderr from `deqp_wrapper.sh`, `deqp-vk`, and guest `vulkan.ranchu.so` (`mesa_loge`, `mesa_logi`, guest encoder errors, VirtGpuKumquat messages).\n3. **`test.outputs\u002F`** (undeclared test outputs, or `test.outputs\u002Foutputs.zip` when zipped):\n   - **`TestResults.qpa`**: Raw dEQP QPA log file for all executed test cases.\n   - **`kumquat_logs.txt`**: Captures stdout\u002Fstderr from `kumquat_virtio`, Gfxstream host Vulkan decoder (`VkDecoder`, `FrameBuffer`, `VkCommonOperations`), and Lavapipe\u002FSwiftShader\u002Fhost driver messages.\n   - **`sharded_deqp_caselist.txt`**: Exact list of dEQP test cases assigned to the shard.\n\n---\n\n## Recommended AI Debugging Loop\n\n1. **Reproduce**: Run the failing test case in isolation:\n   ```bash\n   bazel test \u002F\u002Ftests\u002Fdeqp:deqp_vk_smoke_tests \\\n     --graphics_drivers=gles_angle_vulkan_lavapipe \\\n     --test_output=streamed \\\n     --test_arg=--deqp_cases=\"dEQP-VK.\u003Cfailing_test>\"\n   ```\n2. **Inspect Logs**:\n   - Check `bazel-testlogs\u002Ftests\u002Fdeqp\u002Fdeqp_vk_smoke_tests\u002Ftest.xml`, `test.log`, and `test.outputs\u002F` (`TestResults.qpa`, `kumquat_logs.txt`) for dEQP failure details and guest encoder vs. host decoder errors.\n3. **Modify Code**:\n   - For host-side Vulkan decoding\u002Femulation issues: edit files under `hardware\u002Fgoogle\u002Fgfxstream\u002Fhost\u002Fvulkan\u002F`.\n   - For guest-side Vulkan encoding\u002Fresource tracking issues: edit files under `external\u002Fmesa3d\u002Fsrc\u002Fgfxstream\u002Fguest\u002F` and run with `--override_repository=+git_repository+mesa=...`.\n   - For dEQP test adjustments or extra debug logging in CTS: edit files under `external\u002Fdeqp\u002Fexternal\u002Fvulkancts\u002F` and run with `--override_repository=+git_repository+deqp=...`.\n4. **Rebuild & Verify**:\n   Re-run the `bazel test` command above, then run the broader module wildcard (e.g. `--test_arg=--deqp_cases=\"dEQP-VK.\u003Cmodule>.*\"`) to ensure no regressions.\n",{"name":5,"description":7},"main","94240f814c0097a63027ae680ea4bec7b0cb25f7",".agents\u002Fskills\u002Fgfxstream_deqp_vk",51,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fgfxstream","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 06:49:01",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add google\u002Fgfxstream --skill gfxstream_deqp_vk",{"tool":61,"command":62},"bunx","bunx skills add google\u002Fgfxstream --skill gfxstream_deqp_vk",{"tool":64,"command":65},"pnpm","pnpm dlx skills add google\u002Fgfxstream --skill gfxstream_deqp_vk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fgfxstream\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgfxstream_deqp_vk\u002FSKILL.md",true,[],[]]