summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* docs: add release notes for 11.0.9mesa-11.0.9Emil Velikov2016-01-221-0/+126
| | | | Signed-off-by: Emil Velikov <[email protected]>
* Update version to 11.0.9Emil Velikov2016-01-221-1/+1
| | | | Signed-off-by: Emil Velikov <[email protected]>
* egl/dri2: expose srgb configs when KHR_gl_colorspace is availableEmil Velikov2016-01-221-0/+2
| | | | | | | | | | | | | | | | Otherwise the user has no way of using it, and we'll try to access the linear one. v2: - Bail out when KHR_gl_colorspace is missing and srgb is set (Marek) Cc: Chih-Wei Huang <[email protected]> Cc: "11.0 11.1" <[email protected]> Fixes: c2c2e9ab604(egl: implement EGL_KHR_gl_colorspace (v2)) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91596 Signed-off-by: Emil Velikov <[email protected]> Tested-by: Mauro Rossi <[email protected]> (cherry picked from commit 54702c2fa1a146f45a1f8c35abe2b529e24b2acf)
* i915: correctly parse/set the context flagsEmil Velikov2016-01-221-0/+2
| | | | | | | | | | | | | | | | | | | With an earlier commit we've spit the flags parsing to a separate function, but forgot to update all the dri modules to use it. Noticed when we've enabled KHR_debug for every dri module - fdo#93048 Fixes: 38366c0c6e7 "dri_util: Don't assume __DRIcontext->driverPrivate is a gl_context" Cc: Mark Janes <[email protected]> Cc: "11.0 11.1" <[email protected]> Cc: Kristian Høgsberg <[email protected]> Cc: Ian Romanick <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Mark Janes <[email protected]> Tested-by: Mark Janes <[email protected]> (cherry picked from commit 72fda2b710d864d23aec1e8f959147d05c5ff3f3)
* llvmpipe: use vpkswss when dst is signedOded Gabbay2016-01-221-16/+15
| | | | | | | | | | | | | | | | | | | | This patch fixes a bug when building a pack instruction. For POWER (altivec), in case the destination is signed and the src width is 32, we need to use vpkswss. The original code used vpkuwus, which emits an unsigned result. This fixes the following piglit tests on ppc64le: - spec@arb_color_buffer_float@gl_rgba8-drawpixels - shaders@glsl-fs-fogscale I've also corrected some coding style issues in the function. v2: Returned else statements to vmware style Signed-off-by: Oded Gabbay <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> (cherry picked from commit 679a654a77f392cc9f8e2b51222b277bd1783ae5)
* radeonsi: don't miss changes to SPI_TMPRING_SIZEMarek Olšák2016-01-221-2/+7
| | | | | | | | | | | I'm not sure about the consequences of this bug, but it's definitely dangerous. This applies to SI, CIK, VI. Cc: 11.0 11.1 <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> (cherry picked from commit dc96a18d24409102e36cdfd7de0552f66c3925bf)
* i965: Fix crash when calling glViewport with no surface boundNeil Roberts2016-01-151-2/+4
| | | | | | | | | | | | | | If EGL_KHR_surfaceless_context is used then glViewport can be called with NULL for the draw and read surfaces. This was previously causing a crash because the i965 driver tries to use this point to invalidate the surfaces and it was derferencing the NULL pointer. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93257 Cc: Nanley Chery <[email protected]> Cc: "11.1" <[email protected]> Tested-by: Nanley Chery <[email protected]> Reviewed-by: Nanley Chery <[email protected]> (cherry picked from commit 8c5310da9d1cbf2272f72d3ed4264544456a4683)
* i965: use _mesa_delete_buffer_objectNicolai Hähnle2016-01-151-1/+1
| | | | | | | | | | This is more future-proof, plugs the memory leak of Label and properly destroys the buffer mutex. Reviewed-by: Marek Olšák <[email protected]> Cc: "11.0 11.1" <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 051603efd546efea9975a5109910171a2e7853a4)
* i915: use _mesa_delete_buffer_objectNicolai Hähnle2016-01-151-1/+1
| | | | | | | | | | This is more future-proof, plugs the memory leak of Label and properly destroys the buffer mutex. Reviewed-by: Marek Olšák <[email protected]> Cc: "11.0 11.1" <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 1b74c02e83c59a51f155b64de0444ea3df183af6)
* radeon: use _mesa_delete_buffer_objectNicolai Hähnle2016-01-151-1/+1
| | | | | | | | | | This is more future-proof, plugs the memory leak of Label and properly destroys the buffer mutex. Reviewed-by: Marek Olšák <[email protected]> Cc: "11.0 11.1" <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 8882b46226152733960ae006e3856baf00aa71f3)
* st/mesa: use _mesa_delete_buffer_objectNicolai Hähnle2016-01-151-2/+1
| | | | | | | | | | | | | This is more future-proof than the current code. Reviewed-by: Marek Olšák <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit 1c2187b1c225b2f7e1891544d184bde60390977e) [Emil Velikov: resolve trivial conflicts] Signed-off-by: Emil Velikov <[email protected]> Conflicts: src/mesa/state_tracker/st_cb_bufferobjects.c
* mesa/bufferobj: make _mesa_delete_buffer_object externally accessibleNicolai Hähnle2016-01-152-1/+5
| | | | | | | | | | gl_buffer_object has grown more complicated and requires cleanup. Using this function from drivers will be more future-proof. Reviewed-by: Marek Olšák <[email protected]> Cc: "11.0 11.1" <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 6aed083b9304cd718ee5bc7839a6222b982d3e3b)
* nvc0: scale up inter_bo size so that it's 16M for a 4K videoIlia Mirkin2016-01-151-2/+5
| | | | | | | | | Experimentally, 4M causes corruption and slowness, try to ramp it up with size instead. Signed-off-by: Ilia Mirkin <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit b16c9be4a5561bd825176a228c300331f989e837)
* nv50,nvc0: fix crash when increasing bsp bo size for h264Ilia Mirkin2016-01-152-4/+4
| | | | | | | | | H264 doesn't have a bitplane bo. We just need a device reference, so use the one from the client. Signed-off-by: Ilia Mirkin <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit b5f2f7073f047b4e4128cf05af8dddf356f9b48c)
* nv50,nvc0: make sure there's pushbuf space and that we ref the bo earlyIlia Mirkin2016-01-144-6/+5
| | | | | | | | | | | | | | | | | | | First off, we can't flush in the middle of a command. Secondly requesting the extra push space might cause a flush to happen. If that flush happens, we'd have to do the PUSH_REFN again. So instead do PUSH_REFN after the push space request. This helps avoid rare crashes with supertuxkart in libdrm due to assertion failures. Signed-off-by: Ilia Mirkin <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit c1d14c6817e3fa9a1c04f9b6c51b4ca601637843) [Emil Velikov: attribute for the nvc0_query{_hw,}.c rename/split] Signed-off-by: Emil Velikov <[email protected]> Conflicts: src/gallium/drivers/nouveau/nvc0/nvc0_query_hw.c src/gallium/drivers/nouveau/nvc0/nvc0_shader_state.c src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c
* nvc0: Set winding order regardless of domain.Kenneth Graunke2016-01-141-2/+4
| | | | | | | | | | | Quads need to respect winding order, too - not just triangles. Fixes rendering in GFXBench 4.0's tessellation benchmark. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit 65d3f85eb3efb326a826c2db0225340d5421a389)
* nv50/ir: float(s32 & 0xff) = float(u8), not s8Ilia Mirkin2016-01-141-0/+3
| | | | | | | | | Make sure to make conversion unsigned when we're ANDing the high bits away. Fixes corruption in dolphin. Signed-off-by: Ilia Mirkin <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit 724134f68322087ef88bc590febd0011167ae367)
* r600: fix constant buffer size programmingGrazvydas Ignotas2016-01-142-2/+2
| | | | | | | | | | | | | | | | | | | When buffer size is less than 16, zero ends up being programmed as size, which prevents the hardware from fetching the correct values. Fix it by combining shift and align so that the value is always rounded up. Cc: "11.1 11.0 10.6" <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92229 Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> (cherry picked from commit da0e216e069bd064199ed04b52de6fb23d810806) [Emil Velikov: s/radeon_set_context_reg/r600_write_context_reg/] Signed-off-by: Emil Velikov <[email protected]> Conflicts: src/gallium/drivers/r600/evergreen_state.c src/gallium/drivers/r600/r600_state.c
* nvc0: don't forget to reset VTX_TMP bufctx slot after blit completionIlia Mirkin2016-01-141-0/+2
| | | | | | | | Also release the scratch allocation if any. Signed-off-by: Ilia Mirkin <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit 109c348284843054f708f4403260739b7db18275)
* cherry-ignore: add the dri3 glx null check patchEmil Velikov2016-01-141-0/+3
| | | | | | | The branch (which is at state prior to the dri3 loader rework), already includes the check. Signed-off-by: Emil Velikov <[email protected]>
* ralloc: Fix ralloc_adopt() to the old context's last child's parent.Kenneth Graunke2016-01-141-0/+1
| | | | | | | | | | | | I was cleverly using one iteration to obtain a pointer to the last item in ralloc's singly list child list, while also setting parents. Unfortunately, I forgot to set the parent on that last item. Cc: "11.1 11.0 10.6" <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit 14193e4643370db92210710f2ef152c693d6c4ff)
* freedreno/ir3: fix 32-bit builds with pointer-to-int-cast error enabledRob Herring2016-01-141-1/+1
| | | | | | | | | | Android builds with -Werror=pointer-to-int-cast causing an error on 32-bit builds. Cc: "11.0 11.1" <[email protected]> Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Rob Clark <[email protected]> (cherry picked from commit b201a6ed9f6001ceaa1fc2eaf8a409b044ec97a3)
* gallium/radeon: only dispose locally created target machine in ↵Nicolai Hähnle2016-01-141-2/+3
| | | | | | | | | | radeon_llvm_compile Unify the cleanup paths of the function rather than duplicating code. Cc: "11.0 11.1" <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> (cherry picked from commit 0a6a17b9d72c57f0840d91756924632fee91f2c2)
* mesa: Don't leak ATIfs instructions in DeleteFragmentShaderMiklós Máté2016-01-141-1/+1
| | | | | | Reviewed-by: Ian Romanick <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit 7279453da5c847d8f63f7e1f9e30ac2b03e6b3e9)
* cherry-ignore: add patch already in branchEmil Velikov2016-01-141-0/+3
| | | | | | Marek's patch has landed in branch, yet the script still lists it. Signed-off-by: Emil Velikov <[email protected]>
* docs: add sha256 checksums for 11.0.8Emil Velikov2015-12-211-1/+2
| | | | Signed-off-by: Emil Velikov <[email protected]>
* docs: add release notes for 11.0.8mesa-11.0.8Emil Velikov2015-12-211-0/+199
| | | | Signed-off-by: Emil Velikov <[email protected]>
* Update version to 11.0.8Emil Velikov2015-12-211-1/+1
| | | | Signed-off-by: Emil Velikov <[email protected]>
* r600g: write all MRTs only if there is exactly one output (fixes a hang)Marek Olšák2015-12-211-5/+3
| | | | | | | | | | | | This fixes a hang in piglit/arb_blend_func_extended-fbo-extended-blend-pattern_gles2 on REDWOOD. Cc: 11.0 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> (cherry-picked from commit b5b87c4ed1dfd58aec8905e0514c9ba92ba83e1d) Conflicts: src/gallium/drivers/r600/r600_shader.c
* tgsi/scan: add flag colors_writtenMarek Olšák2015-12-212-0/+4
| | | | | | | | This is a prerequisite for the following r600g fix. Cc: 11.0 11.1 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> (cherry picked from commit eb4813a9524e1a61f46bf45150adb1bd78564863)
* radeon/uvd: uv pitch separation for stoneyBoyuan Zhang2015-12-212-1/+6
| | | | | | | | | v2: set the behaviour default for future ASICs. Signed-off-by: Boyuan Zhang <[email protected]> Reviewed-by: Leo Liu <[email protected]> Cc: [email protected] (cherry picked from commit f55f134a033a61d67c2a71bbe57f85eb3484eec1)
* ttn: add TEX2 supportIlia Mirkin2015-12-211-3/+11
| | | | | | | | | | This fixes CubeArrayShadow tests (where the shadow comes in via a second arg to the TEX2 instruction). Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Rob Clark <[email protected]> Cc: [email protected] (cherry picked from commit 4fd24caf92fc995e4a730181e0f179a7f2218e60)
* Revert "i965/vec4: Use byte offsets for UBO pulls on Sandy Bridge"Emil Velikov2015-12-193-31/+10
| | | | | | | | | | This reverts commit 34cbde2e6320a55f54180e7f9f68db435b58e542. As mentioned in the beginning of this revert series - let's pull the lot out, as they cause regressions. Additionally they are bugfixes (as opposed to regression fixes), which if needed will need to be reworked.
* Revert "i965/fs: Use a stride of 1 and byte offsets for UBOs"Emil Velikov2015-12-193-13/+16
| | | | | | This reverts commit 0ae22b3ebde780c2c88b5bfceaf172e311bd4742. See the previous reverts.
* Revert "i965/vec4: Use a stride of 1 and byte offsets for UBOs"Emil Velikov2015-12-193-7/+27
| | | | | | This reverts commit 147c3fbdb3f779f5172304e3be10cc27e0e67be7. See the previous reverts.
* Revert "i965/state: Get rid of dword_pitch arguments to buffer functions"Emil Velikov2015-12-195-14/+30
| | | | | | This reverts commit 683d65dae3e673ee95d544008874edf1255e87cf. See previous commit.
* Revert "i965/nir: Remove unused indirect handling"Emil Velikov2015-12-191-11/+33
| | | | | | | | This reverts commit 4acb394f459b58725a2059a911b6236703c44eb2. As discussed with Jason on IRC. Earlier commit in the series, causes regression, and "there's no point in having the others in there, if we cannot get to the last patch."
* configura.ac: fix test for SSE4.1 assembler supportOded Gabbay2015-12-181-2/+3
| | | | | | | | | | | | | | | | | This patch modifies the SSE4.1 test in configure.ac to use a global variable to initialize vector variables. In addition, we now return the value of the computation instead of 0. This is done so gcc 4.9 (and lower) won't optimize the SSE4.1 assembly instructions (when using -O1 and higher), because then the configure test might incorrectly pass even though the assembler doesn't support the SSE4.1 instructions (the test will pass because the compiler does support the intrinsics). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91806 Cc: "11.0 11.1" <[email protected]> Signed-off-by: Oded Gabbay <[email protected]> Reviewed-by: Emil Velikov <[email protected]> (cherry picked from commit 6e44bbe0f5496b1aea2b4a29adae7990b62fda33)
* configure: check for python2.7 for PYTHON2Jonathan Gray2015-12-181-1/+1
| | | | | | | | | | Check for a 'python2.7' binary, 'python' and 'python2' are not provided by the OpenBSD python 2.7.x packages. Signed-off-by: Jonathan Gray <[email protected]> Cc: "11.0 11.1" <[email protected]> Reviewed-by: Emil Velikov <[email protected]> (cherry picked from commit 4ef44bb484cbc0336d4fdcb8edce889ed1283732)
* configure.ac: use pkg-config for libelfJonathan Gray2015-12-183-6/+16
| | | | | | | | | | | | | | | | | | | Use PKG_CHECK_MODULES to get the flags to link libelf v2: keep AC_CHECK_LIB as a fallback for elfutils provided libelf that doesn't install a pkg-config file. Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Tested-by: Michel Dänzer <[email protected]> Cc: "11.0 11.1" <[email protected]> Reviewed-by: Emil Velikov <[email protected]> (cherry picked from commit 7f585a6a98d0553ec0ba48e18b1d9bac1256881a) [Emil Velikov: squash trivial conflict] Signed-off-by: Emil Velikov <[email protected]> Conflicts: src/gallium/targets/opencl/Makefile.am
* nvc0: free memory allocated by the prog which reads MP perf countersSamuel Pitoiset2015-12-181-0/+1
| | | | | | | | | | This fixes a long time ago memory leak (even before all my query related changes). Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit 9aca60bfb07d87d82aff943a23cfa693e2712528)
* meta/generate_mipmap: Work-around GLES 1.x problem with GL_DRAW_FRAMEBUFFERIan Romanick2015-12-181-4/+13
| | | | | | | | | | | | | | | | | | | GL_DRAW_FRAMEBUFFER does not exist in OpenGL ES 1.x, and since _mesa_meta_begin hasn't been called yet, we have to work-around API difficulties. The whole reason that GL_DRAW_FRAMEBUFFER is used instead of GL_FRAMEBUFFER is that the read framebuffer may be different. This is moot in OpenGL ES 1.x. I have another patch series that would also fix this (by removing the calls to _mesa_BindFramebuffer and friends), but it's not quite ready yet... and I think it may be a bit heavy for some stable branches. Consider this a stop-gap fix. Signed-off-by: Ian Romanick <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93215 Cc: "11.0 11.1" <[email protected]> Reviewed-by: Anuj Phogat <[email protected]> (cherry picked from commit 96dc732ed81f48d8bbc7aa6fb4d9c2833b691189)
* glsl: assign varying locations to tess shaders when doing SSOIlia Mirkin2015-12-181-4/+4
| | | | | | | | | | | | GRID Autosport uses SSO shaders. When a tessellation evaluation shader is passed through this, it triggers assertion failures down the line with unassigned varying locations. Make sure to do this when the first shader in the pipeline is not a vertex shader. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit eca8f38dcffb700fdfe413a707d524e6a84bd453)
* cherry-ignore: don't pick a specific i965 formats patchEmil Velikov2015-12-181-0/+3
| | | | | | | commit 839793680f9 "MESA_FORMAT_B8G8R8X8_SRGB for RGB visuals" causes a handfull of regressions, some of which listed in fdo#92759. Signed-off-by: Emil Velikov <[email protected]>
* i965: Add B8G8R8X8_SRGB to the alpha format overrideNeil Roberts2015-12-181-0/+4
| | | | | | | | | | | | brw_init_surface_formats overrides the render format for RGBX formats which aren't supported for rendering so that they internally use RGBA instead. However, B8G8R8X8_SRGB was missing so it wasn't marked as a renderable format. This patch just adds it. Cc: "11.0 11.1" <[email protected]> Cc: Ilia Mirkin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> (cherry picked from commit 43f4be5f06b7a96b96a3a7b43f5112139a1f423a)
* i965: Add MESA_FORMAT_B8G8R8X8_SRGB to brw_format_for_mesa_formatNeil Roberts2015-12-181-0/+1
| | | | | | | | | | This will be used in a subsequent patch as the format for RGB visuals. Cc: "11.0 11.1" <[email protected]> Cc: Ilia Mirkin <[email protected]> Suggested-by: Ilia Mirkin <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> (cherry picked from commit c769efda939e06338d41e1046a5f954c690951d5)
* nv50/ir: can't have predication and immediatesIlia Mirkin2015-12-181-0/+3
| | | | | | Signed-off-by: Ilia Mirkin <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit 6aca7fecb7f7b6c67cf0315e781060a8d1d4b704)
* gallium/radeon: fix Hyper-Z hangs by programming PA_SC_MODE_CNTL_1 correctlyMarek Olšák2015-12-183-5/+18
| | | | | | | | | | | | | | | | | This is the recommended setting according to hw people and it makes Hyper-Z stable. Just the two magic states. This fixes Evergreen, Cayman, SI, CI, VI (using the Cayman code). Cc: 11.0 11.1 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> (cherry picked from commit d3c08309abd17b6e0d466b677af57e3cc74b0e00) [Emil Velikov: s/radeon_set_context_reg/r600_write_context_reg/g] Signed-off-by: Emil Velikov <[email protected]> Conflicts: src/gallium/drivers/r600/evergreen_state.c src/gallium/drivers/radeon/cayman_msaa.c
* radeonsi: apply the streamout workaround to Fiji as wellMarek Olšák2015-12-181-1/+3
| | | | | | Cc: 11.0 11.1 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> (cherry picked from commit 787ada6bf65a58b1bab5a30be86698e9b7b0797e)
* radeonsi: don't call of u_prims_for_vertices for patches and rectanglesMarek Olšák2015-12-181-1/+13
| | | | | | | | | | Both caused a crash due to a division by zero in that function. This is an alternative fix. Cc: 11.0 11.1 <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> (cherry picked from commit 0f9519b938d78ac55e8e5fdad5727a79baf18d42)