<alyssa>
why am I getting page faults with custom border colours.
<alyssa>
Hm
<alyssa>
ooookay
<alyssa>
the "USC bind sampler" command binds either compact (no border colour) or extended (with border colour) samplers
<alyssa>
unclear what determines which
<alyssa>
"Sampler state register count" goes 32 -> 24 with border colour on 1 of 2 samplers ?!
<alyssa>
and 4->24 in another case, uh
<alyssa>
oh hmhmhm
<alyssa>
the relevant count goes from 4->24 when going from 2 compact samplers to effectively 2 extended ones
<alyssa>
still ss0/ss1 in the shader
<alyssa>
the sampler descriptor is either 8 bytes or 24 bytes depending if there are border colours or not
<alyssa>
so if it's a "total bytes" thing we're missing a factor of 2 (12 instead of 24)
<alyssa>
i'm definitely missing something.
<alyssa>
a bit in the USC sampler state packet would be the logical place.
<alyssa>
but I don't see one
<alyssa>
maybe sampler state reg count is actually an enum or something
possiblemeatball has joined #asahi-gpu
<alyssa>
VS, no samplers, compact: (256, 32)
<alyssa>
(!)
<alyssa>
FS, 2 samplers, compact: (8, 4)
<alyssa>
FS, 4 samplers, compact: (8, 4)
<alyssa>
FS, 5 samplers, compact: (8, 8)
<alyssa>
FS, 5 samplers, extended: (8, 24)
<alyssa>
VS, no samplers, extended: (256, 24)
<alyssa>
FS, 8 samplers, extended: (8, 24)
<alyssa>
not sure I can get anything other than 24 for extended
<alyssa>
next question is what metal does with 24 samplers (-:
<alyssa>
metal only gives me 16 samplers, boo
<alyssa>
FS, 16 samplers, extended: 28
<alyssa>
this does lend credence to the enum theory
<alyssa>
9 samplers is indeed the cutoff
<alyssa>
although seemingly Metal is not actually doing custom border colours so I am I guess missing some other magic
digicyc has quit [Remote host closed the connection]
digicyc has joined #asahi-gpu
possiblemeatball has quit [Quit: Leaving]
cylm_ has joined #asahi-gpu
<dottedmag>
alyssa: Is "border colour 3" the same as ZX Spectrum's "BORDER 3" that draws a nice thick magenta border around the actually drawable area? :)
<marcan>
no, that's bg_color in the DCP swap if you then reduce the plane size along with it :p
<alyssa>
i am apparently unable to use GL to check rgb9e5
hightower3 has joined #asahi-gpu
hightower4 has quit [Ping timeout: 480 seconds]
hightower3 has quit [Ping timeout: 480 seconds]
hightower2 has joined #asahi-gpu
Coastalcrown has quit [Remote host closed the connection]
Coastalcrown has joined #asahi-gpu
MajorBiscuit has joined #asahi-gpu
Coastalcrown has quit [Remote host closed the connection]
Coastalcrown has joined #asahi-gpu
hampus has joined #asahi-gpu
amarioguy has quit [Remote host closed the connection]
hampus has quit []
Coastalcrown has quit [Remote host closed the connection]
Coastalcrown has joined #asahi-gpu
Coastalcrown has quit [Remote host closed the connection]
Coastalcrown has joined #asahi-gpu
giffel has joined #asahi-gpu
giffel has quit [Quit: Lost terminal]
bcrumb has joined #asahi-gpu
MajorBiscuit has quit [Ping timeout: 480 seconds]
bcrumb has quit [Quit: WeeChat 3.7.1]
bcrumb has joined #asahi-gpu
bcrumb has quit [Quit: WeeChat 3.7.1]
cylm_ has quit [Ping timeout: 480 seconds]
cylm_ has joined #asahi-gpu
chengsun has joined #asahi-gpu
<alyssa>
aaaaand that's probably a bug in the apple driver....
VinDuv has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
chengsun- has joined #asahi-gpu
VinDuv has joined #asahi-gpu
<alyssa>
(incorrect rounding of border colours)
chengsun_ has quit [Ping timeout: 480 seconds]
chengsun has quit [Ping timeout: 480 seconds]
chengsun has joined #asahi-gpu
chengsun- has quit [Ping timeout: 480 seconds]
<TellowKrinkle>
If border color depends on the texture format, does that mean it's not part of the sampler? Since those are separate from textures in Metal
<alyssa>
TellowKrinkle: no custom border colours in metal
<alyssa>
well, public Metal
<TellowKrinkle>
Ahh okay
<alyssa>
private Metal has custom border colours, presumably for the sole use of the GL driver
<alyssa>
which doesn't do separate textures/samplers
bcrumb has joined #asahi-gpu
Coastalcrown has quit [Remote host closed the connection]
MajorBiscuit has joined #asahi-gpu
Coastalcrown has joined #asahi-gpu
mkurz has joined #asahi-gpu
DragoonAethis has quit [Quit: hej-hej!]
DragoonAethis has joined #asahi-gpu
amarioguy has joined #asahi-gpu
SSJ_GZ has quit [Remote host closed the connection]