AGC sampler: border colour table (BORDER_COLOR_TYPE 3) not implemented #665

Closed
opened 2026-10-05 12:49:03 +00:00 by ThisIsAkill · 11 comments
ThisIsAkill commented 2026-10-05 12:49:03 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ThisIsAkill on 2026-10-05T12:49:03Z.


What fails

DecodeSamplerResource (core/libs/prx/libSceAgcDriver/Graphics/src/GuestSamplerResource.cpp) maps the sampler's BORDER_COLOR_TYPE (S# word 3, bits 30–31) 0, 1 and 2 to Vulkan's transparent black, opaque black and opaque white. Type 3, a colour from the border colour table, throws:

compute shader 0x5005ae200: AGC graphics: guest sampler descriptor uses a border color table which is not implemented

Seen on Astro Bot PPSA21567 (v01.018), Linux, oneandonlydean's astrobot at 4be8b3e7 (the same code as on main). It ends both Armadillo challenge levels (armadillo_challenge_1, armadillo_challenge_2), in the same compute shader each time, about 3.5–4.5 minutes in. That's 3 runs: the first run of armadillo_challenge_1 ended earlier on an unrelated NVIDIA Xid 32, and its rerun stopped here. None of the other 80 levels I ran hit it.

What's missing

  • BORDER_COLOR_PTR, the table index in the S#, is not decoded.
  • Nothing tracks the table's base address. It is set outside the sampler descriptor, which is why the colour can't be decoded from the 4 dwords alone.

