summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Increment version to 10.3.0-rc3mesa-10.3-rc3Emil Velikov2014-09-051-1/+1
| | | | Signed-off-by: Emil Velikov <[email protected]>
* st/mesa: use 1.0f as boolean true on drivers without integer supportMarek Olšák2014-09-051-2/+3
| | | | | | | | | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82882 Cc: 10.2 10.3 [email protected] Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit 1a00f247512f22e58548053a99a706615a178672)
* mesa: set UniformBooleanTrue = 1.0f by defaultMarek Olšák2014-09-052-0/+10
| | | | | | | | | | | because NativeIntegers is 0 by default. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82882 Cc: 10.2 10.3 [email protected] Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit d67db73458c8d66861b97675660289a9555695ce)
* freedreno/ir3: fix potential null ptr derefRob Clark2014-09-051-1/+2
| | | | | | | Fix potential segfault in debug code. Signed-off-by: Rob Clark <[email protected]> (cherry picked from commit c06afcede2a0cf214aadc7d4ea149b361ee56ad2)
* freedreno/a2xx: fix segfaultRob Clark2014-09-051-0/+1
| | | | | Signed-off-by: Rob Clark <[email protected]> (cherry picked from commit 306e421887720b149be77c749108bcffcebe34f6)
* freedreno/a3xx: handle first/last level properlyRob Clark2014-09-053-9/+13
| | | | | | | Fixes some assumptions about first_level being zero. Signed-off-by: Rob Clark <[email protected]> (cherry picked from commit bd3b0964675d36e753e273d5667b922cc9baac4a)
* freedreno: implement pipe_flush_resource()Rob Clark2014-09-051-1/+5
| | | | | Signed-off-by: Rob Clark <[email protected]> (cherry picked from commit b40a6c2b17de1f63d70d62608737ed9a259da1c5)
* freedreno: don't ignore src/dst levelRob Clark2014-09-051-39/+63
| | | | | | | Don't ignore src/dst_level in pipe_copy_region. Signed-off-by: Rob Clark <[email protected]> (cherry picked from commit 478a08ebd2b29724f2d440e560ab331c534236cd)
* automake: check if the linker supports --dynamic-listJonathan Gray2014-09-053-2/+28
| | | | | | | | | | | | | | | As older versions of gnu ld did not support --dynamic-list check to see if it is supported before using it. Non gnu linkers such the apple one likely lack this option as well. Fixes the build on OpenBSD which has binutils 2.15 and 2.17. The --dynamic-list option seems to been have introduced sometime after binutils 2.17 was released as it is present in 2.18. Cc: [email protected] Signed-off-by: Jonathan Gray <[email protected]> Reviewed-by: Emil Velikov <[email protected]> (cherry picked from commit 635477dc4b9579dac2fc0fb332dcf2e0e48dd418)
* kms-swrast: Support Prime fd handlingAndreas Pokorny2014-09-052-11/+79
| | | | | | | | | Allows using prime fds as display target and from display target. Test for PRIME capability after initializing kms_swrast screen. Cc: [email protected] Signed-off-by: Andreas Pokorny <[email protected]> (cherry picked from commit 8bcd57a46ce9d4a960253fd89ad21bd3e1776f8b)
* r600g,radeonsi: make sure there's enough CS space before resuming queriesMarek Olšák2014-09-051-0/+28
| | | | | | | | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83432 Cc: "10.2 10.3" <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> (cherry picked from commit 3dbf55c1be5a8867616e475d943c776d8245d0cc)
* mesa: invalidate draw state in glPopClientAttribMarek Olšák2014-09-051-0/+4
| | | | | | | | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82538 Cc: [email protected] Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit 374f3e9e19f064007ea8a864fbd00f1ae7deafd1)
* winsys/svga: Fix incorrect type usage in IOCTL v2Thomas Hellstrom2014-09-051-4/+9
| | | | | | | | | | | | | | | | While similar in layout, the size of the SVGA3dSize type may be smaller than the struct drm_vmw_size type that is part of the ioctl interface. The kernel driver could accordingly overwrite a memory area following the size variable on the stack. Typically that would be another local variable, causing breakage in, for example, ubuntu 12.04.5 where the handle local variable becomes overwritten. v2: Fix whitespace errors Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]> Cc: "10.1 10.2 10.3" <[email protected]> (cherry picked from commit 2d6206140afe9ecb551822ea00c36eeeef7edfbf)
* i965: Handle ir_triop_csel in emit_bool_to_cond_code().Kenneth Graunke2014-09-052-4/+36
| | | | | | | | | | | | ir_triop_csel can return a boolean expression, so we need to handle it here; we simply forgot when we added it. Fixes Piglit's EXT_shader_integer_mix/{vs,fs}-mix-if-bool. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]> Cc: [email protected] (cherry picked from commit 8270b048cf23ee8a8d5377a3af62fce7086e9c61)
* glsl: fix assertion which fails for unsigned array indices.tiffany2014-09-051-1/+1
| | | | | | | | | | According to the GLSL 1.40 spec, section 5.7 Structure and Array Operations: "Array elements are accessed using an expression whose type is int or uint." Cc: <[email protected]> Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit cfc42db592a7d9684d5cee8d4238a0b2dd6f0603)
* i965/copy_image: Divide the x offsets by block width when using the blitterJason Ekstrand2014-09-051-10/+21
| | | | | | | | | Signed-off-by: Jason Ekstrand <[email protected]> Cc: "10.3" <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82804 Tested-by: Tapani Pälli <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit 11ee9a4d99fd68be4c09341225e7faeff70d1b9b)
* i965/copy_image: Use the correct block dimensionJason Ekstrand2014-09-051-6/+6
| | | | | | | | | Signed-off-by: Jason Ekstrand <[email protected]> Cc: "10.3" <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82804 Tested-by: Tapani Pälli <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit 499acf6e4a758be74dc5813a8c174da4360e046d)
* meta/copy_image: Use the correct texture level when creating viewsJason Ekstrand2014-09-051-1/+1
| | | | | | | | | | | | | | | Previously, we were accidentally assuming that the level of both textures was 0. Now we actually use the correct level in our hacked texture view. This doesn't 100% fix the meta path because the texture type is getting lost somewhere in the pipeline. However, it actually copies to/from the correct layer now. Signed-off-by: Jason Ekstrand <[email protected]> Cc: "10.3" <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82804 Tested-by: Tapani Pälli <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit b608cd7fbf0c98c73fe5d0c87db51c0a244d420f)
* i965/copy_image: Use the correct texture levelJason Ekstrand2014-09-051-4/+6
| | | | | | | | | | | | | Previously, we were using the source images level for both source and destination. Also, we weren't taking the MinLevel from a potential texture view into account. This commit fixes both problems. Signed-off-by: Jason Ekstrand <[email protected]> Cc: "10.3" <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82804 Tested-by: Tapani Pälli <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit fcb6d5b9ef0d3559fa213c673ed996f194f56c2a)
* r600g: fix alpha-test with HyperZ enabled, fixing L4D2 tree corruptionMarek Olšák2014-09-051-6/+6
| | | | | | | | | | | | *_update_db_shader_control depends on the alpha test state. The problem was it was in a block which is only entered if the pixel shader is changed. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74863 Cc: [email protected] Tested-by: Benjamin Bellec <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> (cherry picked from commit 8abdc3c4a9c81e359d5dc1694253b05dd5562c95)
* meta: Make MESA_META_DRAW_BUFFERS restore properlyKristian Høgsberg2014-09-051-34/+4
| | | | | | | | | | | | | | | | | | | | | A meta begin/end pair with MESA_META_DRAW_BUFFERS will change visible GL state. We recreate the draw buffer enums from the buffer bitfield, which changes GL_BACK to GL_BACK_LEFT (and GL_FRONT to GL_FRONT_LEFT). This commit modifes the save/restore logic to instead copy the buffer enums from the gl_framebuffer and then set them on restore using _mesa_drawbuffers(). It's not clear how this breaks the benchmark in 82796, but fixing meta to not leak the state change fixes the regression. No piglit regressions. Reviewed-by: Kenneth Graunke <[email protected]> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=82796 Signed-off-by: Kristian Høgsberg <[email protected]> Cc: [email protected] (cherry picked from commit 8f55174fbdc27076f310c4dfb1f87072588b8b0b)
* Revert "mesa: fix make tarballs"Emil Velikov2014-09-052-3/+1
| | | | | | | | | | | | | | | | | This reverts commit 0fbb9a599df898d4e1166d6d6f00cb34a0524bea. Rather than adding hacks around the issue drop the sources from the final tarball, and re-add them back with 'make dist'. This fixes a problem when running parallel 'make install' fails as it recreates sources and triggers partial recompilation. Cc: "10.2 10.3" <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83355 Reported-by: Maarten Lankhorst <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Tested-by: Maarten Lankhorst <[email protected]> Tested-by: Kai Wasserbäch <[email protected]> (cherry picked from commit 5a4e0f3873657d874eb5ff52819f42ea38d54b91)
* i965: add missing parens in vec4 visitorDave Airlie2014-09-051-1/+2
| | | | | | | | | | coverity reported this, Matt said it look like missing parens, not bad identing, so lets try that. Cc: "10.2 10.3" <[email protected]> Reviewed-by: Chris Forbes <[email protected]> Signed-off-by: Dave Airlie <[email protected]> (cherry picked from commit 94a909ec2df779bfdac6f42a25077b427b3873ea)
* nv50: attach the buffer bo to the miptree structuresIlia Mirkin2014-09-051-8/+5
| | | | | | | | | | The current code... makes no sense. Use nouveau_bo_ref to attach the bo to the exposed resource so as to have the proper lifetime guarantees. Tested-by: Emil Velikov <[email protected]> Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2 10.3" <[email protected]> (cherry picked from commit 2c440433130d3c64635684355a3667d145a188e3)
* nv50: mt address may not be the underlying bo's start addressIlia Mirkin2014-09-053-12/+14
| | | | | | | | | | | | | | | With VP2, nv50_miptree is faked because the underlying bo's have to be laid out in a certain way. This is done by adjusting the address. Make sure that blits (and everything else for consistency) use the mt address rather than the bo address as a base. This fixes retrieving chroma plane with VDPAU. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82255 Tested-by: Emil Velikov <[email protected]> Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2 10.3" <[email protected]> (cherry picked from commit 9d52e551a5874e54bc80f306bf3cacbad2441315)
* nv50: set the miptree address when clearing bo's in vp2 initIlia Mirkin2014-09-051-0/+2
| | | | | | | | | | | The mt address is about to be used more, make sure it's set appropriately. Reported-by: Emil Velikov <[email protected]> Tested-by: Emil Velikov <[email protected]> Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2 10.3" <[email protected]> (cherry picked from commit 2528d402b9e35601d4631cd80a301bacd87dfc95)
* nv50/ir: avoid creating instructions that can't be emittedIlia Mirkin2014-09-051-0/+4
| | | | | | | | | | | | When constant folding a MAD operation, we first fold the multiply and generate an ADD. However we do so without making sure that the immediate can be handled in the saturate case. If it can't, load the immediate in a separate instruction. Reported-by: Tiziano Bacocco <[email protected]> Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2 10.3" <[email protected]> (cherry picked from commit 6c2b079231f84b09b3f35183930afe522baee168)
* nvc0: don't make 1d staging textures linearIlia Mirkin2014-09-051-1/+0
| | | | | | | | | | | | Experimentally, the sampler doesn't appear to like these, neither as buffer nor as rect textures. So remove 1D from the list of texture types to make linear when used for staging. This fixes the OSD in mplayer for VDPAU. Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2 10.3" <[email protected]> (cherry picked from commit 115d9a5525e74573ced9209063a1d4a551e6eaa4)
* nv50: zero out unbound samplersIlia Mirkin2014-09-051-2/+5
| | | | | | | | | | Samplers are only defined up to num_samplers, so set all samplers above nr to NULL so that we don't try to read them again later. Tested-by: Christian Ruppert <[email protected]> Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2 10.3" <[email protected]> (cherry picked from commit 362cd26960aff2e997584064443dcc0418516ae6)
* nvc0/ir: avoid infinite recursion when finding first uses of texIlia Mirkin2014-09-052-8/+29
| | | | | | | | | | | | In certain circumstances, findFirstUses could end up doubling back on instructions it had already processed, resulting in an infinite recursion. Avoid this by keeping track of already-visited instructions. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83079 Tested-by: Tobias Klausmann <[email protected]> Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2 10.3" <[email protected]> (cherry picked from commit c4bb436f7660c951cd27e52660cf825da68793e5)
* r600g: fix layered clearMarek Olšák2014-09-051-1/+2
| | | | | | Cc: [email protected] Acked-by: Michel Dänzer <[email protected]> (cherry picked from commit d159c5e3e0bdfe3c19a2da7526133fdd94ffee79)
* glsl_to_tgsi: allocate and enlarge arrays for temporaries on demandMarek Olšák2014-09-051-18/+33
| | | | | | | | | | | | This fixes crashes if the number of temporaries is greater than 4096. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66184 v2: added fail paths for realloc failures Cc: 10.2 10.3 [email protected] Reviewed-by: Ilia Mirkin <[email protected]> (cherry picked from commit 482def592fede9c4c2f1e6944df42e8319dd6b78)
* Increment version to 10.3.0-rc2mesa-10.3-rc2Emil Velikov2014-09-011-1/+1
| | | | Signed-off-by: Emil Velikov <[email protected]>
* mesa: fix make tarballsEmil Velikov2014-09-012-2/+3
| | | | | | | | | | | | | | Current method of generating distribution tar-balls involves manually invoking make + target name in the appropriate places. This temporary solution is used until we get 'make dist' working. Currently it does not work, as in order to have the target (which is also a filename) available in the final Makefile we need to add a PHONY target + use the correct target name. Cc: "10.2 10.3" <[email protected]> Signed-off-by: Emil Velikov <[email protected]> (cherry picked from commit 88cbe3908f0ea08228a5ffb1808f98b6906c4416)
* i965/vec4: Update register coalescing test.Matt Turner2014-08-311-4/+1
| | | | | | | | In commit 04895f5c I added support for reswizzling writemasks. This test was checking that we didn't support this. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82881 (cherry picked from commit 8b5ac1df17608e0d0d5ce412988ee8de97f61405)
* i965: Add 2x MSAA support to Broadwell fast clear code.Kenneth Graunke2014-08-311-0/+1
| | | | | | | | | | | | | According to the cited documentation section (but in the newer docs), x_scaledown is the same for 2x and 4x MSAA. +47 piglits. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83081 Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]> Cc: "10.3" <[email protected]> (cherry picked from commit e34a363a781a24b2cf6930c4d37f781ffec8a19a)
* radeon/uvd: fix field handling on R6XX style UVDChristian König2014-08-281-2/+5
| | | | | | | | The first UVD generation can only do frame based output. Signed-off-by: Christian König <[email protected]> (cherry picked from commit 80771e47b6c1e47ab55f17311e1d4e227a9eb3d8) Nominated-by: Alex Deucher <[email protected]>
* vl/compositor: set the scissor before clearing the render targetChristian König2014-08-261-1/+1
| | | | | | | | | Otherwise we clear areas that shouldn't be cleared. Signed-off-by: Christian König <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Cc: [email protected] (cherry picked from commit 03a99ba9e41ea86355a4febbe0b1a114d5455b9f)
* st/vdpau: fix vlVdpOutputSurfaceRender(Output|Bitmap)SurfaceChristian König2014-08-263-15/+71
| | | | | | | | | | | Correctly handle that the source_surface is only optional. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80561 Signed-off-by: Christian König <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Cc: [email protected] (cherry picked from commit b73c20759fe1b4a96296bed58637f5ded7c9155c)
* glcpp: Don't use alternation in the lookahead for empty pragmas.Carl Worth2014-08-251-2/+8
| | | | | | | | | | | | | | | | | | | | | We've found that there's a buffer overrun bug in flex that's triggered by using alternation in a lookahead pattern. Fortunately, we don't need to match the exact {NEWLINE} expression to detect an empty pragma. It suffices to verify that there are no non-space characters before any newline character. So we can use a simple [\r\n] to get the desired behavior while avoiding the flex bug. Fixes the regression of piglit's 17000-consecutive-chars-identifier test, (which has been crashing since commit 04e40fd337a244ee77ef9553985e9398ff0344af ). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82472 Signed-off-by: Carl Worth <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> CC: <[email protected]> (cherry picked from commit 23163df24cf96107ee8ccb372db20f49e9d88948)
* Makefile: Switch from md5sums to sha256sumsCarl Worth2014-08-251-5/+5
| | | | | | | | | We switched to these several stable releases ago, (since the MD5 algorithm has been broken for some time), but only now did I get around to fixing this in the Makefile rather than just performing this step manually. CC: "10.2 10.3" <[email protected]> (cherry picked from commit 46d03d37bf3a75e86f9f8ab56c6a939d04f23383)
* radeonsi: add new SI pci idsAlex Deucher2014-08-251-0/+4
| | | | | | Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] (cherry picked from commit 153df688349dd6e55fa4c280ed6c8abd02c5f890)
* radeonsi: add new CIK pci idsAlex Deucher2014-08-251-0/+3
| | | | | | Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] (cherry picked from commit f50b6b489534f8f362953cbe08d37233f1eab669)
* i965: Disable try_emit_b2f_of_compare on Gen4-6.Kenneth Graunke2014-08-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | The optimization relies on CMP setting the destination to 0, which is equivalent to 0.0f. However, early platforms only set the least significant byte, leaving the other bits undefined. So, we must disable the optimization on those platforms. Oddly, Sandybridge wasn't reported as broken. The PRM states that it only sets the LSB, but the internal documentation says that it follows the IVB behavior. Since it wasn't reported as broken, we believe it really does follow the IVB behavior. v2: Allow the optimization on Sandybridge (requested by Matt). +32 piglits on Ironlake. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?=79963 Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Chris Forbes <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit 97d03b9366bfa55b27feb92aa5afacd9c5f6f421)
* i965: Fix JIP/UIP calculations.Matt Turner2014-08-221-8/+6
| | | | | | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82846 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82929 (cherry picked from commit d77f5603a5de26e66561ec003118bbfb1a07666b)
* Increment version to 10.3.0-rc1mesa-10.3-rc1Carl Worth2014-08-211-1/+1
|
* r600g: Fix flat/smooth shade state toggle10.3-branchpointGlenn Kennard2014-08-211-1/+3
| | | | | | | | | | | | | If only the flat/smooth shade state changed between two render calls the prior code would miss updating the hardware state. Also add check for sprite coord, potentially same type of issue otherwise for it. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81967 Signed-off-by: Glenn Kennard <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
* r600g/compute: Don't initialize vertex_buffer_state masks to 0x2Tom Stellard2014-08-211-3/+0
| | | | | | | | | | | | | | cs_vertex_buffer_state.enabled_mask and cs_vertex_buffer_state.dirty_mask are both updated when r600_set_constant_buffer() is called, so we don't need to manually update these values. This fixes a crash with OpenCL programs that have a kernel with no arguments. https://bugs.freedesktop.org/show_bug.cgi?id=82671 CC: "10.2" <[email protected]>
* r600g/compute: Use the first parameter in evergreen_set_global_binding()Tom Stellard2014-08-211-2/+3
|
* pipe-loader: Fix memory leak v2Tom Stellard2014-08-212-2/+2
| | | | | | | | v2: - Change driver_name to char* Reviewed-by: Emil Velikov <[email protected]> CC: "10.2" <[email protected]>