summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2021-03-30Remove Scons leftoversMatt Turner1-45/+0
Fixes: 6e6cd7d93cc54fc8c279 ("scons: Remove.") Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9738>
2021-02-26include/drm-uapi: bump AMDGPU headersSamuel Pitoiset1-1/+5
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9303>
2021-01-27vulkan: Update XML and headers to 1.2.168Caio Marcelo de Oliveira Filho3-3/+40
This brings in the following extensions: - VK_KHR_workgroup_memory_explicit_layout - VK_KHR_zero_initialize_workgroup_memory Acked-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8699>
2021-01-09hgl: Major refactor and cleanupX5122-17/+15
* Drop old-timey GLDisplatcher * Refactor haiku-softpipe fixing some hacks * Bubble BBitmap up to winsys Reviewed-by: Alexander von Gluck IV <kallisti5@unixzen.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8323>
2021-01-09include: fix export in Haiku OpenGL kit headersX5122-2/+2
Reviewed-by: Alexander von Gluck IV <kallisti5@unixzen.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8323>
2020-12-15dri: add image cleanup callback to loader extensionsDavid Stevens1-2/+20
The callback may be used by dri drivers to perform cleanup when images are destroyed. It is added to the dri2 and image loader extensions. Signed-off-by: David Stevens <stevensd@chromium.org> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7805>
2020-12-10mesa: Retire classic OSMesa.Eric Anholt1-1/+1
The classic OSMesa renders directly into user memory using src/mesa/swrast, while gallium OSMesa renders using softpipe or llvmpipe and copies out at glFlush() time. This would make gallium look like a worse choice for OSMesa, except that swrast is: 1) Painfully slow to render compared to llvmpipe 2) Incorrect at derivatives 3) Limited to GL 2.1 instead of GL 4.6 In my survey of OSMesa users, debian was the remaining holdout with classic OSMesa in use on hurd and some rare non-LLVM-supported architectures (sh4, alpha, etc.). As of today, they've switched to softpipe-based gallium OSMesa for them. To prevent people from running the wrong OSMesa (to the extent that running OSMesa can ever be the right thing), delete the classic version. Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Closes: #320 Closes: #877 Closes: #2297 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1243>
2020-12-07vulkan: Update to 1.2.164.Hans-Kristian Arntzen1-1/+48
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7967>
2020-11-26c11/threads: Remove Windows XP supportJames Park1-159/+7
Enable and remove EMULATED_THREADS_USE_NATIVE_CV. Delete legacy code. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7138>
2020-11-26c11/threads: Remove Win32 null checksJames Park1-14/+18
Nonsensical to pass null. glibc doesn't check, and neither should we. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7138>
2020-11-26c11/threads: Fix Win32 timed functionsJames Park1-13/+30
mtx_timedlock and cnd_timedwait now use relative milliseconds. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7138>
2020-11-24vulkan: Update XML and headers to 1.2.162Jason Ekstrand2-501/+636
This brings in the following new extensions: - VK_KHR_deferred_host_operations - VK_KHR_pipeline_library - VK_KHR_acceleration_structure - VK_KHR_ray_tracing_pipeline - VK_KHR_ray_query Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7734>
2020-11-14drm/uapi: Fix modifier field mask for AMD modifiers.Bas Nieuwenhuizen1-7/+7
The DCC_MAX_COMPRESSED_BLOCK has to contain one of AMD_FMT_MOD_DCC_BLOCK_* and with 3 values this doesn't fit in 1 bit. Fix this cleanly while it is only in drm-next. Fixes: 2cc2b456889 "drm-uapi: Add AMD modifiers." Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7607>
2020-11-13drm-uapi: Add AMD modifiers.Bas Nieuwenhuizen1-0/+116
This adds modifiers for GFX9+ AMD GPUs. As the modifiers need a lot of parameters I split things out in getters and setters. - Advantage: simplifies the code a lot - Disadvantage: Makes it harder to check that you're setting all the required fields. The tiling modes seem to change every generatio, but the structure of what each tiling mode is good for stays really similar. As such the core of the modifier is - the tiling mode - a version. Not explicitly a GPU generation, but splitting out a new set of tiling equations. Sometimes one or two tiling modes stay the same and for those we specify a canonical version. Then we have a bunch of parameters on how the compression works. Different HW units have different requirements for these and we actually have some conflicts here. e.g. the render backends need a specific alignment but the display unit only works with unaligned compression surfaces. To work around that we have a DCC_RETILE option where both an aligned and unaligned compression surface are allocated and a writer has to sync the aligned surface to the unaligned surface on handoff. Finally there are some GPU parameters that participate in the tiling equations. These are constant for each GPU on the rendering/texturing side. The display unit is very flexible however and supports all of them :| Some estimates: - Single GPU, render+texture: ~10 modifiers - All possible configs in a gen, display: ~1000 modifiers - Configs of actually existing GPUs in a gen: ~100 modifiers For formats with a single plane everything gets put in a separate DRM plane. However, this doesn't fit for some YUV formats, so if the format has >1 plane, we let the driver pack the surfaces into 1 DRM plane per format plane. This way we avoid X11 rendering onto the frontbuffer with DCC, but still fit into 4 DRM planes. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6176>
2020-11-12Add EGL xcb platformYuxuan Shui1-0/+6
This enables GL applications to be written without any involvement of Xlib. EGL X11 platform is actually already xcb-only underneath, so this commit just add the necessary interface changes so eglDisplay can be created from a xcb_connection_t. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6474>
2020-11-06CL: update CL headers to 3.0Dave Airlie6-162/+670
This just updates the headers from Khronos. Change the cl_mem initialisers, not sure what totally correct answer is. Acked-by: Francisco Jerez <currojerez@riseup.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7468>
2020-11-02dri: introduce createImageFromDmaBufs3Pierre-Eric Pelloux-Prayer1-1/+26
Extends createImageFromDmaBufs2 with a protected_content flag. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5096>
2020-11-02egl: implement EGL_EXT_protected_surface supportPierre-Eric Pelloux-Prayer1-0/+3
Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5096>
2020-10-27intel/dev: Add device info for ADL-SJordan Justen1-0/+11
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/7322>
2020-10-22dri/DRI2ConfigQueryExtension: add support for string optionsMartin Peres1-1/+2
This will be useful to enable extension overriding as a drirc option. v2 (Adam Jackson): - Rename from configQuerystr to configQuerys for symmetry - Increase the version number of the interface Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Martin Peres <martin.peres@mupuf.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7212>
2020-10-19vulkan: Update XML and headers to 1.2.158Caio Marcelo de Oliveira Filho1-2/+164
Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7221>
2020-10-19android_stub: Update platform headers to include gralloc1.h.Eric Anholt9-54/+1546
This header is used in anv and radv, and soon turnip. Since the script just checks out master, this also bumps the headers to upstream 02dfcc7c1562 ("Merge "Merge Android R"") Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6821>
2020-10-15intel: Remove Gen10-specific device entriesIan Romanick1-13/+0
The enables removal of gen_device_info::is_cannonlake. v2: Remove GEN10_FEATURES and GEN10_HW_INFO macros. Suggested by Lionel. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6899>
2020-10-01drm-uapi: virtgpu_drm.h: resource create blob + host visible memory regionGurchetan Singh1-1/+38
Matches current API at virgl/resource_blob. Of course, don't submit until this lands in drm. Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4821>
2020-09-24amd: add AMDGPU_IDS_FLAGS_TMZ definition to amdgpu_drm.hPierre-Eric Pelloux-Prayer1-0/+1
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6049>
2020-09-22vulkan: bump headers/registry to 1.2.154Lionel Landwerlin6-10/+256
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6801>
2020-09-01include/drm-uapi: bump headersLionel Landwerlin6-39/+353
From drm-next at the following commit : commit 3393649977f9a8847c659e282ea290d4b703295c Merge: cbc2e82932ae ced026e959be Author: Dave Airlie <airlied@redhat.com> Date: Fri Aug 28 13:51:30 2020 +1000 Merge tag 'drm-intel-next-2020-08-24-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2901>
2020-08-08Correct a typo in threads_win32.hFelix Yan1-1/+1
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6238>
2020-08-05ci: Include enough Android headers to let us compile test EGLKristian H. Kristensen45-1/+7571
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6112>
2020-08-03vulkan: Update Vulkan XML and headers to 1.2.149Jason Ekstrand1-1/+16
Reviewed-by Joshua Ashton <joshua@froggi.es> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6158>
2020-07-20vulkan: Update Vulkan XML and headers to 1.2.148Jason Ekstrand3-1/+122
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5983>
2020-07-14intel/ehl: Add new PCI-IDsAnuj Phogat1-0/+4
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2020-07-14intel/ehl: Rename gen_device_info structAnuj Phogat1-7/+7
Renaming makes it easier to relate a pciid with device configuration. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2020-06-26turnip: semaphore support.Bas Nieuwenhuizen1-1/+23
There is only one queue for now, so for non-shared semaphores, the implementation is basically a no-op. For shared semaphores, this always uses syncobjs. This depends on syncobj support in the msm kernel driver. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2769>
2020-06-24intel: Disable loading drivers on DG1 devices for nowKenneth Graunke1-1/+2
Kernel support for DG1 has not yet been merged upstream; per our long-standing DRM subsystem policy, we should not enable the platform in userspace until the kernel patches are merged and functional. We will re-enable this in the future. In the meantime, we retain all of the infrastructure and code for the platform so that we can continue developing DG1 support in upstream. See a discussion here: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4956#note_547775 Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5617>
2020-06-22vulkan: Update Vulkan XML and headers to 1.2.145Jason Ekstrand16-816/+755
Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5597>
2020-06-22intel/dev: Add device info for DG1Jordan Justen1-0/+2
Reworks: * Anuj: Set is_dg1 * Anuj: Add dg1 to gen_device_name_to_pci_device_id * Anuj: Update simulator id * Rafael: has_llc = false Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4956>
2020-06-16drm-uapi: Add sync_file.hJan Beich1-0/+116
Based on <linux/sync_file.h> with BSD portability conditional. At least FreeBSD supports SYNC_IOC_* via LinuxKPI in DRM. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5463>
2020-05-25EGL: sync headers with KhronosSimon Ser3-45/+48
Taken from EGL-Registry commit 90b78b0662e2f0548cfd1926fb77bf628933541b. With this update EGL_WL_bind_wayland_display and EGL_WL_create_wayland_buffer_from_image are now in the registry, so we don't need to define them in eglmesaext.h anymore. The eglSwapBufferWithDamage* functions now take a const rects argument. The eglapi.c function signature is updated accordingly. Signed-off-by: Simon Ser <contact@emersion.fr> Acked-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4953>
2020-05-21no_extern_c.h: fix typo in commentEric Engestrom1-1/+1
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5145>
2020-05-09intel/dev: Add device info for RKLJordan Justen1-0/+6
Cc: 20.1 <mesa-stable@lists.freedesktop.org> 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/4955>
2020-05-07amd: update amdgpu_drm.hMarek Olšák1-1/+14
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4863>
2020-05-05vulkan: Update Vulkan XML and headers to 1.2.140Joshua Ashton3-303/+127
Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4878>
2020-04-28vulkan: Update Vulkan XML and headers to 1.2.139Jason Ekstrand3-383/+1091
Acked-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4767>
2020-04-27drm-uapi,radv,radeonsi: Add amdgpu_drm.h header.Bas Nieuwenhuizen1-0/+1073
Use it instead of the libdrm provided amdgpu_drm.h header. I used the kernel revision from the README to get the header so the header versions should be consistent. Tested by removing /usr/include/libdrm/amdgpu_drm.h from my dev-machine. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4749>
2020-04-23include/drm-uapi: bump headersLionel Landwerlin2-4/+29
From drm-next at the following commit : commit 1aa63ddf726ea049279989b93b69b57ce6efd75b Merge: 774f1eeb18b0 14d0066b8477 Author: Dave Airlie <airlied@redhat.com> Date: Wed Apr 22 10:40:34 2020 +1000 Merge tag 'drm-misc-next-2020-04-14' of git://anongit.freedesktop.org/drm/drm-misc into drm-next Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com> Reviewed-by: Mark Janes <mark.a.janes@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4021>
2020-04-20drm-uapi: Update headers from Linux 5.7-rc1.Rafael Antognolli4-7/+101
commit 8f3d9f354286745c751374f5f1fcafee6b3f3136 Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Sun Apr 12 12:35:55 2020 -0700 Linux 5.7-rc1 Acked-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1675>
2020-03-21intel: Add TGL PCI IDJordan Justen1-0/+1
Ref: Bspec 44455 Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2020-03-21intel: Update TGL PCI stringsJordan Justen1-5/+5
Ref: Bspec 44455 Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2020-03-20intel: add new TGL pci idsLionel Landwerlin1-0/+4
Update following kernel : https://patchwork.freedesktop.org/patch/357921/ Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Bspec: 44455 Acked-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4248> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4248>