Skip to content

hk: keep G17P colour MSAA compressed with transient eMRT backing - #72

Closed
RyanTheTide wants to merge 1 commit into
feat/g17p-msaa-colour-compressionfrom
feat/g17p-emrt-transient-spill
Closed

RyanTheTide wants to merge 1 commit into
feat/g17p-msaa-colour-compressionfrom
feat/g17p-emrt-transient-spill

Conversation

@RyanTheTide

Copy link
Copy Markdown

A G17P eMRT spill currently writes directly into the attachment image, so #66 keeps colour MSAA attachments plain. This change gives each spilled target private transient storage and admits eligible 2x/4x colour attachments for lossless compression independently of the pass layout.

The backing uses the driver's uncompressed AIL tiled sample layout. LOAD imports the render rectangle through the normal texture/PBE copy path. Stores export it before an attachment resolve. Compressed resident attachments keep their normal background/EOT descriptors. Partial areas, view base layers, sparse multiview masks, physical stream splits and secondary command buffers retain their sample data. Suspend/resume exports and imports across instances. No in-place decompression or metadata transition is added.

The first implementation uses boundary meta copies and full-view scratch allocations. These add work, so no bandwidth improvement is claimed yet. Alias and input/feedback images retain direct plain storage. MSAA images with both colour and input-attachment usage stay plain until feedback through application descriptors is implemented. Existing format, sharing and host/storage exclusions remain, and 8x stays disabled. The new path is gated on G17P.

Validation covers the 10,290,450-layout spill matrix, 5,879 compression-policy checks, native descriptor geometry/packing and metadata layout on the host and emulated AArch64. The 224-descriptor M1/M2 corpus is byte-identical to the base. The NDEBUG negative control detects disabled transient admission. A shipping AArch64 release build and process-local Vulkan/Zink overlay are also prepared.

Stacked on #66, with base feat/g17p-msaa-colour-compression. Keep this draft pending G17P device CTS for renderpass/renderpass2/dynamic-rendering MSAA, pipeline multisample, spilling attachment mixes and copy/resolve, followed by paired bandwidth measurements. The layout and CPU probe are documented in src/asahi/vulkan/tests/g17p-msaa-spill.md.

RyanTheTide added a commit that referenced this pull request Oct 26, 2026
Reuse the public Gen9 layered/MSAA packet and per-level ZLS work from Mesa PRs #65 and #67 on the admitted T6040 profile. Its AGX3B, HAL200, Gen9 descriptor and sampler axes match the native profile established by #55.

Select expanded array/cube/3D colour, transfer-only 2x/4x colour, layered/MSAA depth-stencil and single-sample depth-stencil mip policies by the physical T6040 identity. Preserve the prior Neo policy and Gen10 packet cases. Colour MSAA render attachments stay plain under #66 because a legal MRT mix can spill them; #72 adds unmeasured boundary-copy work and is not silently enabled.

Keep all source-level RT gates unchanged. Retain existing policy regressions and add the public packet, metadata and per-level ZLS checks alongside a separate G16S policy suite. Hardware and performance qualification remain required before merge.

Source: #65
Source: #67
Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Author

Superseded by #115, which carries this change rebased onto aurora-wip (this PR targeted feat/g17p-msaa-colour-compression, whose PR closed after the compression consolidation).

@RyanTheTide
RyanTheTide deleted the feat/g17p-emrt-transient-spill branch October 30, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant