Mike Blumenkrantz
ea1855caba
gbm: inline DRI_IMAGE_DRIVER
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:32 +00:00
Mike Blumenkrantz
703261c393
egl/drm: always expose EXT_buffer_age
...
this is implemented in swrast
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:32 +00:00
Mike Blumenkrantz
03e88c0633
egl: simplify a non-swrast conditional
...
functionally identical
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:32 +00:00
Mike Blumenkrantz
44b843b68a
egl: collapse driCreateNewDrawable conditional
...
these are all the same case
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:32 +00:00
Mike Blumenkrantz
f43883cf67
egl/gbm: rip out DRI_SWRAST
...
the swrast struct member is now a bool for consistency
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
d9eae369e9
egl: inline DRI_SWRAST
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
b1b8ac6b34
dri: make driSWRastQueryBufferAge public
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
789df29fc3
egl/gbm: remove DRI_KOPPER remnants
...
kopper struct member is still useful as a check, so replace it accordingly
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
5f8dec8f7c
egl: inline DRI_KOPPER
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
1d86bc8791
egl: delete DRI_MESA remnants
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
0d9f69de2c
gbm: delete DRI_MESA remnants
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
0f8a85487b
egl: inline DRI_MESA
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
f51857aac2
gbm: inline DRI_MESA
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
4105f0f001
dri: publicize dri_query_compatible_render_only_device_fd
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
0ae7349e06
egl/gbm: delete remnants of DRI_CORE
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
3698e10356
gbm: inline DRI_CORE usage
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
7732f1aa5d
egl: inline DRI_CORE usage
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
85bf0892f6
egl/dri2: delete unused function
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30472 >
2024-08-02 20:49:31 +00:00
Mike Blumenkrantz
a6d97b0afe
kopper: check swapchain size after possible loader image resize
...
previously the size was checked at the top of the function, but this
ignored cases where the loader might end up resizing the drawable,
resulting in an attempted 0x0 swapchain creation based on stale
geometry
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30487 >
2024-08-02 20:16:42 +00:00
Karmjit Mahil
cf9588bae6
tu: Set TU_ACCESS_CCHE_READ
for transfer ops with read access
...
Transfer ops also use CCHE since they use the same path as
texture access.
This addresses the flakiness seen in
KHR-GL46.shader_storage_buffer_object.advanced-usage-sync-cs
CCHE wasn't being invalidated between the compute op and transfer
op which would sometimes lead to old/invalid data to be copied
in the transfer op.
Fixes: fb1c3f7f5d
("tu: Implement CCHE invalidation")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11458
Signed-off-by: Karmjit Mahil <karmjit.mahil@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30490 >
2024-08-02 16:31:07 +00:00
Mike Blumenkrantz
725d033cd0
dri: only link_whole once
...
Fixes: e678c4d2
("dri: delete __DRI2_RENDERER_QUERY interface")
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30485 >
2024-08-02 15:51:37 +00:00
Martin Krastev
a99fbb2b24
svga/ci: disable vmware farm
...
Disable vmware svga farm for yet more network maintenance
Signed-off-by: Martin Krastev <martin.krastev@broadcom.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30486 >
2024-08-02 15:39:27 +00:00
Karol Herbst
168dc73fa9
nouveau: use nv_device_info directly for dumping push buffers
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
2024-08-02 15:04:41 +00:00
Karol Herbst
1454347c85
nouveau: implement PIPE_PCI caps
...
and also use the already fetched device_id instead of refetching it.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
2024-08-02 15:04:41 +00:00
Karol Herbst
eac61faf84
nouveau: remove nouveau_check_for_uma
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
2024-08-02 15:04:41 +00:00
Karol Herbst
8340f490bf
nvk: use nv_device_uuid
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
2024-08-02 15:04:41 +00:00
Karol Herbst
43365502c4
nouveau: implement driver_uuid and device_uuid
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11592
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
2024-08-02 15:04:41 +00:00
Karol Herbst
826d00617c
nouveau: add nv_device_uuid
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
2024-08-02 15:04:41 +00:00
Karol Herbst
9c15875d4d
nouveau: use nv_devince_info and fill in PCI and type information
...
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
2024-08-02 15:04:41 +00:00
Karol Herbst
fb1763e93c
nouveau/winsys: fix handling of NV_DEVICE_TYPE_IGP
...
It's a PCI device as well, just no discrete VRAM.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
2024-08-02 15:04:41 +00:00
Karol Herbst
740cae64a1
mesa: check for enabled extensions for *UID enums
...
Applications might use them without checking if the extension is supported
and would run into a NULL pointer deref calling the callbacks.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30455 >
2024-08-02 15:04:41 +00:00
Aleksi Sapon
66f48f2216
llvmpipe: half_to_float use LLVM fpext when fp16 is available
...
Generalize the use of LLVM's fpext for converting fp16 <-> fp32
to any target machine that supports fp16, instead of only checking
for a specific x86 extension. This enables the use of fcvtl on Aarch64.
More architectures could be supported by updating lp_has_fp16().
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30267 >
2024-08-02 14:23:03 +00:00
Aleksi Sapon
2db280b208
llvmpipe: much faster sample function cache using RCU pointers
...
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30267 >
2024-08-02 14:23:02 +00:00
Aleksi Sapon
7c6a8973bf
util: const hash_table for some readonly operations
...
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30267 >
2024-08-02 14:23:02 +00:00
Matt Turner
66243e6999
docs: Drop references to LIBGL_DRIVERS_PATH
...
Fixes: 93511c1c5c
("gbm: link directly with libgallium")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11556
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30456 >
2024-08-02 14:08:42 +00:00
Konstantin
cbf07628bc
vtn: Remove dead shader_call_data from all RT stages
...
Having multiple shader_call_data can cause incorrect behavior since the
compiler expects there to be only one shader_call_data variable.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11585
Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de >
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30468 >
2024-08-02 12:30:53 +00:00
Valentine Burley
fb03aed435
tu: Drop tu_vk_format_to_pipe_format helper function
...
All the fomats are properly handled in vk_format_to_pipe_format so this
is no longer needed.
Signed-off-by: Valentine Burley <valentine.burley@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30269 >
2024-08-02 10:11:09 +00:00
Valentine Burley
7fe8033e8b
tu, fdl: Drop custom mapping for 1-plane YCbCr formats
...
This workaround for VK_FORMAT_G8B8G8R8_422_UNORM and VK_FORMAT_B8G8R8G8_422_UNORM
is no longer needed after the formats in vk_format_to_pipe_format now return the
RGB formats since the following commits:
0c03d44093
("util/format: Add G8B8_G8R8_422_UNORM and B8G8_R8G8_422_UNORM formats")
4accbb27a2
("vulkan/format: Translate G8B8G8R8_422_UNORM and B8G8R8G8_422_UNORM properly")
Turnip's behavior is already aligned with the new PIPE_FORMAT names, not what the
old ones would suggest.
Signed-off-by: Valentine Burley <valentine.burley@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30269 >
2024-08-02 10:11:09 +00:00
Daniel Stone
cd961a7e3f
gbm/dri: Remove erroneous assert
...
The user is allowed to pass a list of modifiers including
DRM_FORMAT_MOD_INVALID, meaning that the user is OK with implicit
modifiers. Since merging the DRI interfaces, this assert that we are
never returning an implicit modifier is unnecessary and also wrong. It
was originally added to be super-safe, but we now know that our drivers
work very well with modifiers, so don't need it.
Signed-off-by: Daniel Stone <daniels@collabora.com >
Fixes: 0b16d7ebb9
("dri: Allow INVALID for modifier-less drivers")
Closes : mesa/mesa#11591
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30464 >
2024-08-02 08:40:43 +00:00
Hyunjun Ko
78ff100a52
anv: support h265 encoding
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
eefa886b01
anv/video: initial support for h265 encoding
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
3bd46afac1
anv/query: consider codec when querying the encoding status.
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
22abbb84b7
vulkan/video: adds a bitstream writer of h265 slice header
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
52f678004f
intel/decoder: Handle HCP_PAK_INSERT_OBJECT
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
46e02ee861
intel/genxml: adds a value of reference pic to HCP_SURFACE_STATE
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
7f280e1e93
intel/genxml: fix some length of HCP_FQM_STATE
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
663f9eb740
intel/genxml: Adds more VDENC commands
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
3eb69b9577
intel/genxml: fix the length of VDENC_DS_REF_SURFACE_STATE
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
e79cad5af0
intel/genxml: Add missing fields for HCP_SLICE_STATE
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00
Hyunjun Ko
e28a299863
anv: enable VK_KHR_video_encode_queue and VK_KHR_video_encode_h264
...
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27810 >
2024-08-02 07:15:59 +00:00