Repository navigation
pvr/g5p: unsupported border colours sample, narrow integer colour targets - #43
Merged
henrikklee merged 2 commits intoDec 2, 2026
Merged
Conversation
…pler GLES3.1 texture.border_clamp aborted 45 times on the A9: - The A9's sampler word clamps to a transparent black border only, and g5p_pack_sampler() refused a custom border colour, or a standard one other than transparent black, so Zink had no sampler. Such a sampler is now encoded with the transparent black border (one warning): a wrong colour where the border is read. The A8 driver's clamp-to-border is the same compromise. YCbCr and reduction modes stay refused. - Zink creates some custom border colours without a format (customBorderColorWithoutFormat is not advertised), and pvr_border_color_table_create_custom_entry() asserted on the undefined format: packed as 32-bit RGBA of the colour's type instead, as our A8 driver does. On an iPhone 6s (S8003), the GLES3.1 sample's 801-1600 slice: 47 crashes -> 2 (both image_load_store.3d), 410 -> 446 passes. Generated-by: LLM Signed-off-by: Jeroen Trappers <jeroen.trappers@gmail.com>
R8, RG8, R16, RG16, RGBA8 and RGBA16 UINT/SINT and A2B10G10R10_UINT were render probes, not advertised as colour attachments because they had not run on the device. GLES 3.0 requires them renderable, and copy_image renders into them. Run on an iPhone 6s (S8003) with the probe rows on, against the same build without them, the iPhone 6's GLES3 / GLES3.1 sample lists: - GLES3.1: +175 passes (copy_image 640 -> 813), no new crash. - GLES3: 30 Skip -> Pass, 11 Fail -> Pass; 40 Skip -> Fail, spread over every one of these formats alike, in fragment_out.array and fbo.blit conversions (multi-target sets G5P refuses, blits), not in a format. The 21 Pass -> Fail of that run all pass alone: the process had aborted before them (fixed by "zink: end a command buffer once"). - No GPU reset in either run. Generated-by: LLM Signed-off-by: Jeroen Trappers <jeroen.trappers@gmail.com>
henrikklee
added a commit
to ricktav/mesa
that referenced
this pull request
Dec 2, 2026
Brings the A7 desktop branch up to date with jeroentrappers' A8/A9 fixes (OrchardLinux#34-OrchardLinux#43), including OrchardLinux#40's Zink behaviour (a batch whose recording failed is dropped without losing the context). pvr_arch_g5p_gfx.c: both sides added helpers before g5p_clear_attachments(): the A7's g5p_a7_clear_dirty() and main's g5p_attachment_format()/g5p_render_extent() for secondaries. Both are kept; the A7's clear quad now uses the render extent main computes. pvr_arch_cmd_buffer.c: main skips Rogue's transparent object on every apple_g5p device because it hangs the A9. The A7 also sets apple_g5p but draws through upstream's Rogue path, so it keeps the transparent object as before this merge; the A8 and A9 skip it as on main. Assisted-by: LLM Signed-off-by: Henrik Klee <henrik@goat-code.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two A9 changes:
The second change relies on the Zink fix in #40 ("a batch whose recording failed does not lose the context"): without it, one refused draw in a test process loses the context and turns into hundreds of failures.
Tested on an iPhone 6s (S8003): GLES3.1 sample crashes 48 -> 3 overall; the integer-target formats' fragment_out / fbo cases pass; no regression in the GLES3 and GLES3.1 samples.