Mesa (main): 30 new commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 18 23:59:56 UTC 2022


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=01d1bf62283f28742c46ca3692868703b15a55bf
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 16:32:20 2022 -0500

    asahi: Wire in pure integer texture formats
    
    Passes dEQP-GLES3.functional.texture.format.sized.2d.r*
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fded99b1c5c29f7ffd3af8e11290b5335b6e7d2b
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 15:04:51 2022 -0500

    asahi: Support LOD clamps
    
    Passes:
    
       dEQP-GLES3.functional.texture.mipmap.2d.min_lod.*
       dEQP-GLES3.functional.texture.mipmap.2d.max_lod.*
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc3e98e2017ff78a142c24f62b3e43cd104a840b
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 15:04:45 2022 -0500

    asahi: Identify minimum/maximum LOD fields
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6554790dfb348ca1f62a2ef0999e2d99cc7daf25
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 15:03:25 2022 -0500

    asahi: Add LOD clamp packing unit tests
    
    With GTest.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e3a5c1b478eaf719577fc990898da5d67f8342a4
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 15:04:08 2022 -0500

    asahi: Add LOD type
    
    Automatically packs and unpacks float <==> clamped 4:6 fixed point, used
    for min/max LOD fields on the Sampler descriptor.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db93090ffc36acfeb4c70617712378b9e09cd434
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 15:02:26 2022 -0500

    asahi: Allow GenXML to be used in C++
    
    C++ requires explicit casts from integers to enums. Fixes errors like
    the following when trying to use Asahi GenXML from a GTest unit test.
    
    src/asahi/lib/agx_pack.h:554:23: error: assigning to 'enum agx_channels' from incompatible type 'uint64_t' (aka 'unsigned long long')
       values->channels = __gen_unpack_uint(cl, 0, 6);
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=055c5a59f8dc7a7ba7b60772b2659f5f978ca7ce
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 11:33:51 2022 -0500

    agx: Round and clamp array indices
    
    Conforming with the GLSL spec. Fixes:
    
    dEQP-GLES3.functional.shaders.texture_functions.texture.sampler2darray_fixed_fragment
    
    (and probably others)
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a822b7b6cceb4c893ea7fab679bc3b51552d119b
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 17:38:33 2022 -0500

    agx: Naturally align uniform pushes
    
    Required to pack correctly, e.g if we push a 16-bit value then a 64-bit
    value.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c2bbb470ac4b2fa0672c28aab080ea69658c9e5
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 17:38:24 2022 -0500

    agx: Add agx_size_align_16 helper
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9aeb5156bc6432ca701a00023e8edf97b5245cbd
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 17:37:56 2022 -0500

    agx: Add typed move helper
    
    Useful for u2u16 in lowering code.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=830d16e9f09a02e121048e3f20c4595666cad09c
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 17:39:08 2022 -0500

    asahi: Add AGX_PUSH_ARRAY_SIZE_MINUS_1
    
    Required to clamp array indices against the array sizes per the GLSL
    spec. Metal also does this, implying it's required by the hardware for
    correct operation.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b4ea2fd3802e3b0650db03134a554dac42136ec
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Tue Jan 18 19:04:23 2022 -0500

    asahi: Implement texturing with non-zero start level
    
    Unsure if this comes up anywhere.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=11072cfd21077e2715be340bb8dff988295a39fd
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Tue Jan 18 19:01:19 2022 -0500

    asahi: Handle reloads of specific cube/mipfaces
    
    The texture descriptor we construct for reloading needs to respect the
    surface's texture/layer selection. Fix exactly the same bug as
    b8c31ac06d3 ("lima: fix glCopyTexSubImage2D").
    
    Fixes:
    
        dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.2d_rgb
        dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.2d_rgba
        dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.cube_rgb
        dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.cube_rgba
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=062ca49ca7a252b281b98d1cd7540b454b3f0731
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Tue Jan 18 19:00:08 2022 -0500

    asahi: Add agx_map_texture_{cpu,gpu} helpers
    
    Streamline access to particular layer/levels. These patterns show up
    across the driver and are easy to screw up, so add a helper.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8bf729f8a528c893fa00440756658a50f703c09
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Tue Jan 18 14:16:12 2022 -0500

    asahi: Support 2D array and 3D textures
    
    As far as I can tell, these *must* be tiled. Other than that, the
    implementation is completely routine. Passes
    
    dEQP-GLES3.functional.texture.format.unsized.*2d_array*
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=204e2ffe1bce4ef81605ae443e7c39cc13b82dd0
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 10:07:40 2022 -0500

    asahi: Track mipmap state explicitly
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e714fae2633e7a72d3312f3151613b032b4f79ea
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 10:07:12 2022 -0500

    asahi: Pass correct tile shift to tiling routines
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f10ffd6e24b6980cf95feb5d79c5ac0347bdb9e
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 10:06:48 2022 -0500

    asahi: Handle page alignment of miptrees
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c490cd4e3da4a0f484f97bc339beb43950d110c
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 10:06:00 2022 -0500

    asahi: Align linear texture's strides to 64 bytes
    
    Required to pack the stride, and should improve cache performance.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d957011ffbb3434596bb04049fbef1932935379
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 10:05:40 2022 -0500

    asahi: Align allocations to effective tile size
    
    May be smaller than 64x64.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=25f48996a613812e6a9ef86b3a50c1b43153781c
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 16:22:44 2022 -0500

    asahi: Rename bpp to blocksize
    
    Will matter for block compressed formats.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=856f64de2499f7f0d547112cc2f6e273e1a97386
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Tue Jan 18 18:31:18 2022 -0500

    asahi: Allow tiling of all bpps
    
    Use the usual macro trick via Panfrost. Fixes textures with formats with
    non-32-bit bpp, including:
    
    dEQP-GLES2.functional.texture.specification.basic_teximage2d.*
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2028873ef641056948eaec2610487f58f8802b47
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Jan 16 20:03:28 2022 -0500

    asahi: Dynamically configure tile size
    
    We need to shrink the tile size when using small images (including
    due to mipmapping) or when using large block sizes.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d103d64df6c2b45f917f452c4c29cbb73bebd74c
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 10:01:27 2022 -0500

    asahi: Add some notes to XML about mipmapping
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aea6d7f17f93c43e70891fd4d77637a37738c8a1
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 09:57:48 2022 -0500

    asahi: Handle tiling of 2D arrays and 3D
    
    Nothing special required, just need to respect the Z coordinate.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=06b2d9766634588f28e33f9b90c71c039992507a
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Tue Jan 18 13:13:48 2022 -0500

    asahi: Add 2D Array and 3D texture dimensions
    
    Add to XML and translate in the driver.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=266382d252d6b63bfc6d590dcccc7c402196225d
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 09:30:36 2022 -0500

    asahi: Respect mip level when rendering
    
    Use hardware mip level field.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1a3e21a4de30b80873283d0aa2d2fd16c7ec7ea3
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 09:30:26 2022 -0500

    asahi: Identify Level field of render target descriptor
    
    Hardware support for rendering into nonzero mip levels.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=65368d2f9aa926ac72f20317c4d45577be420c11
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Jan 16 20:02:59 2022 -0500

    asahi: Don't redefine MIN2/MAX2
    
    The tiling function was written before the Mesa driver...
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=570004175f45aa65ee27f09f7cbcbf763711efc6
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sun Feb 6 09:58:02 2022 -0500

    asahi: Streamline modifier selection
    
    We can only use linear for 2D images, not even 2D arrays. Even for 2D
    images, we only want to use linear if:
    
    * We are required to use linear due to window system requirements.
    * The texture is streaming.
    
    Otherwise, we want to use tiled textures. (Or better, compressed, but we
    don't support that yet.)
    
    Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>



More information about the mesa-commit mailing list