#
✕ nick:alyssa
#asahi-gpu · 2023-01-06 00:56
alyssawell some of them
#asahi-gpu · 2023-01-06 00:56
alyssabut I seem to be able to guess them
#asahi-gpu · 2023-01-06 00:55
alyssabut I seem to be able to guess them
#asahi-gpu · 2023-01-06 00:45
alyssaof course ... I couldn't get those to work ..
#asahi-gpu · 2023-01-06 00:45
alyssaoh and I need tests for compressed border formats
#asahi-gpu · 2023-01-06 00:23
alyssai should not be finding the expert challenges "about a medium" ...
#asahi-gpu · 2023-01-06 00:19
alyssai'm down
#asahi-gpu · 2023-01-06 00:11
alyssait is concerning how good i'm getting at supertuxkart from all this "testing"
#asahi-gpu · 2023-01-05 21:50
alyssano that doesn't match the data
#asahi-gpu · 2023-01-05 21:49
alyssaor
#asahi-gpu · 2023-01-05 21:49
alyssaoh something
#asahi-gpu · 2023-01-05 21:49
alyssaunless...... maybe the API swizzle has to be applied in the forward direction to the border swizzle
#asahi-gpu · 2023-01-05 21:32
alyssaunclear how that can work
#asahi-gpu · 2023-01-05 21:32
alyssafor rgb, it's using an rgb1 swizzle but computing the border colour as if it were rgba
#asahi-gpu · 2023-01-05 21:30
alyssaand luma-intensity
#asahi-gpu · 2023-01-05 21:29
alyssathe problem cases being,e.g. accessing alpha for RGB formats where the border's alpha != 1
#asahi-gpu · 2023-01-05 21:28
alyssawhich exists iff the format swizzle is surjective
#asahi-gpu · 2023-01-05 21:27
alyssaso we need a right-inverse of the format swizzlw
#asahi-gpu · 2023-01-05 21:27
alyssa= (API swizzle o (format swizzle o format swizzle^-1))(border colour)
#asahi-gpu · 2023-01-05 21:27
alyssaAPI swizzle(border colour) = (API swizzle o format swizzle)(format swizzle^-1(border colour))
#asahi-gpu · 2023-01-05 21:25
alyssaso that just becomes fp16 like I suspected
#asahi-gpu · 2023-01-05 21:24
alyssargb9e5 (rgb1): (3800, 3400, 3000, 3266), (0, 3c00, 3c00, 3c00)
#asahi-gpu · 2023-01-05 21:19
alyssa alpha (r8, 000r): (33, 0, 0, 0), (ff, 0, 0, 0)
#asahi-gpu · 2023-01-05 21:17
alyssaluminance-alpha (r8g8, unorm, RRRG): (7f, 33), (0, ff, 0, 0)
#asahi-gpu · 2023-01-05 21:15
alyssai'm finding this all very arbitrary
#asahi-gpu · 2023-01-05 21:15
alyssaand (ff, ff, 0, ff) for the other one
#asahi-gpu · 2023-01-05 21:07
alyssaso it is swapping for that... um.
#asahi-gpu · 2023-01-05 21:07
alyssabgra (channels=RGBA8, type=Unorm, swizzle=BGRA): (0x1f, 0x3f, 0x7f, 0x33)
#asahi-gpu · 2023-01-05 20:39
alyssait doesn't like my GL_TEXTURE_SWIZZLE..
#asahi-gpu · 2023-01-05 20:32
alyssaluminance (channels=R8, type=Unorm, swizzle=RRR1): (0x7f, 0x3f, 0x1f, 0x33), (0x0, 0xff, 0xff, 0xff)
#asahi-gpu · 2023-01-05 20:31
alyssaok, more data..
#asahi-gpu · 2023-01-05 19:42
alyssawhich doesn't do separate textures/samplers
#asahi-gpu · 2023-01-05 19:42
alyssaprivate Metal has custom border colours, presumably for the sole use of the GL driver
#asahi-gpu · 2023-01-05 19:42
alyssawell, public Metal
#asahi-gpu · 2023-01-05 19:41
alyssaTellowKrinkle: no custom border colours in metal
#asahi-gpu · 2023-01-05 19:32
alyssa(incorrect rounding of border colours)
#asahi-gpu · 2023-01-05 19:27
alyssa aaaaand that's probably a bug in the apple driver....
#asahi-gpu · 2023-01-05 14:06
alyssai am apparently unable to use GL to check rgb9e5
#asahi-gpu · 2023-01-05 14:01
alyssaso just straight up half floats
#asahi-gpu · 2023-01-05 14:01
alyssar11g11b10: (0x3800, 0x3400, 0x3000, 0x3266) and (0x0, 0x3c00, 0x3c00, 0x3c00)
#asahi-gpu · 2023-01-05 13:58
alyssa(3, 1, 3, 7) and (f, f, f, 0)
#asahi-gpu · 2023-01-05 13:58
alyssamoving on, RGBA4
#asahi-gpu · 2023-01-05 13:57
alyssaoh duh because GL is backwards and this is actually A1BGR5 this whole time right yes ok
#asahi-gpu · 2023-01-05 13:56
alyssa(1f, 1f, 1f, 0)
#asahi-gpu · 2023-01-05 13:56
alyssalet's also do one that's (0.0, 1.0, 1.0, 1.0):
#asahi-gpu · 2023-01-05 13:55
alyssa(0x1f, 0x1f, 0x0, 0x1)
#asahi-gpu · 2023-01-05 13:55
alyssa(1.0, 0.0, 1.0, 1.0) then
#asahi-gpu · 2023-01-05 13:55
alyssano that hits the opaque white case
#asahi-gpu · 2023-01-05 13:54
alyssasecond border colour will be (1.0, 1.0, 1.0, 1.0)
#asahi-gpu · 2023-01-05 13:54
alyssano that still doesn't track

plus ›