ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-gpu
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-gpu
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crabbedhaloablut has joined #asahi-gpu
compassion1785 has quit [Ping timeout: 480 seconds]
possiblemeatball has quit [Ping timeout: 480 seconds]
artun42 has joined #asahi-gpu
possiblemeatball has joined #asahi-gpu
artun42 has quit [Quit: Page closed]
novafacing992 has joined #asahi-gpu
novafacing992 has quit [Read error: Connection reset by peer]
novafacing992 has joined #asahi-gpu
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi-gpu
<i509vcb>
Could there be any stylistic improvement to have a sort of "agx_gpu_ptr" typedef to make it more clear that a uint64_t should be semantically treated as a gpu pointer in code?
novafacing992 has quit [Read error: Connection reset by peer]
compassion1785 has joined #asahi-gpu
compassion1785 has quit [Ping timeout: 480 seconds]
possiblemeatball has quit [Remote host closed the connection]
compassion1785 has joined #asahi-gpu
crabbedhaloablut has quit []
crabbedhaloablut has joined #asahi-gpu
bisko has joined #asahi-gpu
as400 has quit [Remote host closed the connection]
as400 has joined #asahi-gpu
ourdumbfuture has joined #asahi-gpu
zalyx0 has quit [Quit: later alligator]
zalyx0 has joined #asahi-gpu
zalyx0 has quit []
zalyx0 has joined #asahi-gpu
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Misthios9 has joined #asahi-gpu
cylm_ has joined #asahi-gpu
albertobasaglia has joined #asahi-gpu
alyssa has joined #asahi-gpu
<alyssa>
i509vcb: certainly it's possible to do that, for panfrost I used the `mali_ptr` typedef for that ... it's not as useful as it seems, though, since C will do implicit casting between u64 and agx_gpu_ptr so the type annotation becomes a purely optional hint
<alyssa>
it would be a lot more useful in rust.
ourdumbfuture has joined #asahi-gpu
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Misthios9 has quit [Quit: Misthios9]
cylm has joined #asahi-gpu
Z750 has quit [Quit: Ping timeout (120 seconds)]
Z750 has joined #asahi-gpu
cylm_ has quit [Ping timeout: 480 seconds]
ourdumbfuture has joined #asahi-gpu
chadmed has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-gpu
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-gpu
balrog has quit [Quit: Bye]
balrog has joined #asahi-gpu
chadmed has quit [Ping timeout: 480 seconds]
compassion1785 has quit [Read error: Connection reset by peer]
compassion1785 has joined #asahi-gpu
compassion1785 has quit []
<i509vcb>
Yeah in rust I'd probably make a newtype for that
<i509vcb>
And then implement Deref<Self::Target = u64> for GpuPtr
chadmed has joined #asahi-gpu
<rosefromthedead>
ah, the old "you shouldn't deref for polymorphism even though it makes everyone's life easier"
<rosefromthedead>
s/deref/use std::ops::Deref/
compassion1785 has joined #asahi-gpu
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
le0n has quit [Ping timeout: 480 seconds]
nyx_o has joined #asahi-gpu
ourdumbfuture has joined #asahi-gpu
<i509vcb>
Yeah probably a bit of Deref abuse there
<i509vcb>
I guess Into<u64> if you really need the raw value
<i509vcb>
Certainly not as bad as some cases I've seen where people have done inheritence via that...
<rosefromthedead>
yeah, iirc bevy just invested in Deref abuse and gave up on "doing things right" because it can make apis so much nicer
<i509vcb>
I've had the opinion that rust punishes bad architecture
<i509vcb>
Sadly Deref is an escape route
<i509vcb>
Smithay is definitely better now but I am still a annoyed by all the Arc<Mutex<T>> abuse we need
<i509vcb>
> agx_usc_uniform is then used to copy from that struct to uniform registers according to the layout that you picked earlier.
<i509vcb>
This seems to imply that I'd need to still have a bunch of has_whatever fields and bases in another type?
albertobasaglia has quit [Quit: WeeChat 4.0.4]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tenkuu has joined #asahi-gpu
tenkuu has quit []
possiblemeatball has joined #asahi-gpu
systwi_ has quit [Ping timeout: 480 seconds]
ourdumbfuture has joined #asahi-gpu
systwi has joined #asahi-gpu
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-gpu
billak has joined #asahi-gpu
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flom84 has joined #asahi-gpu
le0n has joined #asahi-gpu
le0n has quit [Ping timeout: 480 seconds]
flom84 has quit [Ping timeout: 480 seconds]
brentrosen has joined #asahi-gpu
brentrosen has quit []
brentrosen has joined #asahi-gpu
brentrosen has quit []
ourdumbfuture has joined #asahi-gpu
billak has quit [Remote host closed the connection]
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-gpu
maximbaz has quit [Quit: bye]
maximbaz has joined #asahi-gpu
kujeger has quit [Remote host closed the connection]
crabbedhaloablut has quit []
crabbedhaloablut has joined #asahi-gpu
le0n has joined #asahi-gpu
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ourdumbfuture has joined #asahi-gpu
ourdumbfuture has quit [Quit: My Mac has gone to sleep. ZZZzzz…]