Repository navigation
borealis: enable single-level depth-array compression across G17P - #692
DjDeveloperr wants to merge 1 commit into
Conversation
|
Removing the M4 Pro condition is the right direction. Note that it only changes the A18 Pro and the M4 Max. On the M4 Pro, depth formats always took the
The shadow-cascade numbers on the A18 Pro look good. With layered clear/copy/sample rows I would be happy with this. Assisted-by: LLM (Claude:Opus 5.5) |
hk_hal200_compression_eligible() gated single-sample, single-level depth arrays behind the M4 Pro (g16s) flag even though the shared G17P metadata-stride, ZLS, PBE, texture, fast-clear, and single-layer meta copy/upload/blit paths do not depend on M4 Pro. As a result, shadow-map cascades and other layered depth targets fell back to uncompressed ZLS on A18 Pro and M4 Max, paying nearly 2x bandwidth for D32_SFLOAT arrays relative to D16_UNORM. Remove the M4 Pro guard on depth_array so all G17P GPUs admit single-sample, single-level depth arrays (D32_SFLOAT, D16_UNORM, D32_SFLOAT_S8_UINT), while keeping mipmapped, multisampled, and cube-compatible depth images plain. Update the G17P and G16S policy unit tests accordingly. Signed-off-by: Diljit Singh <hey@djdev.me>
c46f292 to
22d001a
Compare
|
Updated on exact PR head
Note: Mac Studio M4 Max ( Assisted-by: LLM (Antigravity:Gemini 4 Neon) |
|
Same-boot perf row on the MacBook Neo ( Depth-array compression makes the gpubench shadow-map rows 1.1-1.8x faster on G17P, with CRC-32 matching base. No other row in the set moves.
Method
Assisted-by: LLM (Claude:Opus 5.5) |
|
J616C (Apple MacBook Pro 16", M4 Max, 32-core T6041,
Assisted-by: LLM (Google:Gemini 4 Neon) |
|
Closing as superseded on
Thank you @AxxzyWasTaken and @RyanTheTide for the reviews and J616C M4 Max / Neo verification rows! No remaining functional delta exists vs Assisted-by: LLM (Antigravity:Gemini 4 Neon) |
Summary
Remove the M4 Pro (
g16s) gate ondepth_arrayinhk_hal200_compression_eligible()so all G17P GPUs admit single-sample, single-level depth arrays (VK_FORMAT_D32_SFLOAT,VK_FORMAT_D16_UNORM,VK_FORMAT_D32_SFLOAT_S8_UINT), while keeping mipmapped, multisampled, and cube-compatible depth images plain.The shared G17P metadata-stride, ZLS, PBE, texture, fast-clear, and single-layer meta copy/upload/blit paths do not depend on M4 Pro; previously, shadow-map cascades and other layered depth targets fell back to uncompressed ZLS on A18 Pro and M4 Max, paying ~2× bandwidth on
D32_SFLOATarrays relative toD16_UNORM.Updates
test-hk-g17p-compression.candtest-hk-g16s-compression.cfor the widened policy and negative checks (mipmapped, multisampled, cube-compatible depth arrays stay plain).Verification
Unit tests & policy
DEFAULT_BRANCH=aurora-wip bash .github/aurora/agent-policy.sh pr HEAD: PR head is cleanfedora-mesaci.sh(c46f292a2b2): 156/156 PASS, 0 FAILHardware qualification on Apple A18 Pro (
G17P B1, kernel7.3.0-41.fc44.aurora.aarch64,MESA_SHADER_CACHE_DISABLE=true)g17p-vulkan-layered-depth --expect-compressed):layered depth: PASS(G17P compression enabledconfirmed onz32_float,z16_unorm,z32_float+s8_uintarrays).gpubench-vk --test render.shadow, 4 rounds,res=2048,inst=2048,origin/aurora-wipf3016978f09vsc46f292a2b2): all runs bit-exact CRC-32 PASS (c0fb9993/7be9463a):us/sub)us/sub)gpu_us)depth_only d32f3289.471984.131.658×(-39.7%)3147.82 -> 1797.23(1.751×)depth_only d32f2976.191644.741.810×(-44.7%)3153.25 -> 1828.56(1.724×)depth_only d161811.591366.121.326×(-24.6%)1681.16 -> 1291.79(1.301×)depth_only d161552.801136.361.366×(-26.8%)1709.58 -> 1309.29(1.306×)alpha_test d32f3846.153425.301.123×(-10.9%)3724.16 -> 3291.85(1.131×)alpha_test d32f3649.833205.661.139×(-12.2%)3812.74 -> 3402.10(1.121×)alpha_test d163144.782976.191.057×(-5.4%)2940.21 -> 2792.76(1.053×)alpha_test d162941.182777.781.059×(-5.6%)3074.56 -> 2853.20(1.078×)dEQP-VK.pipeline.monolithic.depth.format.{d32_sfloat,d16_unorm,d32_sfloat_s8_uint}.*,dEQP-VK.multiview.depth*,dEQP-VK.renderpass.suballocation.multisample_resolve.*d32*,dEQP-VK.api.copy_and_blit.core.copy_image.inline_copy_image.*{d32_sfloat,d16_unorm}*2d_array*): 673 Pass, 0 Fail, 736 NotSupported (1409total).kfault_delta=0,avc_delta=0,PMU=30 00unchanged.Assisted-by: LLM (Antigravity:Gemini 4 Neon)