summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2016-04-20dri_interface: add interface for GL interop with other APIs (v2)Marek Olšák1-0/+26
v2: - use const
2016-04-20include/GL: add mesa_glinterop.h for OpenGL-OpenCL interop (v4.2)Marek Olšák1-0/+287
v2: - use "enum" to define stuff v3: - more comments, define MESA_GLINTEROP_UNSUPPORTED v4: - add mesa_glinterop_device_info::interop_version - more comments - remove #define MESA_GLINTEROP_VERSION - use const for "in" v4.1: - use version numbers for structures - add "out_driver_data_written" v4.2: - buf_offset & buf_size affect GL_ARRAY_BUFFER too, this is required for sharing suballocations within a larger buffer
2016-04-18math: Import isinf and others to global namespacePierre Moreau1-0/+23
Starting from C++11, several math functions, like isinf, moved into the std namespace. Since cmath undefines those functions before redefining them inside the namespace, and glibc 2.23 defines the C variants as macros, the C variants in global namespace are not accessible any longer. v2: Move the fix outside of Nouveau, as suggested by Jose Fonseca, since anyone might need it when GCC switches to C++14 by default with GCC 6.0. v3: * Put the code directly inside c99_math.h rather than creating a new header file, as asked by Jose Fonseca; * Guard the code behind glibc version checks, as only glibc > =2.23 defines isinf & co. as functions, as suggested by Jose Fonseca. Signed-off-by: Pierre Moreau <pierre.morrow@free.fr> Signed-off-by: Jose Fonseca <jfonseca@vmware.com>
2016-04-04Merge remote-tracking branch 'public/master' into vulkanJason Ekstrand1-5/+11
2016-04-02st/nine: specify WINAPI only for i386 and amd64Christian Schmidbauer1-5/+11
Currently mesa fails building with the x32 abi as ms_abi is not defined in such a case. The patch uses ms_abi only for amd64 targets and stdcall only for i386 targets to be sure that those are defined. This patch additionally checks for __GNUC__ to guarantee that __attribute__ is available. CC: "11.1 11.2" <mesa-stable@lists.freedesktop.org> Signed-off-by: Christian Schmidbauer <ch.schmidbauer@gmail.com> Acked-by: Axel Davy <axel.davy@ens.fr>
2016-04-01Merge remote-tracking branch 'public/master' into vulkanJason Ekstrand1-0/+10
2016-03-24radeonsi: add Polaris PCI IDsSonny Jiang1-0/+10
Signed-off-by: Sonny Jiang <sonny.jiang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (Polaris10) Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (Polaris11)
2016-03-22Update to the latest Vulkan header from KhronosJason Ekstrand2-15/+141
2016-03-15Merge remote-tracking branch 'public/master' into vulkanJason Ekstrand3-13/+7
2016-03-11i965/chv: Display proper brandingBen Widawsky1-2/+2
"Braswell" is a Cherryview based *thing*. It unfortunately requires extra information to determine its marketing name. Unlike all previous products, and hopefully all future ones, there is no unique 1:1 mapping of PCI device ID to brand string. I put up a fight about adding any complexity to our GL renderer string code for a very long time. However, a wise man made a comment to me that I couldn't argue with: if a user installs Windows on their hardware, the brand string should be the same as what we display in Linux. The Windows driver apparently does this check, so we should too. Note that I did manage to find a good use for this info anyway in the compute shader thread counts. v2: memcpy instead of strncpy, and some minor changes (Matt) Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com
2016-03-09egl: remove remnants of MESA_drm_displayEmil Velikov1-11/+0
Last set in st/egl, unused in mesa-demos and superseded by EGL_KHR_platform_gbm. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2016-03-09dri: add backbuffer use flagAxel Davy1-0/+5
This will be used by the next commit. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2016-03-01Merge remote-tracking branch 'origin/master' into vulkanKenneth Graunke1-0/+1
2016-02-29virtio_gpu: Add virtio 1.0 PCI ID to driver mapMarc-André Lureau1-0/+1
Add the virtio-gpu PCI ID for virtio 1.0 (according to the specification, "the PCI Device ID is calculated by adding 0x1040 to the Virtio Device ID") Support for virtio 1.0 was added in qemu 2.4 (same time virtio-gpu landed). Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-02-24Merge remote-tracking branch 'origin/master' into vulkanKristian Høgsberg Kristensen1-8/+10
2016-02-17i965/skl: Update Skylake renderer stringsBen Widawsky1-9/+9
Also adds some of the Iris/Pro parts which we previously didn't have named. v2: 0x192d is gt3, not gt4 Adding some 'e' tags for eDRAM parts Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com> Acked-by: Michał Winiarski <michal.winiarski@intel.com>
2016-02-17i965/skl: Add two missing device IDsBen Widawsky1-0/+2
The Iris part is left unbranded because we did not have these with original SKL. v2: 0x192d is gt3, not gt4 v3: Forgot to update the temporary brand string when I did v2. Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com> Acked-by: Michał Winiarski <michal.winiarski@intel.com>
2016-02-11Merge remote-tracking branch 'mesa-public/master' into vulkanJason Ekstrand5-646/+9
2016-02-11include,gallium: Remove pre-MSVC 2013 compatibility.Jose Fonseca5-646/+9
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2016-02-05Merge remote-tracking branch 'mesa-public/master' into vulkanJason Ekstrand2-0/+4
2016-02-05Merge branch mesa-public/master into vulkanJason Ekstrand1-0/+1
2016-02-04st/nine: Handle Window OcclusionPatrick Rudolph2-0/+4
Apps can know if the window is occluded by checking for specific error messages. The behaviour is different for Device9 and Device9Ex. This allow games to release the mouse and stop rendering until the focus is restored. In case of multiple swapchain we do care only of the device one. Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-by: Axel Davy <axel.davy@ens.fr>
2016-02-02vulkan: Bump the header to 1.0.3Jason Ekstrand1-2/+5
2016-01-29vulkan: Import vk_icd.hJason Ekstrand1-0/+85
2016-01-27vulkan.h: Update to 1.0.2Jason Ekstrand1-4/+5
2016-01-23virtio_gpu: Add PCI ID to driver mapRob Herring1-0/+1
Add the virtio-gpu PCI ID so the driver probing works. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-01-14vulkan.h: Pull in 1.0.1 headerJason Ekstrand1-855/+855
2016-01-14vulkan-1.0.0: Bump the version to 1.0.0Jason Ekstrand1-1/+1
2016-01-14vulkan-1.0.0: Rework memory barriersJason Ekstrand1-4/+12
2016-01-14vulkan-1.0.0: No-op WSI changesJason Ekstrand1-1/+2
2016-01-14vulkan-1.0.0: Make extents unsignedJason Ekstrand1-5/+5
2016-01-14vulkan-1.0.0: Rework blits to use four offsetsJason Ekstrand1-4/+2
2016-01-14vulkan-1.0.0: Split out command buffer inheritance infoJason Ekstrand1-9/+16
2016-01-14vulkan-1.0.0: Re-order some structs in the headerJason Ekstrand1-27/+27
2016-01-14vulkan-1.0.0: Misc. field and argument renamesJason Ekstrand1-15/+15
2016-01-14vulkan-1.0.0: Get rid of MIPMAP_MODE_BASEJason Ekstrand1-5/+4
2016-01-14vulkan-1.0.0: Convert pPreserveAttachments to a uint32_tJason Ekstrand1-1/+1
2016-01-14WIP: Partially upgrade to vulkan v0.221.0BogDan Vatra1-100/+173
TODO, make use of: - VkPhysicalDeviceFeatures.drawIndirectFirstInstance, - VkPhysicalDeviceFeatures.inheritedQueries - VkPhysicalDeviceLimits.timestampComputeAndGraphics - VkSubmitInfo.pWaitDstStageMask - VkSubresourceLayout.arrayPitch - VkSamplerCreateInfo.anisotropyEnable
2016-01-08Merge ../mesa into vulkanKristian Høgsberg Kristensen1-0/+22
2016-01-06mesa: Add KBL PCI IDs and platform information.Sarah Sharp1-0/+22
Add PCI IDs for the Intel Kabylake platforms. The IDs are taken directly from the Linux kernel patches, which are under review: http://lists.freedesktop.org/archives/intel-gfx/2015-October/078967.html http://cgit.freedesktop.org/~vivijim/drm-intel/log/?h=kbl-upstream-v2 The Kabylake PCI IDs taken from the kernel are rearranged to be in order of GT type, then PCI ID. Please note that if this patch is backported, the following fixes will need to be added before this patch: commit 28ed1e08e8ba98e "i965/skl: Remove early platform support" commit c1e38ad37042b0e "i965/skl: Use larger URB size where available." Thanks to Ben for fixing a bug around setting urb.size, and being patient with my questions about what the various fields mean. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Suggested-by: Ben Widawsky <benjamin.widawsky@intel.com> Tested-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (KBL-GT2) Cc: "11.1" <mesa-stable@lists.freedesktop.org>
2015-12-27Merge remote-tracking branch 'mesa-public/master' into vulkanJason Ekstrand1-2/+43
This pulls in tessellation and the store_var changes that go with it.
2015-12-16osmesa: add new OSMesaCreateContextAttribs functionBrian Paul1-2/+43
This allows specifying a GL profile and version so one can get a core- profile context. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2015-12-10Merge remote-tracking branch 'mesa-public/master' into vulkanJason Ekstrand2-12/+934
This pulls in nir_intrinsic_load/store changes and the switch of all uniforms in i965 to bytes. This accounts for the Vulkan changes.
2015-12-09vulkan: Pull in the 0.210.1 vk_platform headerJason Ekstrand1-13/+25
Somehow this got missed in the API update.
2015-12-03vk: Add new WSI support and bump the API to 0.210.1Jason Ekstrand3-364/+497
2015-12-03vk/0.210.0: Advertise version 0.210.0Jason Ekstrand3-6123/+1
2015-12-03vk/0.210.0: Update queries to the new APIJason Ekstrand1-33/+29
2015-12-03vk/0.210.0: Update the VkFormat enumJason Ekstrand1-154/+165
2015-12-03vk/0.210.0: Rework vkQueueSubmitJason Ekstrand1-3/+14
2015-12-03vk/0.210.0: Remove depth clip and add depth clampJason Ekstrand1-1/+1