graphics: accept the encoded GE_CNTL group range #363

Manually merged
github merged 1 commit from gh-pr/363/head into gh-pr/363/base 2026-11-26 09:17:49 +00:00
Owner

@⁠Techx3 on GitHub · 2026-08-28 22:17 UTC · original
Techx3:techx3/ge-control-group-size-range → main · +2 −12 · 2 files · 1 commits · merged 2026-08-29 00:31 UTC

Summary

  • validate GE_CNTL primitive and vertex group sizes against their nine-bit register masks
  • stop treating values above 64 as invalid host-wave sizes
  • add focused boundary coverage for 0x1ff and values outside the encoded range

Why

GE_CNTL_PRIM_GRP_SIZE and GE_CNTL_VERT_GRP_SIZE are nine-bit guest fields. Their grouping values are not limited to one 64-lane host wave, so the old check could skip otherwise supported draws when either field was greater than 0x40.

Scope

This PR only corrects GE_CNTL group-size validation. It does not enable new geometry shader paths or alter Vulkan primitive assembly.

Validation

  • cmake --build _Build/launcher-usability --target shader_recompiler_compute_tests kyty_emulator --config Release
  • ctest --test-dir _Build/launcher-usability -R ^(shader_cfg|shader_recompiler_compute)$ --output-on-failure
  • 2/2 relevant suites passed
**@⁠Techx3** on GitHub · 2026-08-28 22:17 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/363) `Techx3:techx3/ge-control-group-size-range` → `main` · +2 −12 · 2 files · 1 commits · merged 2026-08-29 00:31 UTC ## Summary - validate GE_CNTL primitive and vertex group sizes against their nine-bit register masks - stop treating values above 64 as invalid host-wave sizes - add focused boundary coverage for 0x1ff and values outside the encoded range ## Why GE_CNTL_PRIM_GRP_SIZE and GE_CNTL_VERT_GRP_SIZE are nine-bit guest fields. Their grouping values are not limited to one 64-lane host wave, so the old check could skip otherwise supported draws when either field was greater than 0x40. ## Scope This PR only corrects GE_CNTL group-size validation. It does not enable new geometry shader paths or alter Vulkan primitive assembly. ## Validation - cmake --build _Build/launcher-usability --target shader_recompiler_compute_tests kyty_emulator --config Release - ctest --test-dir _Build/launcher-usability -R ^(shader_cfg|shader_recompiler_compute)$ --output-on-failure - 2/2 relevant suites passed
GE_CNTL group sizes control guest geometry-engine scheduling rather than host wave width. Do not reject the supported vertex path for compiler-selected values above 64, and remove the corresponding stale debug warnings.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:17:48 +00:00
github manually merged commit 5cd745c592 into gh-pr/363/base 2026-11-26 09:17:49 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.