#
#asahi-gpu · 2022-10-02 15:16
alyssaThe driver prepares this shader based on the API state.
#asahi-gpu · 2022-10-02 15:15
alyssaThat is a fragment-like shader that runs once per tile, rather than once per pixel, after all regular fragment shading is done.
#asahi-gpu · 2022-10-02 15:15
alyssaGenerally this instruction is used in the special "end-of-tile" program.
#asahi-gpu · 2022-10-02 15:14
alyssaIt interprets a block of local memory according to the format/byte offset provided, and blits it to the right spot in the image you pass in.
#asahi-gpu · 2022-10-02 15:14
alyssaand a format and a byte offset
#asahi-gpu · 2022-10-02 15:14
alyssaThis takes in an image descriptor (usually loaded into a texture state register with BIND_TEXTURE)
#asahi-gpu · 2022-10-02 15:13
alyssaThis is the most subtle. ("unkB1" in applegpu right now)
#asahi-gpu · 2022-10-02 15:13
alyssa3. copy local block to image.
#asahi-gpu · 2022-10-02 15:12
alyssa2. local pixel load. The above in reverse. This is how we can load the "tilebuffer" to implement blending.
#asahi-gpu · 2022-10-02 15:12
alyssaThis is how fragment shaders write out their results to the "tilebuffer".
#asahi-gpu · 2022-10-02 15:12
alyssaThe shader passes in a byte offset, a format, and a value to store.
#asahi-gpu · 2022-10-02 15:11
alyssa1. local pixel store. This works like a local store (as compute kernels use), but the destination is implicitly indexed by the fragment coordinate. It's a formatted load, meaning you specify the format in the instruction and it does conversion (rgba8 -> f32) in hardware for you.
#asahi-gpu · 2022-10-02 15:11
karolherbstdoes something like helper invocations even exist?
#asahi-gpu · 2022-10-02 15:10
alyssaHow does that work? Well, there are 3 handy instructions:
#asahi-gpu · 2022-10-02 15:10
alyssaThere is no tilebuffer. It's just local memory, same as compute shaders!
#asahi-gpu · 2022-10-02 15:10
karolherbstmaybe I should try to use metal once and then I have data and can decide to hate or love it or something
#asahi-gpu · 2022-10-02 15:10
alyssaEverything happens via fragment shaders. Everything!
#asahi-gpu · 2022-10-02 15:09
alyssaFor the benefit of everyone else in the room I'll summarize:
#asahi-gpu · 2022-10-02 15:09
alyssaI figured out most of the details in August but haven't had time to update Mesa with the knowledge yet.
#asahi-gpu · 2022-10-02 15:09
alyssaElla[m]: Not sure how much you know about how render targets work on AGX
#asahi-gpu · 2022-10-02 15:09
alyssa /* no comment */
#asahi-gpu · 2022-10-02 15:09
karolherbstcompared to GL or vulkan?
#asahi-gpu · 2022-10-02 15:08
alyssathe programming model is a paragon of sanity by comparison.
#asahi-gpu · 2022-10-02 15:08
alyssakarolherbst: Definitely my favourite graphics API
#asahi-gpu · 2022-10-02 15:08
karolherbstis metal really that great/terrible how people say?
#asahi-gpu · 2022-10-02 15:08
alyssaMetal's rendering model doesn't really map to AGX either, but it's a helluva lot closer
#asahi-gpu · 2022-10-02 15:07
alyssaRender passes don't map to how AGX works *anyway*
#asahi-gpu · 2022-10-02 15:07
alyssaAnyway, here's my take:
#asahi-gpu · 2022-10-02 15:07
alyssaack
#asahi-gpu · 2022-10-02 15:07
Ella[m]No I don't
#asahi-gpu · 2022-10-02 15:06
alyssaElla[m]: BTW, do you have Khronos access? (maybe through Igalia?)
#asahi-gpu · 2022-10-02 15:06
Ella[m]yeah :/
#asahi-gpu · 2022-10-02 15:05
alyssaThe trouble is that you leave a lot of perf on the table for renderpasses with multiple subpasses
#asahi-gpu · 2022-10-02 15:05
alyssaOK
#asahi-gpu · 2022-10-02 15:05
Ella[m]pure dynamic rendering
#asahi-gpu · 2022-10-02 15:05
alyssawhich?
#asahi-gpu · 2022-10-02 15:03
Ella[m]That's what I've been doing so far
#asahi-gpu · 2022-10-02 15:03
alyssaand possibly also pure dynamic rendering with common render pass emulation, but we're still trying to figure out if that can be made to work efficiently with tilers
#asahi-gpu · 2022-10-02 15:03
alyssaawesome
#asahi-gpu · 2022-10-02 15:03
Ella[m]yes, I've made some notes on what order I want to do things in and I've already integrated the new state tracking stuff
#asahi-gpu · 2022-10-02 15:03
alyssaCommon vk state tracking + common vk_meta
#asahi-gpu · 2022-10-02 15:02
alyssaDefinitely want a New Vulkan(TM) driver instead of Old Vulkan
#asahi-gpu · 2022-10-02 15:02
alyssaElla[m]: We really should come up with a plan for getting agxvk into shape.
#asahi-gpu · 2022-10-02 15:01
Ella[m]from the work I've seen from v3dv, I second that
#asahi-gpu · 2022-10-02 14:58
svenim just amazed how everything Broadcom makes seems to be horrible
#asahi-gpu · 2022-10-02 14:55
alyssagood luck
#asahi-gpu · 2022-10-02 14:54
karolherbstlet's see how that all goes
#asahi-gpu · 2022-10-02 14:54
karolherbstoh well...
#asahi-gpu · 2022-10-02 14:54
karolherbstyeah... so my plan was to try to stay awak over the night and sleep on my flight to the US
#asahi-gpu · 2022-10-02 14:51
alyssaWoof

plus ›