mesa/src
David Rosca c638e61ef5 frontends/va: Map decoder and postproc surfaces for reading
If application requests to map surface that was most recently used
as decoder or postproc target and also doesn't explicitly set the
map flags (vaMapBuffer2) it's very likely the intent is to read from
this surface, so we need to map it as such.

This fixes regression on radeonsi where mapping NV12 surfaces for
reading would fail with applications using vaDeriveImage. The reason
for this is that the VA frontend doesn't allow vaDeriveImage for
interlaced surfaces so the applications would use vaGetImage fallback,
but radeonsi doesn't allocate NV12 surfaces as interlaced anymore.

This also fixes mapping other formats surfaces (P010, RGBx, ...)
for reading, which never worked before.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9935
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10048

Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26008>
2023-11-03 17:04:00 +00:00
..
amd ci/radeonsi: add another flake 2023-11-03 09:20:32 +00:00
android_stub
asahi asahi: Fix tools=all builds 2023-11-02 18:51:57 -04:00
broadcom v3d/ci: Remove minetest trace 2023-11-02 21:46:55 +00:00
c11 util/meson: Getting mesa util core to be self contained 2023-08-02 03:41:24 +00:00
compiler nir: don't take the derivative of the array index in nir_lower_tex 2023-11-03 12:53:11 +00:00
drm-shim compiler,vulkan,drm-shim: Remove unused include directories from meson.build 2023-10-27 01:35:10 +00:00
egl egl: fix leaking drmDevicePtr in _eglFindDevice 2023-10-25 12:37:30 +00:00
etnaviv etnaviv: drm: Be able to mark end of context init 2023-10-23 14:56:48 +00:00
freedreno freedreno/drm: Fix race in zombie import 2023-11-03 15:43:08 +00:00
gallium frontends/va: Map decoder and postproc surfaces for reading 2023-11-03 17:04:00 +00:00
gbm gbm: delete some zink handling 2023-10-09 18:43:09 +00:00
getopt
glx glx: fix automatic zink fallback loading between hw and sw drivers on MacOS 2023-11-02 15:08:17 +00:00
gtest gtest: backport ansi color fix 2023-08-18 21:33:14 +00:00
imagination pvr: Update AM62 DSS compatible string to match upstream 2023-11-01 09:23:25 +00:00
imgui
intel intel/compiler: migrate WA 14013672992 to use WA framework 2023-11-02 16:39:25 +00:00
loader dri: added build dependencies for systems using non-standard prefixed X11 libs. 2023-11-02 15:08:17 +00:00
mapi mesa: add GL_APPLE_sync support 2023-10-20 17:20:11 +00:00
mesa mesa/st/texture: match width+height for texture downloads of cube textures 2023-10-27 00:44:49 +00:00
microsoft dzn: Use vk_properties helper 2023-11-03 00:00:13 +00:00
nouveau nvk: Implement VK_EXT_dynamic_rendering_unused_attachments 2023-10-19 14:06:07 +00:00
panfrost ci/panfrost: run T860 traces as intended (nightly job) 2023-10-31 01:00:25 +00:00
tool radeonsi: Add tracepoints in radeonsi driver 2023-10-19 16:16:16 +00:00
util util/rb_tree: Add augmented trees and interval trees 2023-11-02 21:03:46 +00:00
virtio venus: fix query feedback batch leak and race upon submission 2023-11-02 17:46:32 +00:00
vulkan compiler,vulkan,drm-shim: Remove unused include directories from meson.build 2023-10-27 01:35:10 +00:00
.clang-format util/rb_tree: Add augmented trees and interval trees 2023-11-02 21:03:46 +00:00
meson.build nvk: add vulkan skeleton 2023-08-04 21:31:52 +00:00