#
✕ nick:alyssa
#asahi-gpu · 2023-09-04 18:41
alyssaclear colour
#asahi-gpu · 2023-09-04 18:35
alyssaso.. I guess the way it works now is the right way, it's just kinda ugly
#asahi-gpu · 2023-09-04 18:35
alyssasince it's an optional opt pass
#asahi-gpu · 2023-09-04 18:35
alyssathis means at a fundamental level nir_opt_preamble can't be used to push the address
#asahi-gpu · 2023-09-04 18:35
alyssa18:29 @alyssa | the issue is that the base address MUST come from a uniform, it CANNOT come from registers
#asahi-gpu · 2023-09-04 18:30
alyssaI mean, I probably need to redo this anyway for $SECRET_PROJECT, just not sure what the right way is yet.
#asahi-gpu · 2023-09-04 18:29
alyssaalright
#asahi-gpu · 2023-09-04 18:29
alyssathe issue is that the base address MUST come from a uniform, it CANNOT come from registers
#asahi-gpu · 2023-09-04 18:29
alyssaI don't have a great alternative right now
#asahi-gpu · 2023-09-04 18:28
alyssawhich hard-requires the driver to fix the uniform layout, and is different from how we handle every other uniform
#asahi-gpu · 2023-09-04 18:28
alyssaCurrently we're representing a bindless table at uniform u0_u1 with a literal constant #0 in the shader
#asahi-gpu · 2023-09-04 18:27
alyssasure
#asahi-gpu · 2023-09-04 18:22
alyssaI probably need to change how this works in the compiler don't I.
#asahi-gpu · 2023-09-04 18:22
alyssahmm
#asahi-gpu · 2023-09-04 18:21
alyssahm
#asahi-gpu · 2023-09-04 18:21
alyssaProbably I should figure out a way to avoid that.
#asahi-gpu · 2023-09-04 18:21
alyssamanually assigning uniforms
#asahi-gpu · 2023-09-04 18:21
alyssaagx_root_sysvals doesn't get this array, you need to special case it unfortunately
#asahi-gpu · 2023-09-04 18:20
alyssaoh, umm, scratch what I said about agx_root_sysvals
#asahi-gpu · 2023-09-04 18:20
alyssa* Image instructions in the shader are lowered to bindless, where the bindless handle is (uniform index for the descriptor set, offset for the binding * 24)
#asahi-gpu · 2023-09-04 18:19
alyssa* agx_root_sysvals[] gains a pointer to the texture desc array for each set
#asahi-gpu · 2023-09-04 18:19
alyssaAnyway, the texture descriptor array is per-descriptor set and uploaded
#asahi-gpu · 2023-09-04 18:18
alyssaThat might be better for cache efficiency maybe, idk
#asahi-gpu · 2023-09-04 18:18
alyssaAlternatively you can compact things per-descriptor set and fix up when lowering the shader
#asahi-gpu · 2023-09-04 18:18
alyssaIdeally, this is indexed directly by the BINDING (and multiplied by a stride of AGX_TEXTURE_LENGTH == 24 bytes)
#asahi-gpu · 2023-09-04 18:17
alyssa* Each descriptor set gets an array of texture/image descriptors associated with it.
#asahi-gpu · 2023-09-04 18:17
alyssaI think you want something roughly like:
#asahi-gpu · 2023-09-04 18:16
alyssapanvk does not do that, no
#asahi-gpu · 2023-09-04 16:41
alyssanya~
#asahi-gpu · 2023-09-04 15:38
alyssamary gets it
#asahi-gpu · 2023-09-04 15:35
alyssaVK_DRIVER_ID_MESA_CATGIRLZ_NYA it is
#asahi-gpu · 2023-09-04 15:05
alyssaneutral
#asahi-gpu · 2023-09-04 15:05
alyssa3Cneutral
#asahi-gpu · 2023-09-03 17:23
alyssahmm, easy enough to do that second bit
#asahi-gpu · 2023-09-03 17:05
alyssaor at least get testing in the release tagging loop
#asahi-gpu · 2023-09-03 17:05
alyssawondering what the least invasive way to get no-nonsense asahi/mesa CI would be
#asahi-gpu · 2023-09-03 15:56
alyssajannau: tip, you can cat together all the caselists and do a single deqp-runner run
#asahi-gpu · 2023-09-03 15:56
alyssa:+1:
#asahi-gpu · 2023-09-03 15:16
alyssaCTS is running now
#asahi-gpu · 2023-09-03 15:16
alyssapushed asahi/main, please smoketest
#asahi-gpu · 2023-09-03 13:17
alyssastill broken, another fix coming
#asahi-gpu · 2023-08-31 11:53
alyssa:+1:
#asahi-gpu · 2023-08-31 11:47
alyssait does NOT map to gl timestamps which are bonkers for tilers
#asahi-gpu · 2023-08-31 11:46
alyssahf
#asahi-gpu · 2023-08-31 11:46
alyssaand also os_time_get_nano()
#asahi-gpu · 2023-08-31 11:46
alyssaand drm_asahi_result_* has timestamps in it at the end of the job
#asahi-gpu · 2023-08-31 11:46
alyssadrm_asahi_get_time ioctl
#asahi-gpu · 2023-08-31 11:46
alyssatimestamp you have two options
#asahi-gpu · 2023-08-31 11:46
alyssascratch is also nightmare level yes
#asahi-gpu · 2023-08-31 11:40
alyssascratch/spilling are nightmare-level difficulty and yes it's in the cards for me & lina

plus ›