#
#asahi-gpu · 2021-04-05 23:20
bloomchrisf: Also, do you know if there's a standard name for preshaders?
#asahi-gpu · 2021-04-05 23:19
bloomlet me splice that out of the demo and do it on the CPU since you're right, it's ridiculous
#asahi-gpu · 2021-04-05 23:18
bloomYes.
#asahi-gpu · 2021-04-05 23:18
chrisfthere's a preshader that converts it to fp16?
#asahi-gpu · 2021-04-05 23:18
bloomThe clear is just a shader, apparently. Because of course it is.
#asahi-gpu · 2021-04-05 23:18
bloom*proper
#asahi-gpu · 2021-04-05 23:18
bloomWhat clear format?
#asahi-gpu · 2021-04-05 23:18
chrisflooking at how the clear works-- seems a lot of machinery to avoid passing the clear color in the proper format to start with?
#asahi-gpu · 2021-04-05 23:11
bloomstill super weird.
#asahi-gpu · 2021-04-05 23:11
bloom....are these register writes?
#asahi-gpu · 2021-04-05 23:11
chrisfyeah, that's weird
#asahi-gpu · 2021-04-05 23:11
bloomalso, the unaligned pointer thing is bothering me
#asahi-gpu · 2021-04-05 23:07
bloomafter chasing its pointer to unk2, things around unk2 make a bit more sense
#asahi-gpu · 2021-04-05 23:06
bloomare these commands? data structures? a mix?
#asahi-gpu · 2021-04-05 23:06
bloomSpecifically what all the magic numbers in demo_cmdbuf could be
#asahi-gpu · 2021-04-05 23:05
bloomchrisf: Just prodding demo.c
#asahi-gpu · 2021-04-05 23:05
chrisfbloom: something we can look at?
#asahi-gpu · 2021-04-05 23:04
bloomThere's... not nearly as much structure as I would expect
#asahi-gpu · 2021-04-05 23:04
bloomis baffled how AGX command buffers are supposed to work
#asahi-gpu · 2021-04-05 22:54
jn__eees
#asahi-gpu · 2021-04-05 22:53
bloomLet's eee
#asahi-gpu · 2021-04-05 22:43
bloomLet's eee
#asahi-gpu · 2021-04-04 18:25
DarkShadow44Should get easier from here on, next comes integer operations and bitops
#asahi-gpu · 2021-04-04 18:25
DarkShadow44Finally should have a solid base for emulating load/store - all known formats should work properly now
#asahi-gpu · 2021-04-04 16:49
bloomalright
#asahi-gpu · 2021-04-04 16:39
DarkShadow44bloom: mesa has two functions without a table as well, that's AFAIK how srgb is defined
#asahi-gpu · 2021-04-04 16:38
DarkShadow44after all, I need both directions
#asahi-gpu · 2021-04-04 16:38
DarkShadow44It's easier to reverse the calculation without a table
#asahi-gpu · 2021-04-04 16:36
bloommesa's code is just generating a table, as you see.
#asahi-gpu · 2021-04-04 16:36
bloomDarkShadow44: although if dougall has grabbed the table, why not just use dougall's table..?
#asahi-gpu · 2021-04-04 16:15
DarkShadow44dougall: FWIW, I implemented it with the mesa code and adjusted the tests to ignore small floating point differences
#asahi-gpu · 2021-04-04 04:06
chrisferr, R11G11B10
#asahi-gpu · 2021-04-04 04:06
chrisfDarkShadow44, R10G10B11 unsigned float is actually pretty useful -- "almost as good" as RGBA16F for a color target, but only 32 bits
#asahi-gpu · 2021-04-04 04:05
chrisfDarkShadow44, 10/11 bit unsigned floats are used in a widely supported format
#asahi-gpu · 2021-04-04 03:36
dougallDarkShadow44: yeah, that table was just generated by asking the gpu to convert all 256 values
#asahi-gpu · 2021-04-04 03:03
bloomaaa
#asahi-gpu · 2021-04-04 03:00
bloomaaa
#asahi-gpu · 2021-04-04 03:00
bloomRGBA vs BGRA
#asahi-gpu · 2021-04-04 02:57
DarkShadow44ah, that does make sense
#asahi-gpu · 2021-04-04 02:56
bloomRGBA vs BGRA
#asahi-gpu · 2021-04-04 02:56
DarkShadow44Isn't that more fitting inside a shader, why does a framebuffer need that?
#asahi-gpu · 2021-04-04 02:50
bloomhttps://en.wikipedia.org/wiki/Swizzling_(computer_graphics)
#asahi-gpu · 2021-04-04 02:49
DarkShadow44bloom: What does that mean, swizzle?
#asahi-gpu · 2021-04-04 02:47
bloom(yes, arbitrary swizzles, how cute)
#asahi-gpu · 2021-04-04 02:47
bloomgot fields for width, height, swizzle
#asahi-gpu · 2021-04-04 02:47
bloomI'm currently poking at the framebuffer (or render target, I guess) descriptor
#asahi-gpu · 2021-04-04 02:46
bloombelieves in letting people play with the toys they want to :-p
#asahi-gpu · 2021-04-04 02:46
bloomalright
#asahi-gpu · 2021-04-04 02:43
DarkShadow44not quite sure how useful that would be eventually, but currently I just wanna xD
#asahi-gpu · 2021-04-04 02:42
DarkShadow44btw, my end goal would be having regression tests and an emulator to run full shaders (their bytecode) on the CPU

plus ›