ChanServ changed the topic of #asahi-gpu to: Asahi Linux GPU development (no user support, NO binary reversing) | Keep things on topic | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-gpu
kidplayer666 has quit [Quit: Connection closed for inactivity]
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi-gpu
jeisom has quit [Ping timeout: 480 seconds]
marvin24_ has joined #asahi-gpu
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #asahi-gpu
marvin24 has quit [Ping timeout: 480 seconds]
<alyssa> ella-0: fascinating
<alyssa> i509vcb: casting at the level of formats input/output to the copy
<alyssa> nothing in shader code
<alyssa> util_format_is_compressed()
<i509vcb> Yeah oof sorry my temp disable of compressed formats is not good
<alyssa> all good :)
<alyssa> mesa has lotsa helpers
<chadmed> read that in a jar jar binks voice ^
<i509vcb> I'm sure I've written far worse code when I was 12
possiblemeatball has quit [Quit: Quit]
<i509vcb> alyssa: I think the sfloat issue is what you mentioned, now to generalize a solution for it...
<i509vcb> I guess I'll be writing new helpers so that I have a way to get a format with a different numeric type
<i509vcb> Although I might not have it figured out yet
<i509vcb> Huh the cast works with R32 but not R16?: https://gist.github.com/i509VCB/219ecfa91e39fb64db47d970b36caae6
<i509vcb> entirely different formats I've yet to figure out a pattern
<i509vcb> src_format == VK_FORMAT_B8G8R8A8_UNORM && dst_format == VK_FORMAT_R32_SFLOAT works though with the hackery (with UINT instead in the dst change)
kidplayer666 has joined #asahi-gpu
kidplayer666 has quit [Quit: Connection closed for inactivity]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #asahi-gpu
kidplayer666 has joined #asahi-gpu
nimprod3l has joined #asahi-gpu
jeisom has joined #asahi-gpu
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #asahi-gpu
jix has quit [Quit: quit]
jix has joined #asahi-gpu
nimprod3l has quit [Quit: Leaving]
possiblemeatball has joined #asahi-gpu
john-cabaj has joined #asahi-gpu
tertu has quit [Quit: so long...]
tertu has joined #asahi-gpu
john-cabaj has quit [Quit: john-cabaj]
john-cabaj has joined #asahi-gpu
<alyssa> util_format might have something
AnuthaDev has joined #asahi-gpu
kaazoo has joined #asahi-gpu
kaazoo has quit [Quit: Leaving.]
kaazoo has joined #asahi-gpu
kaazoo has quit [Remote host closed the connection]
kaazoo has joined #asahi-gpu
kaazoo has quit [Quit: Leaving.]
anders_2 has joined #asahi-gpu
anders__2 has quit [Ping timeout: 480 seconds]
AnuthaDev has quit []
crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #asahi-gpu
possiblemeatball has quit [Quit: Quit]
<i509vcb> Any ideas why R16 doesn't work with the casting but R32 does? (Yes the code is horrible) https://gitlab.freedesktop.org/i509VCB/mesa/-/blob/i5-vkCmdCopy/src/vulkan/runtime/vk_meta_copy.c#L510
c10l has quit [Remote host closed the connection]
c10l has joined #asahi-gpu
<alyssa> i509vcb: Snorm has a similar problem, decode+encode snorm is lossy
<alyssa> due to ambiguous representation of -1.0
<alyssa> so snorm needs to be cast to e.g. uint/sint
<alyssa> generally speaking, uint, sint, and unorm are safe for copies
<alyssa> snorm and float are unsafe
<alyssa> learned this the hard way recently
<alyssa> hth
<i509vcb> (checking with a color picker, these are the same)
<i509vcb> I think this is the a8b8g8r8_norm to r16g16_sfloat copy test
<i509vcb> /s/norm/snorm
<i509vcb> I did try casting both ends to sint and nothing changed
<i509vcb> And uint attempts did the same