#
✕ nick:alyssa
#asahi-gpu · 2023-08-24 17:51
alyssathanks :)
#asahi-gpu · 2023-08-24 17:51
alyssaella-0: please weigh in on https://gitlab.freedesktop.org/asahi/mesa/-/merge_requests/172#note_2057894
#asahi-gpu · 2023-08-23 23:10
alyssai509vcb: :)
#asahi-gpu · 2023-08-23 21:31
alyssai509vcb: specifically, see nvk_meta_begin/nvk_meta_end
#asahi-gpu · 2023-08-23 21:31
alyssasee how NVK does it
#asahi-gpu · 2023-08-23 21:31
alyssawe need to do meta save/restore
#asahi-gpu · 2023-08-23 21:31
alyssaoh, yeah
#asahi-gpu · 2023-08-23 21:24
alyssaWoo!
#asahi-gpu · 2023-08-23 20:28
alyssaASAHI_MESA_DEBUG=trace AGX_MESA_DEBUG=shaders is my go-to
#asahi-gpu · 2023-08-23 20:28
alyssaif you need to see NIR before/after every pass, NIR_DEBUG=print but it's very verbose
#asahi-gpu · 2023-08-23 20:28
alyssaAGX_MESA_DEBUG=shaders
#asahi-gpu · 2023-08-23 20:22
alyssaMakes the "game porting toolkit" announcement even more obnoxious when I now *know* that samplers are necessarily broken in there.
#asahi-gpu · 2023-08-23 20:21
alyssaI am really peaved about this. What a stupid corner to cut.
#asahi-gpu · 2023-08-23 20:21
alyssaThat means DX12 is impossible on this hardware
#asahi-gpu · 2023-08-23 20:21
alyssaI just discovered that, due to a horrendously small sampler heap, it is impossible to implement standards conformant bindless samplers on M1
#asahi-gpu · 2023-08-23 20:21
alyssa----------------
#asahi-gpu · 2023-08-23 20:21
alyssacould hack decode.c
#asahi-gpu · 2023-08-23 20:21
alyssanot really
#asahi-gpu · 2023-08-23 18:34
alyssagood ok i like this.
#asahi-gpu · 2023-08-23 18:33
alyssathen the special cases disappear
#asahi-gpu · 2023-08-23 18:33
alyssaalyssa you just need to add a load_texture_handle_agx intrinsic
#asahi-gpu · 2023-08-23 18:33
alyssaAHAHAHAH
#asahi-gpu · 2023-08-23 18:17
alyssagrep for agx_usc_uniform to see how that works
#asahi-gpu · 2023-08-23 18:16
alyssaalong with each shader, the driver specifies a list of GPU addresses to be preloaded into uniform register ranges
#asahi-gpu · 2023-08-23 18:09
alyssai509vcb: agx_usc_uniform
#asahi-gpu · 2023-08-23 00:18
alyssaagx_nir_lower_sysvals aligns 64-bit to 64-bit boundaries so go with that
#asahi-gpu · 2023-08-23 00:18
alyssa2. uhhhh not 100% sure off hand. I would expect alignment is needed
#asahi-gpu · 2023-08-23 00:17
alyssa1. correct
#asahi-gpu · 2023-08-22 23:37
alyssa0 = mov u5
#asahi-gpu · 2023-08-22 23:37
alyssameans
#asahi-gpu · 2023-08-22 23:37
alyssa32 %0 = load_preamble (base=10)
#asahi-gpu · 2023-08-22 23:36
alyssain 16-bit units
#asahi-gpu · 2023-08-22 23:36
alyssai509vcb: uniform register index
#asahi-gpu · 2023-08-22 20:37
alyssasure
#asahi-gpu · 2023-08-22 19:46
alyssa"the passes" probably you want a single pass for all the sysvals
#asahi-gpu · 2023-08-22 19:45
alyssashrug
#asahi-gpu · 2023-08-22 19:45
alyssai mean
#asahi-gpu · 2023-08-22 19:44
alyssawho cares
#asahi-gpu · 2023-08-22 19:44
alyssaagx_pipeline, for now
#asahi-gpu · 2023-08-22 19:44
alyssaonce you hook that up in lower_descriptor_sets, textureSize() should Just Work
#asahi-gpu · 2023-08-22 19:43
alyssain its place, AGXV is required to use bindless texture/image instructions (rather than non-bindless ones using the index to denote a texture state register) when the backend says so
#asahi-gpu · 2023-08-22 19:43
alyssabtw after the rebase, the load_texture_base_agx sysval goes away, because it's unimplementable on Vulkan
#asahi-gpu · 2023-08-22 19:42
alyssai509vcb: nice!
#asahi-gpu · 2023-08-22 18:03
alyssa:)
#asahi-gpu · 2023-08-22 16:53
alyssano need to build your own kernel, I hope
#asahi-gpu · 2023-08-22 16:53
alyssaso bump to the latest agxv/main and upgrade your system and you should be synced
#asahi-gpu · 2023-08-22 16:53
alyssaella-0: i509vcb: Mary: agxv/main is now rebased on top of the latest UAPI, which is now shipping in both the fedora remix and the arch
#asahi-gpu · 2023-08-22 12:02
alyssai509vcb: nir_Shader_instructions_pass and just return fals
#asahi-gpu · 2023-08-22 03:21
alyssawhen the new kernel ships (very soon) I'll push that to agxv/main
#asahi-gpu · 2023-08-22 03:21
alyssai509vcb: ella-0: Mary: I've rebased AGXV with the new uapi, it's in alyssa/mesa:agxv/rebase

plus ›