summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-05-31Don't use python 3submit/python2-for-intelDylan Baker2-10/+2
Now there are not files that require python 3, so for now just remove the python 3 dependency and use python 2. I think the right plan is to just get all of the python ready for python 3, and then use whatever python is available. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> cc: 12.0 <mesa-stable@lists.freedesktop.org>
2016-05-31genxml: change chbang to python 2Dylan Baker1-1/+1
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> cc: 12.0 <mesa-stable@lists.freedesktop.org>
2016-05-31genxml: use the isalpha method rather than str.isalpha.Dylan Baker1-1/+1
This fixes gen_pack_header to work on python 2, where name[0] is unicode not str. Signed-off-by: Dylan Bake <dylanx.c.baker@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> cc: 12.0 <mesa-stable@lists.freedesktop.org>
2016-05-31genxml: require future imports for python2 compatibility.Dylan Baker1-0/+3
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> cc: 12.0 <mesa-stable@lists.freedesktop.org>
2016-05-31genxml: mark re strings as rawDylan Baker1-2/+2
This is a correctness issue. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> cc: 12.0 <mesa-stable@lists.freedesktop.org>
2016-05-31genxml: Make classes descendants of objectDylan Baker1-4/+4
This is the default in python3, but in python2 you get old style classes. No one likes old-style classes. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> cc: 12.0 <mesa-stable@lists.freedesktop.org>
2016-05-31genxml: mark gen_pack_header.py as encoded in utf-8Dylan Baker1-0/+1
There is unicode in this file, and I'm actually surprised that the python interpreter hasn't gotten grumpy. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> cc: 12.0 <mesa-stable@lists.freedesktop.org>
2016-05-31vc4: Fix compiler warnings in fail_instr path of QIR validate passRhys Kidd1-10/+10
Introduced in 8e2d0843c02daf5280184f179ae8ed440ac90d7f. Signed-off-by: Rhys Kidd <rhyskidd@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2016-05-31anv: let anv_entrypoints_gen.py generate proper Wayland/Xcb guardsEmil Velikov1-0/+28
The generated sources should follow the example set by the vulkan headers and our non-generated code. Namely: the code for all supported platforms should be available, each one guarded by its respective VK_USE_PLATFORM_*_KHR macro. v2: Reword commit message. Cc: Mark Janes <mark.a.janes@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96285 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (v1 over IRC)
2016-05-31svga: change enum pipe_resource_usage back to unsignedBrian Paul1-1/+1
This parameter is actually a bitmask of PIPE_TRANSFER_x flags. Change it back to a simple unsigned type. IIRC, some compilers complain about masks of enum values. Also, this make the function signature match u_resource_vtbl::transfer_map() again. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2016-05-31radeonsi: fix CP DMA hazard with index buffer fetchesMarek Olšák1-2/+20
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-05-31r600g: do GL-compliant integer resolvesMarek Olšák1-37/+1
The GL spec has been clarified and the new rule says we should just copy 1 sample. u_blitter does the right thing. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2016-05-31radeonsi: do GL-compliant integer resolvesMarek Olšák1-37/+1
The GL spec has been clarified and the new rule says we should just copy 1 sample. u_blitter does the right thing. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2016-05-31gallium/u_blitter: do GL-compliant integer resolvesMarek Olšák1-19/+7
The GL spec has been clarified and the new rule says we should just copy 1 sample. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2016-05-31mesa: fix crash in driver_RenderTexture_is_safeMarek Olšák1-1/+2
This just fixed the crash with the apitrace in bug report. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95246 Cc: 11.1 11.2 12.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2016-05-31radeonsi: don't flush TC at the end of IBs on DRM >= 3.2.0Marek Olšák1-2/+3
It's not needed since it was fixed in the kernel. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-05-31gallium/radeon: fixed division by zeroJakob Sinclair1-0/+3
Coverity is getting a false positive that a division by zero can occur here. This change will silence the Coverity warnings as a division by zero cannot occur in this case. Signed-off-by: Jakob Sinclair <sinclair.jakob@openmailbox.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2016-05-31st/glsl_to_tgsi: prevent infinite loopEric Engestrom1-2/+3
`unsigned j` would never fail `j >= 0`, leading to an infinite loop as `j--` wraps around. Signed-off-by: Eric Engestrom <eric@engestrom.ch> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2016-05-31glsl/images: bounds check image unit assignmentDave Airlie1-0/+2
The CTS test: GL45-CTS.multi_bind.dispatch_bind_image_textures binds 192 image uniforms, we reject this later, but not until after we trash the contents of the struct gl_shader. Error now reads: Too many compute shader image uniforms (192 > 16) instead of Too many compute shader image uniforms (2745344416 > 16) Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "12.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-05-30nvc0/ir: fix spilling predicates to registersIlia Mirkin1-0/+4
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Cc: "11.1 11.2 12.0" <mesa-stable@lists.freedesktop.org>
2016-05-30nvc0/ir: limit max number of regs based on availability in SMIlia Mirkin2-2/+4
This effectively limits registers to 32 and 64 for fermi and kepler when 1024 threads are used, but allows the full amount to be used with smaller thread sizes. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2016-05-30nv50/ir: record number of threads in a compute shaderIlia Mirkin5-2/+10
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2016-05-30nv50/ir: Add missing handling of U64/S64 in inlinesPierre Moreau1-1/+3
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-05-30docs: rename release notes to 12.0.0Emil Velikov1-4/+4
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit 7ad2cb6f08bf318219ceb02d297f794db9221efa)
2016-05-30docs: move nvc0 out of individual lines of GL 4.2, 4.3, ES 3.1Ilia Mirkin1-32/+32
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-05-30docs: add 12.1.0-devel release notes template, bump versionEmil Velikov2-1/+61
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30docs/GL3: mark radeonsi as all done up to GL 4.3 and GLES 3.1Marek Olšák1-31/+31
2016-05-30nir: add the SConscript.nir to the tarballEmil Velikov1-1/+2
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30vc4: Fix doxygen warningsRhys Kidd2-6/+6
Now that vc4 automated code documentation can be generated with doxygen, fix the warnings issued by Doxygen 1.8.11. Signed-off-by: Rhys Kidd <rhyskidd@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30doxygen: Plumb through gallium/ to automated documentationRhys Kidd1-1/+2
Add Gallium and the Gallium-based drivers to doxygen's automated code documentation infrastructure. Can be individually created with: cd $MESA_TOP_LEVEL/ make -C doxygen/ gallium.tag Benefits from the existing doxygen Makefile runners to clean up afterwards with 'make clean'. Signed-off-by: Rhys Kidd <rhyskidd@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30Revert "osmesa: don't try to bundle osmesa.def SConscript"Emil Velikov1-0/+2
This reverts commit c07df0f2014636b601cdbaff63214296599b1ad5. Now that the SCons build is back we need to include the files in the tarball.
2016-05-30scons: build osmesa swrast and galliumAndreas Fänger3-0/+57
This patch makes it possible to build classic osmesa/swrast on windows again. It was removed in commit 69db422218b0264b5b8eef45bd003a2544e9cbd6. Although there is a gallium version of osmesa now, the swrast version still has more features lacking in llvmpipe, e.g. anisotropic filtering. Tested-by: Brian Paul <brianp@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> [Emil Velikov: remove trailing whitespace] Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30automake: rework the git_sha1.h rule, include in tarballEmil Velikov2-18/+3
As we'll need the file in the release tarball, rework the rule so that the file is regenerated _only_ if we're in a git repository. With this in place we can build vulkan (anv) from a release tarball. Cc: Jason Ekstrand <jason.ekstrand@intel.com> Cc: Kristian Høgsberg Kristensen <krh@bitplanet.net> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30automake: move the git_sha1.h rule a level upEmil Velikov6-28/+30
This way we can reuse the header from other places like - src/intel/vulkan and src/gallium. Only the former is hooked up atm. Make sure .gitignore is updated, as well as all the users (the mesa code does not need any changes). Also ensure that the file is always created by adding it to the BUILT_SOURCES target. Cc: Jason Ekstrand <jason.ekstrand@intel.com> Cc: Kristian Høgsberg Kristensen <krh@bitplanet.net> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30mesa_glinterop: remove mesa_glinterop typedefsEmil Velikov11-60/+60
As is there are two places that do the typedefs - dri_interface.h and this header. As we cannot include the former in here, just drop the typedefs and use the struct directly (as needed). This is required because typedef redefinition is C11 feature which is not supported on all the versions of GCC used to build mesa. v2: Kill the typedef alltogether, as per Marek. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96236 Cc: Vinson Lee <vlee@freedesktop.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2016-05-30glx/glvnd: automake: include all the sources in libglx_la_SOURCESEmil Velikov1-2/+5
Otherwise the headers will be missing from the release tarball. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30glx/glvnd: remove the final if defined($extension) guardsEmil Velikov1-6/+0
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30glx/glvnd: rework dispatch functions/indices tables lookupEmil Velikov2-13/+13
Rather than checking if the function name maps to a valid entry in the respective table, just create a dummy entry at the end of each table. This allows us to remove some unnessesary "index >= 0" checks, which get executed quite often. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30glx/glvnd: Use strcmp() based binary search in FindGLXFunction()Emil Velikov1-5/+14
It will allows us to find the function within 6 attempts, out of the ~80 entry long table. v2: calculate middle on each iteration, correctly set the lower limit. Reviewed-by: Adam Jackson <ajax@redhat.com> (v1) Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30configure.ac: correct the xlib/xlib-gallium GLX detection for GLVNDChuck Atkins1-26/+29
Things have changed since commit a92910a ("glx: Refactor the configure options for glx implementation choice (v3)") where only a single configure option is used to control the GLX provider. [Emil Velikov: Ensure that the check is moved after the detection code.] Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30glx: Implement the libglvnd interface.Kyle Brenneman12-64/+1356
With reference to the libglvnd branch: https://cgit.freedesktop.org/mesa/mesa/log/?h=libglvnd This is a squashed commit containing all of Kyle's commits, all but two of Emil's commits (to follow), and a small fixup from myself to mark the rest of the glX* functions as _GLX_PUBLIC so they are not exported when building for libglvnd. I (ajax) squashed them together both for ease of review, and because most of the changes are un-useful intermediate states representing the evolution of glvnd's internal API. Co-author: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2016-05-30gallivm: initialize init_native_targets_once_flag correctlyFrederic Devernay1-1/+1
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2016-05-30nvc0/ir: fix emission of predicate spill to registerIlia Mirkin1-1/+2
The lane mask only applies to real mov's, while here we're using PSET. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-05-30nvc0: fix some compute texture validation bits on keplerIlia Mirkin3-2/+7
(a) Make sure to update the TIC in case of an updated buffer address (b) Mark newly-inactive textures dirty so that we update the handle in set_tex_handles. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2016-05-30mesa/xfb: report calculated size for XFB buffer objects.Dave Airlie1-1/+2
This fixes: GL45-CTS.direct_state_access.xfb_buffers This test looks correct to me, we should work out the size value and report it rather than using only the size from the Range interface. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-05-30swr: automake: silence the python invocationEmil Velikov1-7/+8
Cc: Tim Rowley <timothy.o.rowley@intel.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30swr: automake: attempt to fix the out-of-tree buildEmil Velikov1-0/+7
Make sure that the output folder is created otherwise the python scripts yells at us. Cc: 0xe2.0x9a.0x9b@gmail.com Cc: Tim Rowley <timothy.o.rowley@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96238 Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30swr: remove LLVM dependency from source generation rules.Emil Velikov1-2/+2
The dependencies should not mention any files external to the project. If we want to do sanity checks for the LLVM installed on the system we should do that in configure, yet again where is the merit which header gets checked and which doesn't ? Cc: Tim Rowley <timothy.o.rowley@intel.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30swr: add all the generators to the release tarball.Emil Velikov1-0/+24
Namely the python scripts and the knobs.template. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-05-30anv: automake: don't forget to cleanup dev_icd.jsonEmil Velikov1-1/+1
Otherwise `make distcheck' will barf at us as the file is dangling. Ideally this should be part of the clean-local hook, although we include install-lib-links.mk which already has one. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>