summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2021-06-23meson/crocus: add prefer-crocus option.Dave Airlie1-0/+2
This just allows picking crocus without having to set the env var. Acked-by: Alyssa Rosenzweig <alyssa@collabora.com> Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11353>
2021-06-21vulkan: Update the XML and headers to 1.2.182Jason Ekstrand2-7/+226
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11497>
2021-06-11egl/android: add aosp_nougat system/window.h back for back compatYiwei Zhang1-0/+993
Also layer ANativeWindow_* APIs on top of legacy APIs for api level less than 26 in a new platform_android.h header. v2: persist frozen system/window.h header Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Rob Clark <robdclark@chromium.org> (v1) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11286>
2021-06-10vulkan: fix back compat with Android Oreo and belowYiwei Zhang1-0/+6
buffer_handle_t definition was previously inside the deprecated system/core/include/system/window.h. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Acked-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11301>
2021-06-10glapi: fix Warray-parameterMichel Zou1-4/+4
Fixes these new gcc11 warnings: In file included from ../src/mapi/glapi/glapi_dispatch.c:174: src/mapi/glapi/gen/glapitemp.h:3191:68: warning: argument 1 of type 'const GLdouble *' {aka 'const double *'} declared as a pointer [-Warray-parameter=] 3191 | KEYWORD1 void KEYWORD2 NAME(LoadTransposeMatrixd)(const GLdouble * m) | ~~~~~~~~~~~~~~~~~^ In file included from ../src/mapi/glapi/glapi_priv.h:31, from ../src/mapi/glapi/glapi_dispatch.c:40: ../include/GL/gl.h:1901:62: note: previously declared as an array 'const GLdouble[16]' {aka 'const double[16]'} 1901 | GLAPI void GLAPIENTRY glLoadTransposeMatrixd( const GLdouble m[16] ); Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11198>
2021-06-09egl/android: refactor to use the legit vndk/window.h headerYiwei Zhang2-1101/+0
Using the system/window.h header can potentially cause AHB breakage because the system header is reserved for platform internal use. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11206>
2021-06-09vulkan: Update the XML and headers to 1.2.180Georg Lehmann2-32/+154
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11215>
2021-05-21gallium/dri: Add Y41x formatsIan Romanick1-0/+2
v2: Don't leak __DRI_IMAGE_FOURCC_RGBA16161616 to applications. v3: Fix typo in __DRI_IMAGE_FOURCC_RGBA16161616 table entry. v4: Add the Y412 and Y416 tests to the A530 expected fail list. Many YUV image import tests fail on this platform, and nobody has been able to investigate why. v5: Update the comment describing the zeroed bits in Y412. Suggested by Emma. v6: Add all Y41x test to the rpi3 expected fail list. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9610>
2021-05-21dri: Fix typo before __DRI_IMAGE_COMPONENTS definesIan Romanick1-1/+1
s/are may be/might be/ Also add a missing comma. v2: Also s/its/it's/. Suggested by Nanley. Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9610>
2021-05-19dri: add createImageWithModifiers2 interfaceSimon Ser1-1/+23
With the addition of createImageWithModifiers usage flags were dropped, as it was believed at the time that modifers will be a full replacement for the usage flags. This has turned out to be untrue, as modifiers are not able to describe buffer placement. Add a new version of the interface, that allows to specifiy use flags in addition to the modifier. Signed-off-by: Simon Ser <contact@emersion.fr> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106>
2021-05-19d3d10umd,d3d10sw: Initial import.Jose Fonseca3-0/+265
This change adds a gallium D3D10 state tracker that works as a WDDM UMD software driver, similar to Microsoft WARP, but using llvmpipe/softpipe. The final deliverable is a d3d10sw.dll, which is similar to WARP's d3d10warp.dll. This has been used to run Microsoft Windows HCK wgf11* tests with llvmpipe, and they were at one point passing 100%. Known limitations: - TGSI (no NIR) - D3D10 only (no D3D11 support yet) - no WINE integration (WINE doesn't implement WDDM DDI.) For further details see: - src/gallium/frontends/d3d10umd/README.md - src/gallium/targets/d3d10sw/README.md v2: Drop the DXBC-based disassembly. Add missing break statements. v3: Incorporate Jesse's feedback. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Acked-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10687>
2021-05-14intel: Add 2 ADL-S pci-idsJordan Justen1-0/+2
Cc: mesa-stable 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/10781>
2021-05-14intel/dev: Add device info for ADL GT2Jordan Justen1-0/+19
Cc: mesa-stable Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9465>
2021-05-10freedreno/drm: Add support to query device suspend countRob Clark1-0/+1
Signed-off-by: Rob Clark <robdclark@chromium.org> Acked-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9901>
2021-05-03i915c: Add a symlink for i830_dri.soAdam Jackson2-4/+4
The gallium driver doesn't support gen2, so let's make it possible to keep both i915g and i830 drivers installed in parallel. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10554>
2021-05-03include: Remove unused i810_pci_ids.hAdam Jackson1-4/+0
Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10554>
2021-04-26vulkan: Update the XML and headers to 1.2.177Jason Ekstrand3-11/+143
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10460>
2021-04-22vulkan: bump headers/registry to version 1.2.175Lionel Landwerlin17-48/+1429
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/10206>
2021-04-13drm-uapi: Update drm_fourcc.h for new TGL modifierNanley Chery1-8/+84
Pull in the header from drm-next commit 32c3d9b0f51ee1e6bb0160496b97e50b5caca4d0. Among other things, this brings in the I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC modifier. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9230>
2021-04-12include/drm-uapi: bump AMDGPU headersLeo Liu1-0/+34
From drm-next: commit 2cbcb78c9ee5520c8d836c7ff57d1b60ebe8e9b7 Merge: 06debd6e1b28 8c44390d8872 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Fri Mar 26 15:52:01 2021 +0100 Merge tag 'amd-drm-next-5.13-2021-03-23' of https://gitlab.freedesktop.org/agd5f/linux into drm-next amd-drm-next-5.13-2021-03-23: amdgpu: ... UAPI: - amdgpu: Add a new INFO ioctl interface to query video capabilities rather than hardcoding them in userspace. This allows us to provide fine grained asic capabilities (e.g., if a particular part is bandwidth limited, we can limit the capabilities). Proposed userspace: https://gitlab.freedesktop.org/leoliu/drm/-/commits/info_video_caps https://gitlab.freedesktop.org/leoliu/mesa/-/commits/info_video_caps ... Danvet: A bunch of conflicts all over, but it seems to compile ... I did put the call to dc_allow_idle_optimizations() on a single line since it looked a bit too jarring to be left alone. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> From: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210324040147.1990338-1-alexander.deucher@amd.com Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10095>
2021-04-08anv: Remove vkCreateDmaBufINTEL (v4)Chad Versace2-66/+0
Superceded by VK_EXT_image_drm_format_modifier. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (v1) Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (v4) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1466>
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>