#
✕ nick:alyssa
#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 12:17
alyssawhoo
#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: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 17:45
alyssautil_format might have something
#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: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
#asahi-gpu · 2024-01-02 04:45
alyssai509vcb: casting at the level of formats input/output to the copy
#asahi-gpu · 2024-01-02 04:45
alyssaella-0: fascinating
#asahi-gpu · 2024-01-01 20:00
alyssaall good :-)
#asahi-gpu · 2024-01-01 19:53
alyssamm, I think that should be straightforward to wire up, you don't need GS or anything
#asahi-gpu · 2024-01-01 19:48
alyssai509vcb: meta->cmd_draw_volume
#asahi-gpu · 2024-01-01 19:48
alyssaor eat the draws for now, it's not the end of the world
#asahi-gpu · 2024-01-01 14:07
alyssai don't think there's a straight-up hw DMA engine but maybe there's something helpful
#asahi-gpu · 2024-01-01 14:07
alyssaat some point we need to see how metal does copies
#asahi-gpu · 2024-01-01 14:06
alyssaagxv isn't doing compression yet but it will
#asahi-gpu · 2024-01-01 14:06
alyssa(without a 3d pipe fallback at least
#asahi-gpu · 2024-01-01 14:06
alyssaI have since learned that imageStore works on compressed images in limited cases, but it's unclear if it's enough to build a blitter.
#asahi-gpu · 2024-01-01 14:05
alyssaand is how e.g. Mali works
#asahi-gpu · 2024-01-01 14:05
alyssathis is the case as exposed in metal (imageStore disables compression)
#asahi-gpu · 2024-01-01 14:05
alyssai509vcb: as for why fragment, it was originally thought that we needed to use the 3d pipe (fragment) in order to get apple's lossless compression
#asahi-gpu · 2024-01-01 14:04
alyssa(1 draw call, 8192 rectangles)
#asahi-gpu · 2024-01-01 14:04
alyssai509vcb: 3d copies can be done in one draw call with a layered framebuffer, the vertex shader can write the layer on our hardware
#asahi-gpu · 2024-01-01 14:03
alyssathis means we can't compress rgb9e5 which is annoying but meh
#asahi-gpu · 2024-01-01 14:03
alyssacasting to a size-equivalent safe format (e.g. r32_uint for r32_float) should deal with that
#asahi-gpu · 2024-01-01 14:02
alyssapossibly this is the issue of "copies are supposed to preserve nans/denorms but they get flushed when copying as floats"
#asahi-gpu · 2024-01-01 14:01
alyssai509vcb: "sfloat" is indeed just float
#asahi-gpu · 2023-12-25 14:19
alyssasure
#asahi-gpu · 2023-12-25 14:18
alyssaalso, what you trying to do? :D
#asahi-gpu · 2023-12-25 14:18
alyssawould need to see the diff
#asahi-gpu · 2023-12-25 14:18
alyssachaos_princess: hmm
#asahi-gpu · 2023-12-04 00:47
alyssahttps://vulkan.gpuinfo.org/displaydevicelimit.php?name=maxDescriptorSetStorageBuffers&platform=linux
#asahi-gpu · 2023-12-04 00:45
alyssaso whatever we set it to will be arbitrary
#asahi-gpu · 2023-12-04 00:45
alyssafor maxPerStageDescriptorStorageBuffers, there is no hw limit
#asahi-gpu · 2023-12-04 00:44
alyssarosefromthedead: agxv isn't running real sutff yet so.. "they weren't"

plus ›