Plan (I'm working on this)

Vulkan has a direct counterpart: VK_EXT_custom_border_color. A sampler with VK_BORDER_COLOR_FLOAT_CUSTOM_EXT or VK_BORDER_COLOR_INT_CUSTOM_EXT takes its colour from VkSamplerCustomBorderColorCreateInfoEXT. On my RTX 3070 (NVIDIA 615.71) the extension is present, with customBorderColors and customBorderColorWithoutFormat both true and maxCustomBorderColorSamplers = 4000.

Rough scope:

  1. Enable the extension and its feature at device creation when available; without it, type 3 keeps throwing.
  2. Decode BORDER_COLOR_PTR.
  3. Track the table base the title sets.
  4. Read the entry from guest memory when the sampler is built.
  5. Add the colour to the SamplerCache key: today the key is the 4 S# words, but the colour lives in memory.
  6. Count custom-colour samplers against maxCustomBorderColorSamplers.
  7. Turn the border color table rejection test in tests/GuestSamplerResource.cpp into decode and lookup tests.

Open questions before writing it

  • Table base: where the title sets it. I expect a context register, TA_BC_BASE_ADDR on GFX10-class hardware, but I haven't verified its offset or how AGC writes it. That's the next step: log it in the Armadillo run.
  • Entry layout: radeonsi writes 4 × 32-bit values per entry, indexed by the pointer. That needs checking against the title's table.
  • Value format: whether float or int is chosen by the sampled format, and how that maps to the float/int custom border colour.

If someone already has this, or knows the answers to these questions, please say so.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5712274310 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665). Originally posted by [ThisIsAkill](https://github.com/ThisIsAkill) on 2026-10-05T12:49:03Z. --- ### What fails `DecodeSamplerResource` (`core/libs/prx/libSceAgcDriver/Graphics/src/GuestSamplerResource.cpp`) maps the sampler's `BORDER_COLOR_TYPE` (S# word 3, bits 30–31) 0, 1 and 2 to Vulkan's transparent black, opaque black and opaque white. Type 3, a colour from the border colour table, throws: ``` compute shader 0x5005ae200: AGC graphics: guest sampler descriptor uses a border color table which is not implemented ``` Seen on Astro Bot PPSA21567 (v01.018), Linux, oneandonlydean's `astrobot` at `4be8b3e7` (the same code as on `main`). It ends both Armadillo challenge levels (`armadillo_challenge_1`, `armadillo_challenge_2`), in the same compute shader each time, about 3.5–4.5 minutes in. That's 3 runs: the first run of `armadillo_challenge_1` ended earlier on an unrelated NVIDIA Xid 32, and its rerun stopped here. None of the other 80 levels I ran hit it. ### What's missing - `BORDER_COLOR_PTR`, the table index in the S#, is not decoded. - Nothing tracks the table's base address. It is set outside the sampler descriptor, which is why the colour can't be decoded from the 4 dwords alone. ### Plan (I'm working on this) Vulkan has a direct counterpart: `VK_EXT_custom_border_color`. A sampler with `VK_BORDER_COLOR_FLOAT_CUSTOM_EXT` or `VK_BORDER_COLOR_INT_CUSTOM_EXT` takes its colour from `VkSamplerCustomBorderColorCreateInfoEXT`. On my RTX 3070 (NVIDIA 615.71) the extension is present, with `customBorderColors` and `customBorderColorWithoutFormat` both true and `maxCustomBorderColorSamplers` = 4000. Rough scope: 1. Enable the extension and its feature at device creation when available; without it, type 3 keeps throwing. 2. Decode `BORDER_COLOR_PTR`. 3. Track the table base the title sets. 4. Read the entry from guest memory when the sampler is built. 5. Add the colour to the `SamplerCache` key: today the key is the 4 S# words, but the colour lives in memory. 6. Count custom-colour samplers against `maxCustomBorderColorSamplers`. 7. Turn the `border color table` rejection test in `tests/GuestSamplerResource.cpp` into decode and lookup tests. ### Open questions before writing it - **Table base:** where the title sets it. I expect a context register, `TA_BC_BASE_ADDR` on GFX10-class hardware, but I haven't verified its offset or how AGC writes it. That's the next step: log it in the Armadillo run. - **Entry layout:** radeonsi writes 4 × 32-bit values per entry, indexed by the pointer. That needs checking against the title's table. - **Value format:** whether float or int is chosen by the sampled format, and how that maps to the float/int custom border colour. If someone already has this, or knows the answers to these questions, please say so.
NahuelGenchi commented 2026-10-05 14:19:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by NahuelGenchi on 2026-10-05T14:19:48Z.


Some of this is answered in Mesa, in case it saves a step.

The base isn't only a context register. Graphics uses TA_BC_BASE_ADDR at 0x28080 with TA_BC_BASE_ADDR_HI at 0x28084, but compute has its own pair in the uconfig space, TA_CS_BC_BASE_ADDR at 0x30E00 and TA_CS_BC_BASE_ADDR_HI at 0x30E04. Your failing shader is a compute one, so the CS pair is probably the one to log in the Armadillo run. For both pairs the low register holds the address >> 8 and the HI one the address >> 40 (src/amd/common/ac_cmdbuf.c, the compute and graphics preamble functions, and src/amd/registers/gfx103.json for the offsets).

On GFX10 BORDER_COLOR_PTR is S# word 3 bits 0 to 11 (gfx10-rsrc.json). radeonsi and radv both lay the table out as 16 bytes per entry at base + ptr * 16, holding the raw four 32 bit values. They store float or integer bits in the same slot, and radv maps both VK_BORDER_COLOR_FLOAT_CUSTOM_EXT and VK_BORDER_COLOR_INT_CUSTOM_EXT to the same TYPE 3 entry, so the entry itself doesn't say which one it is. That suggests the format of the sampled image decides how it's read, but I haven't checked that on hardware.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5996369022 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-5996369022). Originally posted by [NahuelGenchi](https://github.com/NahuelGenchi) on 2026-10-05T14:19:48Z. --- Some of this is answered in Mesa, in case it saves a step. The base isn't only a context register. Graphics uses TA_BC_BASE_ADDR at 0x28080 with TA_BC_BASE_ADDR_HI at 0x28084, but compute has its own pair in the uconfig space, TA_CS_BC_BASE_ADDR at 0x30E00 and TA_CS_BC_BASE_ADDR_HI at 0x30E04. Your failing shader is a compute one, so the CS pair is probably the one to log in the Armadillo run. For both pairs the low register holds the address >> 8 and the HI one the address >> 40 (src/amd/common/ac_cmdbuf.c, the compute and graphics preamble functions, and src/amd/registers/gfx103.json for the offsets). On GFX10 BORDER_COLOR_PTR is S# word 3 bits 0 to 11 (gfx10-rsrc.json). radeonsi and radv both lay the table out as 16 bytes per entry at base + ptr * 16, holding the raw four 32 bit values. They store float or integer bits in the same slot, and radv maps both VK_BORDER_COLOR_FLOAT_CUSTOM_EXT and VK_BORDER_COLOR_INT_CUSTOM_EXT to the same TYPE 3 entry, so the entry itself doesn't say which one it is. That suggests the format of the sampled image decides how it's read, but I haven't checked that on hardware.
ThisIsAkill commented 2026-10-05 15:50:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ThisIsAkill on 2026-10-05T15:50:06Z.


@NahuelGenchi thanks, that saved a lot of searching. I logged the base registers and dumped the entry on PPSA21567 (armadillo_challenge_2, compute shader 0x5005ae200, astrobot 4be8b3e7, Linux). That's 2 runs, and they agree.

  • BORDER_COLOR_PTR in S# word 3 bits 0–11: fits. The failing sampler is 00007092 00fff000 05000000 c0000000: type 3 in bits 30–31, pointer 0.
  • Entry layout: fits. At base + 0 × 16 the 4 dwords are 3e19999a 3f000000 3d4ccccd 00000000. As floats that's (0.15, 0.5, 0.05, 0.0), a plausible colour. As integers it would be around 10⁹ per channel, so this entry holds float bits.
  • Base register: different from what I expected for a compute shader. In both runs the title writes only the graphics pair, TA_BC_BASE_ADDR (context 0x28080), once, to 0x05059a06 and 0x05059a04 (so the base is 0x5059a0600 / 0x5059a0400). _HI stays 0, so the address is below 2^40. The compute pair TA_CS_BC_BASE_ADDR (0x30E00 / 0x30E04) is never written, through any SET_UCONFIG / LOAD_UCONFIG path the driver sees, before the compute sampler uses the table. So either the title relies on the graphics pair for compute here, or it sets the compute base some way I'm not seeing. For the implementation, I'll take the base from the graphics pair when the compute pair was never written, and throw if neither is set.
  • Float vs int: this run doesn't settle it. I couldn't tie the sampler to its paired image's format, only to the images bound around it. The plan stays: interpret the entry by the sampled image's numeric format (float/unorm/snorm → float border, uint/sint → int border), and check it once the sampler is paired with its image.

I'll write it up as a PR against main after that check.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5997989353 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-5997989353). Originally posted by [ThisIsAkill](https://github.com/ThisIsAkill) on 2026-10-05T15:50:06Z. --- @NahuelGenchi thanks, that saved a lot of searching. I logged the base registers and dumped the entry on PPSA21567 (`armadillo_challenge_2`, compute shader `0x5005ae200`, `astrobot` `4be8b3e7`, Linux). That's 2 runs, and they agree. - **BORDER_COLOR_PTR in S# word 3 bits 0–11:** fits. The failing sampler is `00007092 00fff000 05000000 c0000000`: type 3 in bits 30–31, pointer 0. - **Entry layout:** fits. At base + 0 × 16 the 4 dwords are `3e19999a 3f000000 3d4ccccd 00000000`. As floats that's (0.15, 0.5, 0.05, 0.0), a plausible colour. As integers it would be around 10⁹ per channel, so this entry holds float bits. - **Base register:** different from what I expected for a compute shader. In both runs the title writes only the **graphics** pair, `TA_BC_BASE_ADDR` (context `0x28080`), once, to `0x05059a06` and `0x05059a04` (so the base is `0x5059a0600` / `0x5059a0400`). `_HI` stays 0, so the address is below 2^40. The compute pair `TA_CS_BC_BASE_ADDR` (`0x30E00` / `0x30E04`) is **never written**, through any SET_UCONFIG / LOAD_UCONFIG path the driver sees, before the compute sampler uses the table. So either the title relies on the graphics pair for compute here, or it sets the compute base some way I'm not seeing. For the implementation, I'll take the base from the graphics pair when the compute pair was never written, and throw if neither is set. - **Float vs int:** this run doesn't settle it. I couldn't tie the sampler to its paired image's format, only to the images bound around it. The plan stays: interpret the entry by the sampled image's numeric format (float/unorm/snorm → float border, uint/sint → int border), and check it once the sampler is paired with its image. I'll write it up as a PR against `main` after that check.
ThisIsAkill commented 2026-10-06 17:39:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ThisIsAkill on 2026-10-06T17:39:07Z.


One more decode on the failing sampler, and it changes what's needed for this title.

The S# that stops armadillo_challenge_2 (compute shader 0x5005ae200, the same words in 2 of 2 runs on astrobot 4be8b3e7) is 00007092 00fff000 05000000 c0000000. Its word 0:

Field (word 0) Bits Value
CLAMP_X 0–2 2
CLAMP_Y 3–5 2
CLAMP_Z 6–8 2
DEPTH_COMPARE_FUNC 12–14 7

Word 3 has BORDER_COLOR_TYPE 3 (table) and BORDER_COLOR_PTR 0.

Mode 2 is clamp to the last texel (GuestSamplerResource.cpp maps it to VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE), and none of the three axes uses a half-border or border mode (4 to 7). So as far as I can tell the hardware never reads a border colour for this sampler. The table type is set but unused, and the entry I dumped earlier (0.15, 0.5, 0.05, 0) doesn't matter here.

For this title the smaller fix would be enough: keep throwing for BORDER_COLOR_TYPE 3 only when an axis uses one of the border modes (4 to 7), and otherwise create the sampler without a border colour. The table itself, and the question of which base register compute uses, would wait for a title that actually samples through a border mode with a table entry. Would that be acceptable, or would you rather have the table implemented in one go?

Limits: I have the S# words for Armadillo Challenge 2 only. Armadillo Challenge 1 stops at the same shader, but I didn't log its sampler.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6021941862 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-6021941862). Originally posted by [ThisIsAkill](https://github.com/ThisIsAkill) on 2026-10-06T17:39:07Z. --- One more decode on the failing sampler, and it changes what's needed for this title. The S# that stops `armadillo_challenge_2` (compute shader `0x5005ae200`, the same words in 2 of 2 runs on `astrobot` `4be8b3e7`) is `00007092 00fff000 05000000 c0000000`. Its word 0: | Field (word 0) | Bits | Value | |---|---|---| | CLAMP_X | 0–2 | 2 | | CLAMP_Y | 3–5 | 2 | | CLAMP_Z | 6–8 | 2 | | DEPTH_COMPARE_FUNC | 12–14 | 7 | Word 3 has BORDER_COLOR_TYPE 3 (table) and BORDER_COLOR_PTR 0. Mode 2 is clamp to the last texel (`GuestSamplerResource.cpp` maps it to `VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE`), and none of the three axes uses a half-border or border mode (4 to 7). So as far as I can tell the hardware never reads a border colour for this sampler. The table type is set but unused, and the entry I dumped earlier (0.15, 0.5, 0.05, 0) doesn't matter here. For this title the smaller fix would be enough: keep throwing for BORDER_COLOR_TYPE 3 only when an axis uses one of the border modes (4 to 7), and otherwise create the sampler without a border colour. The table itself, and the question of which base register compute uses, would wait for a title that actually samples through a border mode with a table entry. Would that be acceptable, or would you rather have the table implemented in one go? Limits: I have the S# words for Armadillo Challenge 2 only. Armadillo Challenge 1 stops at the same shader, but I didn't log its sampler.
ThisIsAkill commented 2026-10-06 18:50:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ThisIsAkill on 2026-10-06T18:50:17Z.


Opened #941 for the narrow case above. A table border colour no longer throws when no axis uses a border mode (clamp modes 4 to 7), which unblocks Armadillo Challenge 2 on PPSA21567.

It does not implement the border colour table. A sampler that names a table entry and also uses a border mode still throws, so this issue stays open for that.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6023191801 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-6023191801). Originally posted by [ThisIsAkill](https://github.com/ThisIsAkill) on 2026-10-06T18:50:17Z. --- Opened #941 for the narrow case above. A table border colour no longer throws when no axis uses a border mode (clamp modes 4 to 7), which unblocks Armadillo Challenge 2 on PPSA21567. It does not implement the border colour table. A sampler that names a table entry and also uses a border mode still throws, so this issue stays open for that.
awake-devel commented 2026-10-07 17:01:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by awake-devel on 2026-10-07T17:01:40Z.


@ThisIsAkill are you still planning the full table after #941? If not, I'd like to take it. My plan, building on your notes and @NahuelGenchi's:

  • Enable VK_EXT_custom_border_color (with customBorderColorWithoutFormat) when the device has it. Without it, a table colour on a border mode keeps throwing.
  • Decode BORDER_COLOR_PTR (S# word 3, bits 0–11) and read the 16-byte entry at base + ptr * 16 when the sampler is built. Add the entry's four dwords to the SamplerCache key, and count custom samplers against maxCustomBorderColorSamplers.
  • Base: draws use TA_BC_BASE_ADDR/_HI (0x28080/0x28084), dispatches use TA_CS_BC_BASE_ADDR/_HI (0x30E00/0x30E04), as Mesa programs them. A dispatch that reads a table colour with the CS pair never written throws, instead of falling back to the graphics pair. PPSA21567 only shows that the title doesn't need the CS pair for a sampler that never reads the border, so I'd record that in TechnicalDebt rather than guess. If you'd rather keep the fallback you suggested, say so.
  • Float vs int: the entry is taken as float bits when the sampled image's format is float, unorm or snorm. Integer formats throw until there's a title or a hardware check to settle it.
  • Tests: decode and lookup tests replace the rejection test in tests/GuestSamplerResource.cpp, plus a driver execution test that samples outside a texture with clamp-to-border and checks the colour from the table.

I can't test this on a title that samples through a table border, so the PR would be checked on the synthetic tests only (Linux, GTX 1050 Ti, NVIDIA).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6042682762 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-6042682762). Originally posted by [awake-devel](https://github.com/awake-devel) on 2026-10-07T17:01:40Z. --- @ThisIsAkill are you still planning the full table after #941? If not, I'd like to take it. My plan, building on your notes and @NahuelGenchi's: - Enable `VK_EXT_custom_border_color` (with `customBorderColorWithoutFormat`) when the device has it. Without it, a table colour on a border mode keeps throwing. - Decode `BORDER_COLOR_PTR` (S# word 3, bits 0–11) and read the 16-byte entry at `base + ptr * 16` when the sampler is built. Add the entry's four dwords to the `SamplerCache` key, and count custom samplers against `maxCustomBorderColorSamplers`. - Base: draws use `TA_BC_BASE_ADDR`/`_HI` (0x28080/0x28084), dispatches use `TA_CS_BC_BASE_ADDR`/`_HI` (0x30E00/0x30E04), as Mesa programs them. A dispatch that reads a table colour with the CS pair never written throws, instead of falling back to the graphics pair. PPSA21567 only shows that the title doesn't need the CS pair for a sampler that never reads the border, so I'd record that in TechnicalDebt rather than guess. If you'd rather keep the fallback you suggested, say so. - Float vs int: the entry is taken as float bits when the sampled image's format is float, unorm or snorm. Integer formats throw until there's a title or a hardware check to settle it. - Tests: decode and lookup tests replace the rejection test in `tests/GuestSamplerResource.cpp`, plus a driver execution test that samples outside a texture with clamp-to-border and checks the colour from the table. I can't test this on a title that samples through a table border, so the PR would be checked on the synthetic tests only (Linux, GTX 1050 Ti, NVIDIA).
ThisIsAkill commented 2026-10-07 17:26:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ThisIsAkill on 2026-10-07T17:26:07Z.


@clem-gb I'm not planning the full table now, so please go ahead.

On the base register: I'd drop the graphics-pair fallback I suggested. My only evidence for it was this title, and the decode since then shows its sampler never reads the border, so there's nothing to back it. Throwing when a dispatch reads a table colour with the CS pair never written, plus a TechnicalDebt note, matches what we actually know.

What I have that might help your tests:

  • The entry. At TA_BC_BASE_ADDR + 0 the title stores 3e19999a 3f000000 3d4ccccd 00000000 (0.15, 0.5, 0.05, 0.0 as floats). The base is 0x5059a0600 in one run and 0x5059a0400 in the other, with _HI 0.
  • The sampler. Both Armadillo challenges use the same table-type sampler, 00007092 00fff000 05000000 c0000000, which clamps to the edge on every axis. So PPSA21567 can't exercise a table border; the synthetic tests are all there is for now.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6043161538 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-6043161538). Originally posted by [ThisIsAkill](https://github.com/ThisIsAkill) on 2026-10-07T17:26:07Z. --- @clem-gb I'm not planning the full table now, so please go ahead. On the base register: I'd drop the graphics-pair fallback I suggested. My only evidence for it was this title, and the decode since then shows its sampler never reads the border, so there's nothing to back it. Throwing when a dispatch reads a table colour with the CS pair never written, plus a TechnicalDebt note, matches what we actually know. What I have that might help your tests: - **The entry.** At `TA_BC_BASE_ADDR` + 0 the title stores `3e19999a 3f000000 3d4ccccd 00000000` (0.15, 0.5, 0.05, 0.0 as floats). The base is `0x5059a0600` in one run and `0x5059a0400` in the other, with `_HI` 0. - **The sampler.** Both Armadillo challenges use the same table-type sampler, `00007092 00fff000 05000000 c0000000`, which clamps to the edge on every axis. So PPSA21567 can't exercise a table border; the synthetic tests are all there is for now.
adriadam10 commented 2026-10-10 08:45:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T08:45:57Z.


Partly addressed by #941: a table border colour (BORDER_COLOR_TYPE 3) no longer throws when no axis uses a border mode (clamp modes 4 to 7), covered in GuestSamplerResource.cpp tests; still open: a sampler that names a table entry and also uses a border mode still throws (BORDER_COLOR_PTR, TA_BC_BASE_ADDR and VK_EXT_custom_border_color are not implemented).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6095808562 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-6095808562). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-10T08:45:57Z. --- Partly addressed by #941: a table border colour (`BORDER_COLOR_TYPE` 3) no longer throws when no axis uses a border mode (clamp modes 4 to 7), covered in `GuestSamplerResource.cpp` tests; still open: a sampler that names a table entry and also uses a border mode still throws (`BORDER_COLOR_PTR`, `TA_BC_BASE_ADDR` and `VK_EXT_custom_border_color` are not implemented).
YossiYad commented 2026-10-16 08:47:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-16T08:47:04Z.


@awake-devel are you still working on the border colour table from your plan above? I don't see a pull request for it yet. If you've moved on, I'd like to take it and follow your plan as written (custom border colour with customBorderColorWithoutFormat, BORDER_COLOR_PTR and the 16-byte entry in the SamplerCache key, the CS pair for dispatches with no fallback to the graphics pair, float entries only, and the execution test). If you're still on it, I can test your branch on a second vendor instead.

Both devices on this machine support what the plan needs (Linux, Mesa 25.2.8):

Device customBorderColors customBorderColorWithoutFormat maxCustomBorderColorSamplers
Intel UHD Graphics 620 (ANV) true true 4096
llvmpipe true true 32768

Since llvmpipe has it too, the execution test would also run on lavapipe in CI.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6211717758 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-6211717758). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-16T08:47:04Z. --- @awake-devel are you still working on the border colour table from your plan above? I don't see a pull request for it yet. If you've moved on, I'd like to take it and follow your plan as written (custom border colour with `customBorderColorWithoutFormat`, `BORDER_COLOR_PTR` and the 16-byte entry in the `SamplerCache` key, the CS pair for dispatches with no fallback to the graphics pair, float entries only, and the execution test). If you're still on it, I can test your branch on a second vendor instead. Both devices on this machine support what the plan needs (Linux, Mesa 25.2.8): | Device | `customBorderColors` | `customBorderColorWithoutFormat` | `maxCustomBorderColorSamplers` | |---|---|---|---| | Intel UHD Graphics 620 (ANV) | true | true | 4096 | | llvmpipe | true | true | 32768 | Since llvmpipe has it too, the execution test would also run on lavapipe in CI.
awake-devel commented 2026-10-16 08:49:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by awake-devel on 2026-10-16T08:49:05Z.


Just so you know, I can't work on this for the two upcoming weeks, you can work on it if you need

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6211757249 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-6211757249). Originally posted by [awake-devel](https://github.com/awake-devel) on 2026-10-16T08:49:05Z. --- Just so you know, I can't work on this for the two upcoming weeks, you can work on it if you need
YossiYad commented 2026-10-16 10:21:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-16T10:21:31Z.


@awake-devel thanks, I'll take it, following your plan above. I'll link the pull request here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6213360992 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-6213360992). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-16T10:21:31Z. --- @awake-devel thanks, I'll take it, following your plan above. I'll link the pull request here.
YossiYad commented 2026-10-16 12:42:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-16T12:42:55Z.


Implemented in #6804, following the plan above.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6215747199 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/665#issuecomment-6215747199). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-16T12:42:55Z. --- Implemented in #6804, following the plan above.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#665
No description provided.