#asahi-gpu · 2022-12-20 02:17
alyssa 1e: 0501000a00c8f200 device_load.TODO 0, i32, xyzw, r0_r1_r2_r3, u0_u1, r0, unsigned, lsl 2, 0, 0, 4, 0#asahi-gpu · 2022-12-20 02:17
alyssanow when I make it load vec4 it instead changes to#asahi-gpu · 2022-12-20 02:17
alyssaoh, hold on#asahi-gpu · 2022-12-20 02:15
alyssatheirs#asahi-gpu · 2022-12-20 02:15
alyssawhy does my wait not work but there's does? :P#asahi-gpu · 2022-12-20 02:15
alyssawhich is strange because Apple's compiler is happy to generate sequences like that#asahi-gpu · 2022-12-20 02:10
alyssa2 loads seems to work, but 3 no?#asahi-gpu · 2022-12-20 02:10
alyssaI just want multiple loads in flight :d#asahi-gpu · 2022-12-20 02:07
alyssaI wonder why this code sequence doesn't want to work :V#asahi-gpu · 2022-12-20 02:07
alyssa 20: 3800 wait 0#asahi-gpu · 2022-12-20 02:07
alyssa 18: 0541080e00c0f200 device_load 0, i32, xyzw, r8_r9_r10_r11, u4_u5, r0, unsigned#asahi-gpu · 2022-12-20 02:07
alyssa 10: 0529040e00c0f200 device_load 0, i32, xyzw, r5_r6_r7_r8, u2_u3, r0, unsigned#asahi-gpu · 2022-12-20 02:07
alyssa 8: 0509000e00c0f200 device_load 0, i32, xyzw, r1_r2_r3_r4, u0_u1, r0, unsigned#asahi-gpu · 2022-12-19 17:11
alyssaWoof.#asahi-gpu · 2022-12-19 17:09
alyssawhich means our current txf implementation is broken. gg.#asahi-gpu · 2022-12-19 17:09
alyssalikewise for texture_load, the level is passed in a 16-bit int uniform.#asahi-gpu · 2022-12-19 17:07
alyssaok, that's one mystery down#asahi-gpu · 2022-12-19 17:02
alyssaok, easy enough to handle#asahi-gpu · 2022-12-19 17:02
alyssalevel is provided as a half-float within uniform u5l#asahi-gpu · 2022-12-19 17:02
alyssayep, that's it.#asahi-gpu · 2022-12-19 17:00
alyssavalue is 10, maybe that's really u5l#asahi-gpu · 2022-12-19 17:00
alyssaoh maybe it's getting the lod from a uniform#asahi-gpu · 2022-12-19 16:58
alyssa"Alyssa, that's the same instruction"#asahi-gpu · 2022-12-19 16:57
alyssaand lod 1, apparently#asahi-gpu · 2022-12-19 16:57
alyssa2c: 3185020a0062210020000000 texture_sample 0, 0b00, 0b01100, 0b0, 0b00000, x, 0b01, r1, 0, ts0, ss0, tex_2d, r1_r2, 2, 314#asahi-gpu · 2022-12-19 16:57
alyssainteresting way of doing lod(0) in a frag shader, yes#asahi-gpu · 2022-12-19 16:57
alyssa2c: 3185020a0062210020000000 texture_sample 0, 0b00, 0b01100, 0b0, 0b00000, x, 0b01, r1, 0, ts0, ss0, tex_2d, r1_r2, 2, 314#asahi-gpu · 2022-12-19 16:55
alyssaalso, no uniform branching. bleh#asahi-gpu · 2022-12-19 16:48
alyssathe TODO version is just the version that unsets bit 26#asahi-gpu · 2022-12-19 16:47
alyssathe "else" uses 2 device_loads with jmp_exec_none#asahi-gpu · 2022-12-19 16:47
alyssathe "if" uses a device_load.TODO with no jmp_exec_none#asahi-gpu · 2022-12-19 16:47
alyssaif (uniform) { load } else { load, load }#asahi-gpu · 2022-12-19 16:47
alyssaif I have#asahi-gpu · 2022-12-19 16:45
alyssaif I drop the load and leave only the texture, I do get a jmp_exec_none#asahi-gpu · 2022-12-19 16:44
alyssaI wonder if there's some sort of predication interaction here#asahi-gpu · 2022-12-19 16:44
alyssaif I drop the texture, it uses a regular device_load, and it uses a jmp_exec_none#asahi-gpu · 2022-12-19 16:44
alyssaif (uniform) { load } else { texture }#asahi-gpu · 2022-12-19 16:44
alyssathis is for#asahi-gpu · 2022-12-19 16:43
alyssasame in device space#asahi-gpu · 2022-12-19 16:42
alyssaalso interestingly metal is not inserting jmp_exec_any branches despite memory access in here, hmhmhmhm#asahi-gpu · 2022-12-19 16:42
alyssaconstant address space, fragment shader, within uniform control flow#asahi-gpu · 2022-12-19 16:41
alyssai wonder why metal is generating this alternate load in this case#asahi-gpu · 2022-12-19 16:41
alyssa 1c: 0509400a00c81200 device_load.TODO 0, i32, x, r1, u0_u1, r2, unsigned, lsl 2, 0, 0, 4, 0#asahi-gpu · 2022-12-19 16:35
alyssasounds good#asahi-gpu · 2022-12-19 14:45
alyssabut not even compile tested#asahi-gpu · 2022-12-19 14:45
alyssaif you squash that into asahi/main it should be good enough to ship#asahi-gpu · 2022-12-19 14:45
alyssamarcan: https://rosenzweig.io/diff#asahi-gpu · 2022-12-19 04:52
alyssapebkac#asahi-gpu · 2022-12-19 04:49
alyssaoh you've got to be kidding me.#asahi-gpu · 2022-12-19 04:49
alyssaUnhandled intrinsic image_store