summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2022-05-02include/uapi: Update drm_fourcc.h from kernelAnuj Phogat1-1/+71
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> v2. Pull in the header from drm-next at commit 9035039e1ed691cd893777a42e048003a2f349d6 Cc: 22.1 <mesa-stable> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14521> (cherry picked from commit acba3efe695c4df3873ff410e6c1a0862d4d2304)
2022-04-28glx/kopper: Wire up a way for SwapBuffers to failAdam Jackson1-0/+1
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038>
2022-04-28drm-uapi/i915_drm.h: Update from drm-next (2022-04-28)Jordan Justen1-81/+497
git://anongit.freedesktop.org/drm/drm 9bda072a7bec278c424ad660373e69d8e4a3385d Among other changes, this provides DRM_I915_QUERY_HWCONFIG_BLOB and DRM_I915_QUERY_GEOMETRY_SUBSLICES, which are needed for DG2 support. Cc: 22.1 <mesa-stable> Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16174> (cherry picked from commit 3477dbd34f18bb40c437af0687b2dfe5dbfd256e)
2022-04-27kopper: add win32 loader interfaceSidney Just1-0/+6
Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16087>
2022-04-21intel/dev: Add device info for RPL-PJordan Justen1-0/+7
Cc: mesa-stable Ref: https://patchwork.freedesktop.org/series/102701/ Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16054> (cherry picked from commit d257494ec4d826aec8841845479215820e612917)
2022-04-08intel/dev: Add ATS-M pci-idsJordan Justen1-0/+2
Ref: Bspec 44477 Ref: https://patchwork.freedesktop.org/series/101907/ Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Acked-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15814>
2022-04-07kopper: Define the driver interfaceAdam Jackson1-0/+103
The loader extension provides upcalls to get surface state (native resource and size) into the driver. The driver extension is called by a kopper-aware loader in preference to __DRI_SWRAST's createNewDrawable. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14541>
2022-04-05vulkan: spec update to 1.3.211Mike Blumenkrantz2-33/+46
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15752>
2022-03-29vulkan: update more headers to 1.3.210Mike Blumenkrantz2-56/+18
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15645>
2022-03-29vulkan: update spec to 1.3.210Mike Blumenkrantz1-44/+100
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15635>
2022-03-25freedreno/drm: Add virtio backendRob Clark1-0/+1
Add a new backend to enable using native driver in a VM guest, via a new virtgpu context type which (indirectly) makes host kernel interface available in guest and handles the details of mapping buffers to guest, etc. Note that fence-fd's are currently a bit awkward, in that they get signaled by the guest kernel driver (drm/virtio) once virglrenderer in the host has processed the execbuf, not when host kernel has signaled the submit fence. For passing buffers to the host (virtio-wl) the egl context in virglrenderer is used to create a fence on the host side. But use of out-fence-fd's in guest could have slightly unexpected results. For this reason we limit all submitqueues to default priority (so they cannot be preepmted by host egl context). AFAICT virgl and venus have a similar problem, which will eventually be solveable once we have RESOURCE_CREATE_SYNC. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14900>
2022-03-24c11: Fixes unused parameter warningsYonggang Luo1-0/+2
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15553>
2022-03-17vulkan: update vk video headers for new vulkan headers.Dave Airlie7-672/+678
These got out of sync update to the latest video headers. Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15434>
2022-03-15vk: Update xml and headers to 1.3.207.Bas Nieuwenhuizen2-91/+231
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15363>
2022-03-04freedreno: Update uapi headerRob Clark1-13/+19
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15236>
2022-03-04gallium/dri: Extend image extension to support in-fenceRob Clark1-0/+11
Extend dri so that an in-fence-fd can be plumbed through to driver. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15094>
2022-02-21include/drm-uapi: update amdgpu_drm.h for new CTX OP to set/get stable pstatesSamuel Pitoiset1-9/+23
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14038>
2022-02-08gallium/dri: add missing PIPE_BIND_DRI_PRIME handlingPierre-Eric Pelloux-Prayer1-0/+1
e9c3dbd0461 added PIPE_BIND_DRI_PRIME but it was only set when importing a prime buffer. This commit adds handling of this flag in the other codepath = the one where the prime buffer is allocated by the render GPU. With this change PIPE_BIND_DRI_PRIME is still only set for the render GPU - the display GPU will never see this flag; a future commit will rename it. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14615>
2022-02-04dri: Epoch how no-error context creation worksAdam Jackson1-3/+15
The bug here is that the DRI context "flags" are intended to alias the GLX context flag values, and they don't, DRI's no-error flag is GLX's reset-isolation flag. GLX (and EGL!) treat no-error as a context attribute, and reset isolation predates Mesa's no-error implementation by several years. The GL_KHR_no_error spec does describe it as a "context flag", though, so maybe that's why we do it as a (DRI) context flag. In order to unalias these we need a new contract with the loader. We remove the old __DRI_NO_ERROR extension, and add a new __DRI_RENDERER_HAS_CONTEXT_NO_ERROR value to query. Loaders can key on that to know to pass no-error-ness through as a context attribute, matching the GLX/EGL calling convention. We go ahead and define __DRI_CTX_FLAG_RESET_ISOLATION as well, and update the drivers to refuse it since we don't support it yet. This means mismatched drivers/loaders will not be able to create no-error contexts. Too bad. If you want performance that badly you can build both things at once. Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12474>
2022-01-26dri_interface: Remove the remaining DRI1 API definitionsAdam Jackson1-73/+0
None of these are used anymore, and as a bonus we can drop the dance around the libdrm headers. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14738>
2022-01-25vulkan: Update the XML and headers to 1.3.204Samuel Pitoiset18-829/+1684
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14707>
2022-01-25intel/dev: Add device info for RPLJordan Justen1-0/+7
Ref: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=52407c220c44c8dcc6aa8aa35ffc8a2db3c849a9 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14664>
2022-01-25intel/dev: Add device ids for ADL-NJordan Justen1-0/+4
Ref: https://cgit.freedesktop.org/drm/drm-tip/commit/?id=7e28d0b26759846485978ada860ef4a427e06c8f Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14666>
2022-01-25intel/dev: Add DG1 PCI id 0x4909Jordan Justen1-0/+1
Ref: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5f0d4214938db66969a50d4b1262307e39f4f2b2 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14665>
2022-01-21drm-uapi/v3d: extend interface for multiple semaphores supportMelissa Wen1-0/+78
Extends command submission ioctls to support multiple semaphores through generic ioctl extension design. In this approach, a multisync extension subclasses a generic ioctl extension struct (base) and enables more than one wait and signal semaphores. Multisync extension also uses v3d_queue to specify the wait_stage, i.e. which job should sync before start (wait semaphores). Signed-off-by: Melissa Wen <mwen@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13178>
2022-01-19includes: add windows lean and mean guard.Dave Airlie1-1/+3
When we drop gl.h some files pick up windows.h from here without lean/mean and it causes conflicts. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14605>
2022-01-13intel: Add *disabled* device ids for DG2Jordan Justen1-0/+24
We are waiting for i915 to enable DG2 in upstream Linux, so for now we use an "#if 0" around the PCI ids. Reworks: * Merged Lionel's "intel/devinfo: store the different kind of DG2" Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14524>
2021-12-03include/pci_ids: Move PCI ids supported by both i965 and iris to irisDylan Baker1-0/+152
As crocus won't support any of these (BDW+) they should go into iris. This also allows us to remove the "prefer_iris" option, as iris is now the only option Reviewed-by: Emma Anholt <emma@anholt.net> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10153>
2021-12-03classic/i965: Remove driverDylan Baker1-260/+0
Reviewed-by: Emma Anholt <emma@anholt.net> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10153>
2021-12-03classic/r200: Delete driverDylan Baker1-24/+0
This will now only be available on the Amber branch Reviewed-by: Emma Anholt <emma@anholt.net> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10153>
2021-12-03classic/r100: Delete driverDylan Baker1-23/+0
This is now only going to be available in the Amber branch Reviewed-by: Emma Anholt <emma@anholt.net> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10153>
2021-11-18vulkan: Update the XML and headers to 1.2.199Joshua Ashton2-2/+22
Signed-off-by: Joshua Ashton <joshua@froggi.es> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13820>
2021-11-16c11/threads: Re-align return values for timed waitsJason Ekstrand3-6/+6
They're supposed to return thrd_timedout (which we mistakenly named thrd_timeout), not thrd_busy. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13427>
2021-11-09vulkan/include: import the video codec headers.Dave Airlie7-0/+1080
I'd like to allow mesa builds with beta headers enabled, this requires importing these. v2: add video headers to khronos update Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13685>
2021-11-08intel: remove 2 preproduction pci-id for ADLSLionel Landwerlin1-2/+0
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: d399c3e861a7c4 ("intel/dev: Add device info for ADL-S") Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13476>
2021-11-04vk: update headers for 1.2.197Mike Blumenkrantz3-8/+308
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13627>
2021-10-18gallium/dri: let the driver know if the imported image is DRI_PRIME bufferPierre-Eric Pelloux-Prayer1-0/+1
Use createImageFromFds2 together with __DRI_IMAGE_PRIME_LINEAR_BUFFER, so the driver's resource_from_handle hook will be aware that this specific image is the linear buffer. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13362>
2021-10-18gallium/dri: add createImageFromFds2Pierre-Eric Pelloux-Prayer1-2/+16
Same as createImageFromFds but with added flags so the caller can give the driver more context. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13362>
2021-10-16dri_interface: remove gl headerYiwei Zhang1-26/+26
Only gl typedefs are used. So just remove the header and update the types to the underlying types. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13387>
2021-10-16dri_interface: remove obsolete interfacesYiwei Zhang1-66/+0
Below are removed: __DRI_FRAME_TRACKING __DRI_TEX_OFFSET __DRI_GET_DRAWABLE_INFO Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13387>
2021-10-12egl: sync eglext.h & egl.xml from KhronosEric Engestrom1-2/+16
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Simon Ser <contact@emersion.fr> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12373>
2021-10-09android_stub: update platform headers to include atraceYiwei Zhang9-241/+300
1. Add tracing headers 2. Update to reflect relocated headers 3. Remove redundant apex/window.h Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Ryan Neph <ryanneph@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13255>
2021-10-06vulkan: Update the XML and headers to 1.2.195Jason Ekstrand4-8/+317
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13199>
2021-09-30drm-uapi: virtgpu_drm.h: context init featureGurchetan Singh1-0/+27
This change allows creating contexts of depending on set of context parameters. The meaning of each of the parameters is listed below: 1) VIRTGPU_CONTEXT_PARAM_CAPSET_ID This determines the type of a context based on the capability set ID. For example, the current capsets: VIRTIO_GPU_CAPSET_VIRGL VIRTIO_GPU_CAPSET_VIRGL2 define a Gallium, TGSI based "virgl" context. We only need 1 capset ID per context type, though virgl has two due a bug that has since been fixed. The use case is the "gfxstream" rendering library and "venus" renderer. gfxstream doesn't do Gallium/TGSI translation and mostly relies on auto-generated API streaming. Certain users prefer gfxstream over virgl for GLES on GLES emulation. {gfxstream vk}/{venus} are also required for Vulkan emulation. The goal is for guest userspace to choose the optimal context type depending on the situation/hardware. 2) VIRTGPU_CONTEXT_PARAM_NUM_RINGS This tells the number of independent command rings that the context will use. This value may be zero and is inferred to be zero if VIRTGPU_CONTEXT_PARAM_NUM_RINGS is not passed in. This is backwards compatibility for virgl, which has one big giant command ring for all commands. The maxiumum number of rings is 32. In practice, multi-queue or multi-ring submission is used for powerful dGPUs and virtio-gpu may not be the best option in that case (see PCI passthrough or rendernode forwarding). 3) VIRTGPU_CONTEXT_PARAM_POLL_RING_IDX_MASK This is a mask of ring indices for which the DRM fd is pollable. For example, if VIRTGPU_CONTEXT_PARAM_NUM_RINGS is 2, then the mask may be: [ring idx] | [1 << ring_idx] | final mask ------------------------------------------- 0 1 1 1 2 3 The "Sommelier" guest Wayland proxy uses this to poll for events from the host compositor. Reviewed-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com> Tested-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7712>
2021-09-29gallium: add PIPE_CAP_PREFER_BACK_BUFFER_REUSEPierre-Eric Pelloux-Prayer1-0/+1
This will be used in the next commit. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Michel Dänzer <mdaenzer@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12788>
2021-09-24vulkan: Update the XML and headers to 1.2.193Emma Anholt2-12/+44
Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13007>
2021-09-09egl/dri2: seperate EGLImage validate and lookupQiang Yu1-1/+23
Version 2 of DRIImageLookupExtension add two interface for EGLImage validate and lookup. This is for resolving deak lock in the following commits. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12336>
2021-09-08gl.h: Remove dllimportJesse Natalie1-3/+1
__declspec(dllimport) isn't needed for linking to functions, extern is sufficient. The preprocessor define used to determine when to set it (_DLL) was incorrect, since that preprocessor define is set anytime you're linking against dynamic CRT as opposed to static CRT. Reviewed-by: Bill Kristiansen <billkris@Microsoft.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12776>
2021-08-30vulkan: Update the XML and headers to 1.2.190Samuel Pitoiset2-56/+122
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12611>
2021-08-18dri: Reformat DRI context attribute #definesAdam Jackson1-27/+4
These were confusingly sorted before. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12456>