Timo Aaltonen pushed to branch debian-experimental at X Strike Force / lib / 
mesa


Commits:
4c023349 by Eric Engestrom at 2023-11-18T21:10:57+00:00
.pick_status.json: Update to f05688aa3299a27430119b27e45181a6f415bff8

- - - - -
0ecb0ec4 by Tapani Pälli at 2023-11-18T21:12:05+00:00
anv/drirc: add option to disable FCV optimization

There are rendering issues with FCV on DG2 and Unreal engine 5.1,
patch adds option to disable fcv in drirc.

Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.pa...@intel.com>
Reviewed-by: Rohan Garg <rohan.g...@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26169>
(cherry picked from commit 01046cd6add64323a2914ddffa2277f63d92b73e)

- - - - -
5952462e by Chia-I Wu at 2023-11-18T21:15:10+00:00
radv: fix image view extent override for astc

When doing ASTC decoding, the image has format VK_FORMAT_ASTC_*, the
internal plane 1 has format VK_FORMAT_R8G8B8A8_UNORM, and the view has
format VK_FORMAT_R8G8B8A8_UINT.  It does not need the override for
compressed formats.

Fixes: f97b449e9e3 ("radv: integrate meta astc compute decoder to 
radv")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26106>
(cherry picked from commit 2533d0a0e29cb85e98aaaf44e665e091bf36d980)

- - - - -
dd46e0b6 by Samuel Pitoiset at 2023-11-18T21:15:12+00:00
radv: fix a descriptor leak with debug names and host base descriptor set

vk_object_base_finish() needs to be called on the descriptor set in
order to free the debug names.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10098
Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26088>
(cherry picked from commit 4239e13ff658f7e4746779b8b4c4954b9437533c)

- - - - -
e8c975a6 by Samuel Pitoiset at 2023-11-18T21:15:13+00:00
radv: add a missing async compute workaround for Tonga/Iceland

After digging into PAL code again, I figured that Tonga/Iceland are
both affected by a hw bug related to async compute dispatches.

The solution is to change the "threadgroup" dimension mode to the
"thread" dimension mode unconditionally.

This should fix a bunch of issues related to RADV_DEBUG=nocompute on
these GPUs.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7551
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6334
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4679
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26207>
(cherry picked from commit ec82b4294432aa6da40517655a4f8af2767176a2)

- - - - -
61bd4b33 by José Expósito at 2023-11-18T21:15:15+00:00
zink: fix dereference before NULL check

The `sv->image_view` pointer is dereference before checking whether it's
NULL or not.
Check for NULL before dereferencing it to avoid a possible crash.

Fixes: 9de455bc4323 ("zink: check for sampler view existence during
zink_rebind_all_images()")

Reviewed-by: Dave Airlie <airl...@redhat.com>
Signed-off-by: José Expósito <jexpo...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26140>
(cherry picked from commit 83ed419cd0a55fc0ee9f5ccce8f7ac03711bbf71)

- - - - -
c573f243 by Tatsuyuki Ishi at 2023-11-18T21:15:16+00:00
zink: Fix missing sparse buffer bind synchronization.

goto oopsies.

Fixes: d1456a6b0ad ("zink: add semaphore handling for sparse binds")
Reviewed-by: Dave Airlie <airl...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26171>
(cherry picked from commit 3ee283e45557066c29fdb2000f7627d8996aeed0)

- - - - -
1a238bec by Tatsuyuki Ishi at 2023-11-18T21:15:16+00:00
zink: Fix waiting for texture commit semaphores.

The commit was always being treated as failed...

Fixes: d1456a6b0ad ("zink: add semaphore handling for sparse binds")
Reviewed-by: Dave Airlie <airl...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26171>
(cherry picked from commit 94e867e4a682305e28efbacafc01551172f5a11a)

- - - - -
5542b17f by Robert Mader at 2023-11-18T21:18:01+00:00
util: Add new helpers for pipe resources

They will be handy for drivers supporting multi-planar formats.

Cc: mesa-stable
Reviewed-by: Italo Nicola <italonic...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26109>
(cherry picked from commit d679154dc021feb1333bf7207d8a26d9db75b921)

- - - - -
6e218edd by Robert Mader at 2023-11-18T21:18:18+00:00
panfrost: Support parameter queries for main planes

In order to return correct offsets, strides and possibly other
parameters. This is relevant for formats like NV12 and P010 where
the second plane, when produced by the V4L2 decoder, uses the
same FD like the first one, but with an offset.

Analogous to 7a7e577d.

Also use the new helper to get the number of planes.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10094
Cc: mesa-stable
Reviewed-by: Italo Nicola <italonic...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26109>
(cherry picked from commit 5f4253e096de76651d3bd2bbd447abb1e9cb624f)

- - - - -
40255315 by José Expósito at 2023-11-18T21:18:19+00:00
zink: allow software rendering only if selected

In environments where 3D acceleration is not available, like in a VM,
the behavior before commit 8cd44b884387 ("egl: add automatic zink
fallback loading between hw and sw drivers") was to fallback to swrast.

This was the output of `eglinfo` in that situation:

    $ eglinfo
    [...]
    Wayland platform:
    EGL driver name: swrast
    OpenGL core profile renderer: llvmpipe (LLVM 17.0.4, 256 bits)

However, after commit 8cd44b884387 ("egl: add automatic zink fallback
loading between hw and sw drivers") Zink support is tested before
falling back to swrast.
Since the system doesn't support 3D acceleration, Zink + software
rendering is used instead of swrast causing issues like the ones
described in #10146.

In this case, `eglinfo` prints:

    $ eglinfo
    [...]
    Wayland platform:
    EGL driver name: zink
    OpenGL core profile renderer: zink Vulkan 1.3(llvmpipe (LLVM 17.0.4,
    256 bits) (MESA_LLVMPIPE))

This patch ensures that Zink + software rendering is used only when the
user opts-in by setting `LIBGL_ALWAYS_SOFTWARE` or `D3D_ALWAYS_SOFTWARE`
and swrast is used otherwise.

After the patch, the output of `eglinfo` is identical to the one before
the regression:

    $ eglinfo
    [...]
    Wayland platform:
    EGL driver name: swrast
    OpenGL core profile renderer: llvmpipe (LLVM 17.0.4, 256 bits)

Resolves: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10146
Fixes: 8cd44b884387 ("egl: add automatic zink fallback loading between
hw and sw drivers")

Reviewed-by: Michel Dänzer <mdaen...@redhat.com>
Signed-off-by: José Expósito <jexpo...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26220>
(cherry picked from commit 2a71f06f2938678d89d5ed1372cda6a7b55d964d)

- - - - -
f80e96eb by Lionel Landwerlin at 2023-11-18T21:18:20+00:00
intel/fs: rerun divergence analysis prior to convert_from_ssa

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9964
Cc: mesa-stable
Reviewed-by: Ian Romanick <ian.d.roman...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26235>
(cherry picked from commit 6dbb5f1e07b11be0cc6ac764bf1b51feaa7fa623)

- - - - -
317998e3 by Lionel Landwerlin at 2023-11-18T21:18:21+00:00
intel/nir/rt: fix reportIntersection() hitT handling

We're currently updating the hitT value in the traversal result with
the hitT value from reportIntersection(), but this is not correct.

First the hitT value of reportIntersection() should update the
gl_RayTmaxEXT value (maps to brw_nir_rt_mem_ray_defs::t_far).

Second the hitT determined by traversal should only be updated if the
reportIntersection() hitT value has updated the gl_RayTmaxEXT and that
the new gl_RayTmaxEXT is smaller than the determined hitT value from
traversal.

Reviewed-by: Ivan Briano <ivan.bri...@intel.com>
Fixes: 303378e1dd ("intel/rt: Add lowering for combined 
intersection/any-hit shaders")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25146>
(cherry picked from commit 4eb4197d27aed6f5e71195a971145b2945d78330)

- - - - -
c972359d by Boris Brezillon at 2023-11-18T21:18:23+00:00
panfrost: Flag the right shader when updating images

Fixes: fab1fabb4f0b ("panfrost: Dirty track fragment images")
Signed-off-by: Boris Brezillon <boris.brezil...@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-l...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26221>
(cherry picked from commit 8ed471a339543072e0683308ac1ee1a4faad41fb)

- - - - -
5f12ed07 by Lionel Landwerlin at 2023-11-18T21:18:41+00:00
anv: fix CC_VIEWPORT pointer dirty after blorp/simple-shaders

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Fixes: 50f6903bd9 ("anv: add new low level emission & dirty state 
tracking")
Reviewed-by: Ian Romanick <ian.d.roman...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26247>
(cherry picked from commit 1257d08bcb9d7068ec24acbcf281a388e7ff015f)

- - - - -
64dee101 by Lionel Landwerlin at 2023-11-18T21:18:42+00:00
anv: fix dirty state tracking for 3DSTATE_PUSH_CONSTANT_ALLOC

ANV_CMD_DIRTY_PIPELINE also includes reprogramming of
3DSTATE_PUSH_CONSTANT_ALLOC_* instructions.

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Fixes: 50f6903bd9 ("anv: add new low level emission & dirty state 
tracking")
Reviewed-by: Ian Romanick <ian.d.roman...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26247>
(cherry picked from commit 9689607f10bb150df0a75d189fc02b522410887f)

- - - - -
0ac25299 by Rhys Perry at 2023-11-18T21:18:43+00:00
radv: add radv_disable_trunc_coord option

Signed-off-by: Rhys Perry <pendingchao...@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25911>
(cherry picked from commit 4d2a3b95730c4781234096778043f987234b6a4c)

- - - - -
a5931818 by Rhys Perry at 2023-11-18T21:18:45+00:00
radv: enable radv_disable_trunc_coord for vkd3d-proton/DXVK

This fixes diagonal SSAO artifacts in some games.

Signed-off-by: Rhys Perry <pendingchao...@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9253
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6395
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25911>
(cherry picked from commit 9e9eb87dd3a2ffe782ac85998a69623f59306caf)

- - - - -
f62a7df6 by Eric Engestrom at 2023-11-18T21:18:50+00:00
egl/dri2: increase NUM_ATTRIBS to fit all the attributes

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26234>
(cherry picked from commit f011410c1c480829dde58f285023a3768686c9ee)

- - - - -
ef07bc11 by Simon Ser at 2023-11-18T21:20:37+00:00
egl: extract EGLDevice setup in dedicated function

Extract the logic responsible for populating disp->Device via
_eglFindDevice(). This isn't much for now but will grow in a
following commit.

No functional changes.

Signed-off-by: Simon Ser <cont...@emersion.fr>
Reviewed-by: Iago Toral Quiroga <ito...@igalia.com>
Reviewed-by: Leandro Ribeiro <leandro.ribe...@collabora.com>
Tested-by: Iago Toral Quiroga <ito...@igalia.com>
Tested-by: Alejandro Piñeiro <apinhe...@igalia.com>
Backport-to: 23.3
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26205>
(cherry picked from commit b4ec0b51ce47d87d21609444dddd50c91968f26d)

- - - - -
62455a9a by Simon Ser at 2023-11-18T21:20:38+00:00
egl: move dri2_setup_device() after dri2_setup_extensions()

dri2_setup_device() will depend on the extensions being set up in
the next commit.

None of the code in-between depends on disp->Device AFAIU.

Signed-off-by: Simon Ser <cont...@emersion.fr>
Reviewed-by: Iago Toral Quiroga <ito...@igalia.com>
Reviewed-by: Leandro Ribeiro <leandro.ribe...@collabora.com>
Tested-by: Iago Toral Quiroga <ito...@igalia.com>
Tested-by: Alejandro Piñeiro <apinhe...@igalia.com>
Backport-to: 23.3
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26205>
(cherry picked from commit 9b70096f5e9ab7be23abc9154c3fb83b710ccd6b)

- - - - -
3db740ff by Simon Ser at 2023-11-18T21:20:39+00:00
egl: ensure a render node is passed to _eglFindDevice()

_eglFindDevice() will fail if it's not provided a render node:
the EGLDevice list only contains one entry per render node, plus
the special software device. Passing a primary node for a
display-only device will not work.

Signed-off-by: Simon Ser <cont...@emersion.fr>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10142
Reviewed-by: Iago Toral Quiroga <ito...@igalia.com>
Reviewed-by: Leandro Ribeiro <leandro.ribe...@collabora.com>
Tested-by: Iago Toral Quiroga <ito...@igalia.com>
Tested-by: Alejandro Piñeiro <apinhe...@igalia.com>
Fixes: 2be404f5571a ("egl: error out if we can't find an EGLDevice in 
_eglFindDevice()")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26205>
(cherry picked from commit 0f978c34410283558afe9de5dab007f63a763c5e)

- - - - -
0b3f2e02 by Matt Turner at 2023-11-18T21:22:33+00:00
util: Include stdint.h in libdrm.h

drmGetDevices2()'s first parameter is a uint32_t.

Fixes: e05abb13455 ("util: Add a simple no-op libdrm shim")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26265>
(cherry picked from commit 5022a26b50ef912835049a32ac3904ea77656e43)

- - - - -
1a198151 by Eric Engestrom at 2023-11-22T08:39:48+00:00
.pick_status.json: Update to f39ed0063b4cd3e5a71efad2d43ce31f574c698d

- - - - -
16361af8 by Erico Nunes at 2023-11-22T08:42:37+00:00
v3dv: Rework to remove drm authentication for wsi

For Wayland wsi allocations, v3dv used the wl_drm protocol, which is now
being phased out in favor of dmabuf feedback.
wl_drm is used to figure out the display device (in v3dv assumed to be
vc4) and then to authenticate with the Wayland compositor in order to
allocate scanout-able buffers (in this case, dumb buffers) directly at
the display device.
Recent commit 88c03ddd34 changed the behavior of the wsi code, and
wl_drm is now passing the render device instead, which broke Wayland
wsi.
It turns out that the authentication code is not really needed and since
we would like to remove wl_drm usage and the master device is assumed to
be vc4 anyway, we can just remove some unneeded device-specific wsi code
and get Vulkan Wayland wsi back to work.

Fixes: 88c03ddd345 ("egl/drm: get compatible render-only device fd for 
kms-only device")

Signed-off-by: Erico Nunes <nunes.er...@gmail.com>
Reviewed-by: Iago Toral Quiroga <ito...@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26200>
(cherry picked from commit 898700ca647b2de0eecff864b6b0a4cbeb935840)

- - - - -
4e9ef478 by Lionel Landwerlin at 2023-11-22T08:42:40+00:00
intel/perf: fix querying of configurations

Using the unsized data field is incorrect. The data is located behind
the entire drm_i915_query_perf_config structure.

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Cc: mesa-stable
Reviewed-by: Rohan Garg <rohan.g...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26285>
(cherry picked from commit f9bab3566bcfbf4d33bcbb9fb8d5e8d416cb5674)

- - - - -
0f944319 by Tapani Pälli at 2023-11-22T08:42:41+00:00
drirc: Set limit_trig_input_range option for Valheim

Fixes ocean rendering in Valheim.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10174
Signed-off-by: Tapani Pälli <tapani.pa...@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26295>
(cherry picked from commit aba00ff391b9fe9e63e2a8b6ad807f338ad7a6a6)

- - - - -
ab01f445 by Georg Lehmann at 2023-11-22T08:42:53+00:00
aco/sched: treat p_dual_src_export_gfx11 like export

This prevents the scheduler from moving the dual source export above mrtz
export, which caused hangs.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10173

Cc: mesa-stable
Reviewed-by: Rhys Perry <pendingchao...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26317>
(cherry picked from commit 0a5d3ac8d2b245e8b3f3589d3ade3de7356fe637)

- - - - -
ac66a49b by Connor Abbott at 2023-11-22T08:46:26+00:00
tu: Fix re-emitting VS param state after it is re-enabled

We need to always re-emit it if it was disabled. Fixes vertex/instance
offset in a direct draw after an indirect draw.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26148>
(cherry picked from commit 6be6b4ca711b157d0d92b4942b19eb74e71ed04f)

- - - - -
c05aadcf by Eric Engestrom at 2023-11-24T17:15:13+00:00
.pick_status.json: Update to b07a58157d0b110dbc09a42cffe7046c3200dd3b

- - - - -
142c3337 by David Rosca at 2023-11-24T17:15:18+00:00
util/rbsp: Fill bits twice if reading more than 16 bits

vl_rbsp_fillbits may fill less than 32 bits if it removes emulation
prevention bytes, but will fill at least 16 bits. We need to call it
twice when reading more than 16 bits.

This fixes parsing H264 SPS packed header in va frontend when emulation
prevention bytes are at position where 32 bit values are read.

Cc: mesa-stable

Reviewed-by: Leo Liu <leo....@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26276>
(cherry picked from commit 73d69ef1e6b013f923ec459c789976570baaf447)

- - - - -
ff6ed814 by Iván Briano at 2023-11-24T17:15:20+00:00
anv: use the right vertexOffset on CmdDrawMultiIndexed

Fixes: c70ef757e63 ("anv: Use extended parameters on Gen11+")

Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26327>
(cherry picked from commit 43cb4cb6dde1e8fdbe609c42b47e0f27d8411982)

- - - - -
c73c7c0b by Samuel Pitoiset at 2023-11-24T17:15:21+00:00
radv: disable TC-compatible HTILE on Tonga and Iceland

According to RadeonSI, TC-compat HTILE have issues on Tonga/Iceland
(first GFX8 chips) and a bunch of games seem to have issues.

Let's disable it instead of using a feature that is known broken.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7101
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3894
Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26204>
(cherry picked from commit ab3460311509fbc3e1ff36647a21cffe7710962a)

- - - - -
2d486862 by Samuel Pitoiset at 2023-11-24T17:15:22+00:00
radv: set radv_invariant_geom=true for War Thunder

War Thunder has native Vulkan support.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10186
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26334>
(cherry picked from commit d9f312b86aa979e237f2de3dc3f025e367cfe7b6)

- - - - -
5e1fe5d0 by Samuel Pitoiset at 2023-11-24T17:15:23+00:00
radv: do not set OREO_MODE to fix rare corruption on GFX11

Ported from RadeonSI 3f108e7615213051466af4ed688e94ce6ddde065.
Seems to be a recommendation from the AMD hw team.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26333>
(cherry picked from commit ad7efdea6e30c46e1b8b80672cac4f6042956df6)

- - - - -
090160db by Robert Mader at 2023-11-24T17:15:24+00:00
vc4/resource: Support offset query for multi-planar planes

This is required in order to return the correct value for
`gbm_dri_bo_get_offset()` for e.g. the second plane of a NV12 image.

Use the newly introduced `util_resource` helper and, while on it, also
add support for `gbm_bo_get_plane_count()`.

Cc: mesa-stable
Reviewed-by: Juan A. Suarez <jasua...@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26283>
(cherry picked from commit cb8cdab928ff2302bef00b341914168c78a89a7c)

- - - - -
b52742c0 by Robert Mader at 2023-11-24T17:15:25+00:00
v3d/resource: Support offset query for multi-planar planes

This is required in order to return the correct value for
`gbm_dri_bo_get_offset()` for e.g. the second plane of a NV12 image.

Use the newly introduced `util_resource` helper and, while on it, also
add support for `gbm_bo_get_plane_count()`.

Cc: mesa-stable
Reviewed-by: Juan A. Suarez <jasua...@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26283>
(cherry picked from commit 2404483706f4396920e94f7abc80368b7d25a965)

- - - - -
53bafbe4 by Pierre-Eric Pelloux-Prayer at 2023-11-24T17:35:27+00:00
mesa: restore call to _mesa_set_varying_vp_inputs from 
set_vertex_processing_mode

Otherwise ctx->VertexProgram._VaryingInputs might not be up to date.

We can't do this in update_program because this breaks 
vbo_save_playback_vertex_list_gallium:

  const GLbitfield enabled = node->enabled_attribs[mode];
  _mesa_set_varying_vp_inputs(ctx, enabled);              <-- update 
_VaryingInputs

  if (ctx->NewState)
     _mesa_update_state(ctx);                             <-- calls 
update_program, reverting the
                                                              change made above

Fixes: c97961a855a ("mesa: fix 38% decrease in display list performance of 
Viewperf2020/NX8_StudioAA")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9441
Reviewed-by: Marek Olšák <marek.ol...@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25956>
(cherry picked from commit 64352ae8e4341d57504478cf2e6315041f13d5e0)

- - - - -
c03abd2d by Eric Engestrom at 2023-11-24T19:40:33+00:00
VERSION: bump for 23.3.0-rc5

- - - - -
d89a6f8b by Timo Aaltonen at 2023-11-29T16:18:40+02:00
update changelog

- - - - -
1b5bc9a9 by Timo Aaltonen at 2023-11-29T16:18:45+02:00
Merge branch 'upstream-experimental' into debian-experimental

- - - - -
6ca344fa by Timo Aaltonen at 2023-11-29T16:19:39+02:00
version bump

- - - - -
c7b78fd2 by Timo Aaltonen at 2023-11-29T18:24:48+02:00
release to experimental

- - - - -


24 changed files:

- .pick_status.json
- VERSION
- debian/changelog
- src/amd/common/ac_gpu_info.c
- src/amd/common/ac_gpu_info.h
- src/amd/compiler/aco_scheduler.cpp
- src/amd/vulkan/nir/radv_nir_apply_pipeline_layout.c
- src/amd/vulkan/radv_cmd_buffer.c
- src/amd/vulkan/radv_descriptor_set.c
- src/amd/vulkan/radv_device.c
- src/amd/vulkan/radv_image.c
- src/amd/vulkan/radv_instance.c
- src/amd/vulkan/radv_pipeline.c
- src/amd/vulkan/radv_private.h
- src/amd/vulkan/radv_sampler.c
- src/amd/vulkan/radv_shader.h
- src/broadcom/vulkan/v3dv_device.c
- src/broadcom/vulkan/v3dv_private.h
- src/broadcom/vulkan/v3dv_wsi.c
- src/egl/drivers/dri2/egl_dri2.c
- src/egl/drivers/dri2/egl_dri2.h
- src/egl/drivers/dri2/platform_android.c
- src/egl/drivers/dri2/platform_drm.c
- src/egl/drivers/dri2/platform_wayland.c


The diff was not included because it is too large.


View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/compare/c5a6354f1954f0c147247b58c5ac324c5777c674...c7b78fd279f72ffbb024a8bbd51c3ffc2078c123

-- 
View it on GitLab: 
https://salsa.debian.org/xorg-team/lib/mesa/-/compare/c5a6354f1954f0c147247b58c5ac324c5777c674...c7b78fd279f72ffbb024a8bbd51c3ffc2078c123
You're receiving this email because of your account on salsa.debian.org.


Reply via email to