Mesa (main): 39 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun May 22 23:17:04 UTC 2022


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d12b97122ead40bc5092523720e974ec5da0de8e
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun May 22 17:57:34 2022 -0400

    docs/asahi: Add initial driver docs
    
    Emma asked for some docs on how to use wrap for when wrap gets landed.
    This should do :-)
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b7304f44b69704cb3cf899dddcd60c4b2d796ca
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Jul 10 12:30:40 2021 -0400

    asahi: Add wrap library
    
    Add a library that wraps the key IOKit entrypoints used in the macOS
    UABI for AGX. Our wrapped routines print information about the kernel
    calls made and dump work submitted to the GPU using agxdecode. This code
    has two major use cases:
    
    1. Debugging Mesa, particularly around the undocumented macOS
       user-kernel interface. Logs from Mesa may compared to Metal to check
       that the UABI is being used correcrly.
    
    2. Reverse-engineering the hardware, using this as glue to get at the
       "interesting" GPU memory.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d814711155a4ce17f49428bde72b15367202c076
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun May 22 16:51:44 2022 -0400

    asahi: Guard against encoder overflows
    
    We don't seem to hit this yet, but it's possible so add an assert to
    rule it out for failing tests.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d0d27aac771ed53a5198b8b4607d01c7dd2f176
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat May 21 22:37:14 2022 -0400

    asahi: Allocate a larger segment list
    
    This ought to be dynamically allocated but because this is macOS kernel
    UABI only gunk, let's just hack around it...
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac09dcd358bcbf9a87b489c4b98469d7e5f07ee9
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat May 21 21:44:27 2022 -0400

    asahi: Handle RECT textures as 2D
    
    Rectangle textures are just 2D textures with unnormalized coordinates,
    but we already handle unnormalized coordinates in the sampler state. So
    we just need to alias RECT and 2D.
    
    Fixes GALLIUM_HUD.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=689be69681c495163eb6c2164b5735508ce44705
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun May 8 21:12:47 2022 -0400

    asahi: Fix pipeline decoding
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a1ee708a449390e7809d3eb5221b73224e5458e
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun May 8 21:02:20 2022 -0400

    asahi: Improve render target dumping
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6eb62c5f502642c599b312d66a8e1542c9b37eac
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun May 8 20:55:05 2022 -0400

    asahi: Sync some more unknown fields
    
    I don't understand these structs well. Good news, though-- Asahi Lina
    confirmed this is all software-defined crap in the macOS UABI.
    Unfortunately, they seem to correspond to physical registers.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d8227f09d0dcc1e24ad2accca7135106b2d49a41
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Apr 3 12:28:20 2022 -0400

    asahi: Drop some unknowns
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=03a3a7843e55e1efa01b98fbbcabdc6d5aff1414
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Apr 3 11:19:01 2022 -0400

    asahi: Identify suballocated size
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=14d966734f62d866ea8ad883fd3c69b9349299d7
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Apr 3 11:13:01 2022 -0400

    asahi: Identify suballocation mechanism
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca9b1d48fe0ed9def257f3e9c06a9d2561da58dc
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Apr 3 10:34:00 2022 -0400

    asahi: Decode resource allocation requests
    
    We already know much of this structure, let's pretty print to simplify
    our traces.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c120cf141844cc4cf7131b9b6da3d1a1bd530bd
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Apr 3 10:24:50 2022 -0400

    asahi: Decode resource allocation responses
    
    We already know much of this structure, let's pretty print to simplify
    our traces.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5e774ef9ebc36e74f3776f381c984cdd8e726b3
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 22:25:51 2022 -0400

    asahi: Align segment list unknowns with Metal
    
    No observable change.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8da2fdc8890cd39a635f68d55bba60e450d8ee14
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 22:23:57 2022 -0400

    asahi: Compute segment list length
    
    Quiesces agxdecode error introduced in previous commit.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e42e4a3903708afb19143e15c039457318c5cd8
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 22:21:15 2022 -0400

    asahi: Validate segment list length
    
    This is easy now!
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=343f4f886faa9a0b4d1ff831b71623f49da2b5aa
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 22:18:01 2022 -0400

    asahi: Split unknown field in segment list header
    
    Seen as 0x8000.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b12292754d6acd399bf8a1c17f598d895347e63
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 22:14:11 2022 -0400

    asahi: Add segment list pretty printer
    
    Validate all the new expectations and print all the fields. This should
    make differences between the drivers obvious, I hope.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db32b4a0641e8372aac15f01ea50bcd940ca00fc
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 21:55:25 2022 -0400

    asahi: Sync some names with Project Zero
    
    This should clarify a few things I didn't get independently
    investigating the interface. Of coruse, I got other pieces... the sum of
    the parts is better :-)
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e59474cedafa325de18d8f1ebb8841960147541
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun May 8 21:03:31 2022 -0400

    asahi: Identify partial render pipeline
    
    Needed if a partial render is incurred from overflowing the parameter
    buffer (too much geometry).
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=65500b19dfea4eb5982256fc31e76155b347fdcf
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 15:31:40 2022 -0400

    asahi: Implement polygon offset
    
    This is pretty simple now that the hardware is understood. The hardware
    interfaces parallels that of scissors, so the scissor path is reused
    with minor modifications to accommodate the new functionality.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=666f307d41c6ba9a82e9dc79bd7298d322d3fcd7
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 21:09:27 2022 -0400

    asahi: Add a depth bias structure
    
    This is simple and corresponds directly to the Metal inputs. However,
    the alignment is a bit tricky, so let's add formal XML for it.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb760a00c293dd52a72fdd909d450ab2595eb63f
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 15:19:01 2022 -0400

    asahi: Identify depth bias enable bit
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a0c2204013cf35c274818ef3f88d0f3a70861ce
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 15:17:52 2022 -0400

    asahi: Identify "set depth bias index" field
    
    Grouped together with the "set scissor index" field, which is natural.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff84c07b21cd230c78d264728cab6ccd2ee7613f
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 15:12:51 2022 -0400

    asahi: Identify depth bias array
    
    "Inspired" by PowerVR code, by comparison.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a39fb009d2d1c15b239d754c89d9279f8fbf7063
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 15:04:32 2022 -0400

    asahi: Note unknown field
    
    ...used internally with visibility tests, together with a weird
    vertex/compute-like shader used to zero the visibility buffer.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=baa54da7d6026b60ed796df67d5bb72311c9b48a
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 15:04:05 2022 -0400

    asahi: Relax Draw "command" check
    
    Other values in the lower byte seen with multiple draws and
    visibility testing.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d8541d52d254bb430ad34d039ddac38567be9fcb
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 14:58:44 2022 -0400

    asahi: Add XML used for visibility tests
    
    Aka occlusion queries. There is an annoying limitation in the hardware
    (reflected in Metal) that only a single buffer may be bound per render
    pass, with the per-draw settings merely specifying an offset.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=46a7c10349752a837f86624ad88a0bba2779e061
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 14:45:47 2022 -0400

    asahi: Dump "unknown 4a" structure
    
    A few fields are known at least, let's decode them correctly instead of
    falling back to a hex dump.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5e6a5e5856622e01e136f7fbccf8d586400b1d4
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 13:22:04 2022 -0400

    asahi: Identify more depth pipeline fields
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6aadd72bd4d44386c4896d958dfcb8931aa1165f
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 12:35:57 2022 -0400

    asahi: Account for every byte of the cmdbuf
    
    This adds the remaining XML. I don't know how much of this is correct,
    but it nominally accounts for every byte. So there shouldn't be more
    surprises in the command buffer after this.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c61e660323272d078abdf6f7a5bc9f06970538ef
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 12:14:32 2022 -0400

    asahi: Handle 3rd deflake address
    
    Context switching is so broken. Just trying to get closer. Adding some
    XML here to see if we're missing something else obvious.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3be0314e5affdf959052b7b484e9e91eb3ed51c7
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Mon Mar 21 21:25:13 2022 -0400

    asahi: Flush on partial clears
    
    Not the fastest thing, but should be conformant. (Panfrost to this day
    has this effective behaviour...)
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=95a18d1c1c525249768b4d2008770a74563daf11
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Mon Mar 21 21:21:48 2022 -0400

    asahi: Pass depth/stencil clear values to firmware
    
    These need to be format-packed, but as we only support Z32F_S8 right
    now, that's trivial.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=43f6c08a3bf5ec3d0556e558da130da1b1f478d1
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Mon Feb 21 20:02:41 2022 -0500

    asahi: Handle uncompressed Z32F depth buffers
    
    This uses a subset of the depth/stencil infrastructure we built out to
    support writing back tiled, uncompressed Z32F depth buffers to memory.
    Texturing from this format is already supported.
    
    This gets glmark2 -bshadow working.
    
    v2: Fix partial renders
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c955dd726e6ff9f93ed457bafb67f35499baf353
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Mon Mar 21 21:11:47 2022 -0400

    asahi: Don't store to unbound render targets
    
    Otherwise we have a state leak with depth-only attachments, as in
    glmark2 -bshadow.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0fc622be584f232110fd5799effc6edc914511a
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Mon Mar 21 20:56:59 2022 -0400

    asahi: Validate depth/stencil formats
    
    Don't go advertising formats we don't actually support.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6c809d767c57ff3145df541387f1542cb8c5610
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Apr 2 11:58:04 2022 -0400

    asahi: Use z24_in_z32f lowering
    
    Thanks Dave!
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ea174f38c349652630ccf256d6ce40d5562c691
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Mon Mar 21 21:31:53 2022 -0400

    asahi: Run lower_blend for all fragment shaders
    
    Unify the paths so that colour masks are respected even when regular
    blending is off (or when logic ops are used!) Fixes
    
    dEQP-GLES2.functional.color_clear.masked_rgb
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>



More information about the mesa-commit mailing list