summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2023-01-11drm-uapi/dma-buf.h: unbreak on non-Linux via local typedefsJan Beich1-0/+18
In file included from src/vulkan/wsi/wsi_common_drm.c:34: include/drm-uapi/dma-buf.h:23:10: fatal error: 'linux/types.h' file not found #include <linux/types.h> ^~~~~~~~~~~~~~~ Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Acked-by: Daniel Stone <daniels@collabora.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16987>
2023-01-11drm-uapi/dma-buf.h: Update from drm-misc-next (2022-06-10)Jason Ekstrand1-0/+182
From https://cgit.freedesktop.org/drm-misc/ 9cc4853e4781bf0dd0f35355dc92d97c9da02f5d Author: Antonio Borneo <antonio.borneo@foss.st.com> Date: Tue Jun 7 23:31:44 2022 +0200 drm: adv7511: override i2c address of cec before accessing it This version has the new sync_file import/export ioctls. Acked-by: Daniel Stone <daniels@collabora.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16987>
2023-01-03glx: Remove dead declarations from <GL/glx.h>Adam Jackson1-70/+0
MESA_swap_control is defined in glxext.h now. MESA_swap_frame_usage was removed in Mesa 7.9 in 2010. The other two were never specified or implemented. Acked-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20300>
2023-01-03include: Sync <GL/glxext.h> with KhronosAdam Jackson1-22/+7
Acked-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20300>
2022-12-20vulkan: update headers/registry to 1.3.238 for video decodeDave Airlie8-621/+673
This moves the video decoding to KHR and out of beta. Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20384>
2022-12-09egl: Replace sRGB support check with a pscreen query.Emma Anholt1-4/+0
This drops the remaining use of rendererQuery from EGL. Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20171>
2022-12-05egl+glx: Always support no_error contexts.Emma Anholt1-3/+2
Since we know we're loading this Mesa build, we know that no_error is always supported (the renderer query always returned true). Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20069>
2022-12-05egl: Collapse a bunch of renderer queries into pipe cap queries.Emma Anholt1-12/+0
Now that we can access the pipe screen through the dri_screen, we can skip some indirection. Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20069>
2022-12-05dri: Add createContext hook to __DRI_MESA.Emma Anholt1-0/+2
Again, reduces switching on driver type in the loader. Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20069>
2022-12-05gallium/dri: Move the backendVtable InitScreen func into __DRI_MESA.Emma Anholt1-0/+5
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20069>
2022-12-05dri: Add createNewScreen into the __DRI_MESA extension.Emma Anholt1-0/+8
Now the loaders don't have to switch on dri2/dri3/swrast. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20069>
2022-12-05dri: Introduce internal Mesa DRI driver loader extension.Emma Anholt1-0/+51
All DRI loaders in Mesa (EGL, GLX, gbm) now require this ext and that the driver come from a matching build. This will let us use Mesa-internal types and enums across the loader-driver bounary inside of Mesa. Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Eric Engestrom <eric@igalia.com> LOL-YESed-by: Kristian Høgsberg <krh@bitplanet.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20069>
2022-12-01intel/dev: Add (disabled) device info for MTLJordan Justen1-0/+6
Reworks: * Jordan: INTEL_PLATFORM_MTL_M/INTEL_PLATFORM_MTL_P * Lionel: .has_coarse_pixel_primitive_and_cb * Jordan: .has_mesh_shading & .has_ray_tracing * Paulo: .has_64bit_float * José: .has_integer_dword_mul (BSpec: 47431) * Jordan: Comment pci device ids for now similar to DG2: * 70a4e646852 ("intel: Add *disabled* device ids for DG2") * ad565f6b70d ("intel/dev: Enable first set of DG2 PCI IDs") Ref: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/drm/i915_pciids.h?h=v6.0-rc4#n736 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19658>
2022-12-01dri: Add notes on what part of the loader interface are used by Xorg.Emma Anholt1-14/+70
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20044>
2022-11-27dri: move private __DRIDriverVtableExtension out of dri_interface.hMarek Olšák1-17/+0
It's only used internally. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19741>
2022-11-18include: Update the OpenCL headersJason Ekstrand19-11754/+12984
This syncs all our headers with their canonical versions from Khronos. Of particular note, CL headers repo does not have cl.hpp and cl2.hpp has been depricated all in favor of opencl.hpp which is the new canonical header. Fortunately, nothing in Mesa uses any of the C++ headers so this shouldn't break anything. Acked-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19816>
2022-11-17vulkan: Update the XML and headers to 1.3.235Jason Ekstrand1-2/+387
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19815>
2022-11-17drm-uapi: import i915_drm.h changes for the new OA report typeLionel Landwerlin1-0/+10
To be replace by a proper drm-next update. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893>
2022-11-10zink: Only #include <vulkan/vulkan_core.h> instead #include ↵Yonggang Luo1-23/+17
<vulkan/vulkan.h> in kopper_interface.h It's pulled too much system dependent headers before this commit when #include <vulkan/vulkan.h> directly, Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19491>
2022-11-10zink: struct kopper_surface is not accessed, remove it in kopper_interface.hYonggang Luo1-2/+0
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19491>
2022-11-09panfrost: Fix build with Perfetto (again)Alyssa Rosenzweig1-1/+1
Sync UAPI for the upstream fix. Upstream commit: https://cgit.freedesktop.org/drm-misc/commit/?h=drm-misc-fixes&id=c4299907c09a638c0a30f029338d07941c049d73 Closes: #7195 Fixes: 6a4532cbabf ("panfrost: Sync panfrost_drm.h from drm-misc-next") Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Tested-by: Chris Healy <healych@amazon.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19581>
2022-11-03drm-uapi: bump headersLucas Stach3-5/+96
From drm-next at the following commit: commit 7f7a942c0a338c4a2a7b359bdb2b68e9896122ec Merge: 0a20a3ea4259 ddcb8fa6514f Author: Dave Airlie <airlied@redhat.com> Date: Thu Oct 27 14:44:02 2022 +1000 Merge tag 'drm-next-20221025' of git://linuxtv.org/pinchartl/media into drm-next Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9780>
2022-11-03mesa: sync GLAPIENTRY with KHRONOS_APIENTRY in GL/gl.hYonggang Luo1-3/+4
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Acked-by: Brian Paul brianp@vmware.com Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19472>
2022-11-03mesa: BUILD_GL32 is not used anymoreYonggang Luo1-5/+1
Remove usage of BUILD_GL32 in GL/gl.h Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Acked-by: Brian Paul brianp@vmware.com Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19472>
2022-11-02include: Add driver data to v2 of mesa_glinterop_device_infoJesse Natalie1-1/+13
Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19242>
2022-11-02include: Add a flush interop methodJesse Natalie2-1/+57
Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19242>
2022-11-02include: Add WGL version of GL interop extensionsJesse Natalie1-0/+38
Reviewed-by: Adam Jackson <ajax@redhat.com> Acked-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19242>
2022-10-27egl: Add EGL_EXT_protected_content supportLionel Landwerlin1-1/+10
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8092>
2022-10-27dri: rename PROTECTED_CONTENT in PROTECTED_SURFACELionel Landwerlin1-1/+1
Better suiting to the associated extension EXT_protected_surface. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8092>
2022-10-27drm-uapi: bump headersLionel Landwerlin9-86/+585
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8092>
2022-10-12EGL: sync headers with KhronosSimon Zeni5-50/+95
Since [1], EGL removed the inclusion of the Xlib headers by default. The logic is now reversed, and the call has to define USE_X11 to include the Xlib headers instead of EGL_NO_X11_HEADERS to prevent the inclusion. [1]: https://github.com/KhronosGroup/EGL-Registry/pull/130/commits/3670d645f4a26a0a9e87e7f3a8608e7cc1d53b5b Signed-off-by: Simon Zeni <simon@bl4ckb0ne.ca> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18848>
2022-10-04vulkan: update beta and video headers to 1.3.230Dave Airlie7-217/+284
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18945>
2022-09-29vulkan: Update the XML and headers to 1.3.230Mike Blumenkrantz2-23/+894
Acked-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18878>
2022-09-22Try to fix FTBFS on kfreebsd architectureLaurent Bigonville1-0/+1
Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4081 Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15058>
2022-09-15vulkan: Update to 1.3.228 headers.Hans-Kristian Arntzen1-17/+47
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18610>
2022-09-12rusticl: addedKarol Herbst1-17/+20
Initial code drop for Rusticl :) Signed-off-by: Karol Herbst <kherbst@redhat.com> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439>
2022-09-07intel/pci_ids: Drop non-upstream dg2 pci-idsJordan Justen1-7/+0
These pci-ids should be included in https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14523, since these pci-ids will only be supported by kernels that support the forked Linux uapi. (Note that !14523 will never be merged into upstream Mesa.) Ref: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/drm/i915_pciids.h?h=v6.0-rc3#n695 Fixes: 398a9be94b4 ("intel/dev: Enable remaining DG2 and ATS-M device IDs") 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/18386>
2022-09-05ac/gpu_info: handle LPDDR4 and 5 in ac_memory_ops_per_clockMarek Olšák1-0/+6
and update amdgpu_drm.h Fixes: 50238f495869ce5 - amd/common: Remove redundant code for determining memory ops per clock Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7163 Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18340>
2022-09-02vulkan: fixup 1.3.226 updateLionel Landwerlin2-34/+106
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18397>
2022-09-02vulkan, spirv: Update to Vulkan 1.3.226 and latest SPIR-V headers.Timur Kristóf1-4/+94
Done using the "khronos-update.py" script, leaving out parts that are not relevant to Vulkan. Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18366>
2022-09-02intel/pci_ids: Add dg2 0x5698 pci-idJordan Justen1-0/+1
This motherboard-down pci-id was added in kernel commit 8618b8489ba6 ("drm/i915: DG2 and ATS-M device ID updates"). Ref: bspec 44477 Ref: https://patchwork.freedesktop.org/patch/msgid/20220701152231.529511-2-matthew.d.roper@intel.com Fixes: ad565f6b70d ("intel/dev: Enable first set of DG2 PCI IDs") 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/18385>
2022-09-02intel/pci_ids: Update DG2 device namesJordan Justen1-12/+12
Ref: bspec 44477 Ref: https://www.intel.com/content/www/us/en/products/details/discrete-gpus/arc/arc-a-series.html Cc: 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/18303>
2022-09-02intel/pci_ids: Update ATS-M device namesJordan Justen1-2/+2
Ref: bspec 44477 Ref: https://www.intel.com/content/www/us/en/products/details/discrete-gpus/data-center-gpu/flex-series/products.html Cc: 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/18303>
2022-08-31panfrost: Sync panfrost_drm.h from drm-misc-nextAdrián Larumbe1-2/+49
Updated from changes in commit 730c2bf4ad39 ("drm/panfrost: Add support for devcoredump"). From drm-misc/drm-misc-next. Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14034>
2022-08-26intel/pci_ids: Add 0x468b ADL-S PCI-idJordan Justen1-0/+1
Ref: bspec 53655 Fixes: d399c3e861a ("intel/dev: Add device info for ADL-S") Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17569>
2022-08-26intel/pci_ids: Update ADL-S stringsJordan Justen1-7/+7
Ref: bspec 53655 Fixes: d399c3e861a ("intel/dev: Add device info for ADL-S") Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17569>
2022-08-24vulkan: update rest of the headers to v1.3.225Dave Airlie7-401/+419
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18237>
2022-08-24vulkan: Update the XML and headers to 1.3.225Mike Blumenkrantz1-30/+44
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18133>
2022-08-09egl: Remove eglextchromium.h and import eglext_angle.hYonggang Luo3-72/+404
The upstream eglextchromium.h in https://chromium.googlesource.com/chromium/src/+/refs/heads/master/ui/gl/EGL/eglextchromium.h are broken, so remove it and using eglext_angle.h instead. By running "python bin/khronos-update.py egl" to update EGL files, then discard changes other than eglext_angle.h Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17815>
2022-08-05vulkan: Update the XML and headers to 1.3.224Mike Blumenkrantz2-17/+184
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17883>