#asahi-gpu · 2024-01-04 01:40
alyssaagxdecode?#asahi-gpu · 2024-01-04 01:40
i509vcbAll four combinations of casts seem to do this#asahi-gpu · 2024-01-04 01:40
alyssa:S#asahi-gpu · 2024-01-04 01:40
i509vcbWhat's odd here is I am casting both sides of the copy#asahi-gpu · 2024-01-04 01:40
alyssavulkan copies are supposed to be a memcpy, bit exact#asahi-gpu · 2024-01-04 01:40
alyssaditto for snorm since there are two -1.0#asahi-gpu · 2024-01-04 01:40
alyssawhich is why you have to cast float formats to e.g. uint on both sides of the copy#asahi-gpu · 2024-01-04 01:39
alyssaso NaNs don't roundtrip #asahi-gpu · 2024-01-04 01:39
alyssaand the hw canonicalizes#asahi-gpu · 2024-01-04 01:39
alyssai509vcb: there are lots of NaN values#asahi-gpu · 2024-01-03 20:19
i509vcbIs the hardware producing different NaN values from what Vulkan expects?#asahi-gpu · 2024-01-03 20:19
i509vcbWhere NAN is the GCC definition of NAN#asahi-gpu · 2024-01-03 20:19
i509vcbassert(deFloat32To16(NAN) == 0x7e00); is true#asahi-gpu · 2024-01-03 12:17
alyssawhoo#asahi-gpu · 2024-01-03 07:55
i509vcbdifferent NaN values... https://usercontent.irccloud-cdn.com/file/BLImn2ED/image.png#asahi-gpu · 2024-01-03 06:39
i509vcb(The result is R16G16)#asahi-gpu · 2024-01-03 06:39
i509vcbI guess what I suspected is what's happened: https://usercontent.irccloud-cdn.com/file/L7hyff5s/image.png#asahi-gpu · 2024-01-03 02:04
i509vcbFrom what I can see in the tests, the tests are pure bitwise comparisons #asahi-gpu · 2024-01-03 02:00
i509vcbIs there some way to ask the vulkan dEQP to dump the raw bytes of the result and reference? #asahi-gpu · 2024-01-03 00:32
alyssathat's really weird#asahi-gpu · 2024-01-03 00:31
alyssa:(#asahi-gpu · 2024-01-02 23:43
i509vcbAnd uint attempts did the same #asahi-gpu · 2024-01-02 23:43
i509vcbI did try casting both ends to sint and nothing changed#asahi-gpu · 2024-01-02 23:43
i509vcb /s/norm/snorm#asahi-gpu · 2024-01-02 23:42
i509vcbI think this is the a8b8g8r8_norm to r16g16_sfloat copy test #asahi-gpu · 2024-01-02 23:42
i509vcb(checking with a color picker, these are the same)#asahi-gpu · 2024-01-02 23:31
i509vcbfun https://usercontent.irccloud-cdn.com/file/8wD2AH8q/image.png#asahi-gpu · 2024-01-02 23:01
alyssahth#asahi-gpu · 2024-01-02 23:00
alyssalearned this the hard way recently#asahi-gpu · 2024-01-02 23:00
alyssasnorm and float are unsafe#asahi-gpu · 2024-01-02 23:00
alyssagenerally speaking, uint, sint, and unorm are safe for copies#asahi-gpu · 2024-01-02 23:00
alyssaso snorm needs to be cast to e.g. uint/sint#asahi-gpu · 2024-01-02 23:00
alyssadue to ambiguous representation of -1.0#asahi-gpu · 2024-01-02 22:59
alyssai509vcb: Snorm has a similar problem, decode+encode snorm is lossy#asahi-gpu · 2024-01-02 22:32
i509vcbAny 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#asahi-gpu · 2024-01-02 17:45
alyssautil_format might have something#asahi-gpu · 2024-01-02 06:33
i509vcbsrc_format == VK_FORMAT_B8G8R8A8_UNORM && dst_format == VK_FORMAT_R32_SFLOAT works though with the hackery (with UINT instead in the dst change)#asahi-gpu · 2024-01-02 06:30
i509vcbentirely different formats I've yet to figure out a pattern#asahi-gpu · 2024-01-02 06:30
i509vcbHuh the cast works with R32 but not R16?: https://gist.github.com/i509VCB/219ecfa91e39fb64db47d970b36caae6#asahi-gpu · 2024-01-02 06:23
i509vcbAlthough I might not have it figured out yet#asahi-gpu · 2024-01-02 06:20
i509vcbI guess I'll be writing new helpers so that I have a way to get a format with a different numeric type#asahi-gpu · 2024-01-02 06:19
i509vcbalyssa: I think the sfloat issue is what you mentioned, now to generalize a solution for it...#asahi-gpu · 2024-01-02 04:58
i509vcbI'm sure I've written far worse code when I was 12#asahi-gpu · 2024-01-02 04:58
chadmedread that in a jar jar binks voice ^#asahi-gpu · 2024-01-02 04:52
alyssamesa has lotsa helpers#asahi-gpu · 2024-01-02 04:52
alyssaall good :)#asahi-gpu · 2024-01-02 04:48
i509vcbYeah oof sorry my temp disable of compressed formats is not good#asahi-gpu · 2024-01-02 04:47
alyssautil_format_is_compressed()#asahi-gpu · 2024-01-02 04:47
alyssai509vcb: https://gitlab.freedesktop.org/i509VCB/mesa/-/commit/7e977beda017a9d9c6b9be350efa9cdc90c94f96#asahi-gpu · 2024-01-02 04:45
alyssanothing in shader code