aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gm107/ir: indirect handle goes first on maxwell alsoIlia Mirkin2015-08-191-8/+4
| | | | | | | | Fixes fs-simple-texture-size.shader_test Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit b346a84e270a50f0a8f1a6e474a51da04dd72f0e)
* radeonsi: properly set the raster_config for KVAlex Deucher2015-08-191-5/+9
| | | | | | | | | | This enables the second RB on asics that support it which should boost performance. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 649975e7162cc4ee0586ee76d24321cd7250581f)
* egl/x11: don't abort when creating a DRI2 drawable failsFrank Binns2015-08-191-1/+19
| | | | | | | | | | | | | | When calling either eglCreateWindowSurface or eglCreatePixmapSurface it was possible for an application to be aborted as a result of it failing to create a DRI2 drawable on the server. This could happen due to an application passing in an invalid native drawable handle, for example. v2: Handle the case where an error has been set on the connection Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Frank Binns <frank.binns@imgtec.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit 9a4eae61c24858d69d731d63b141d2acaed40d69)
* r600g: allow setting geometry shader sampler statesMarek Olšák2015-08-191-5/+0
| | | | | | | | | We were ignoring them. This is both hilarious and sad. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 8c0b943e87b48e7359230825cc06fbdd059a9e58)
* r600g: fix polygon offset scaleMarek Olšák2015-08-192-2/+2
| | | | | | | | | | | | | The value was copied from r300g, which uses 1/12 subpixels, but this hw uses 1/16 subpixels. Should fix piglit: gl-1.4-polygon-offset (formerly a glean test) (untested, ported from radeonsi) Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit d335aad11b208bcdcc75a99d4b6c5fc8b69ce368)
* radeonsi: fix polygon offset scaleMarek Olšák2015-08-191-1/+1
| | | | | | | | | | | The value was copied from r300g, which uses 1/12 subpixels, but this hw uses 1/16 subpixels. Fixes piglit: gl-1.4-polygon-offset (formerly a glean test) Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit bfac8ba9d32be351277c7ea814ac9848bdcb1f16)
* mesa/formats: don't byteswap when building array formatsOded Gabbay2015-08-191-11/+3
| | | | | | | | | | | | | | Because we build here an array format, we don't need to swap the bytes for big endian. If it isn't an array format, the bytes will be swapped in _mesa_format_convert. v2: remove temp variable Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 5f1d5b1c7857f8680b47a7a450ee9e4530e22c6f)
* mesa/formats: Don't flip channels of null array formatsJason Ekstrand2015-08-191-1/+2
| | | | | | | | | | | Before, if we encountered an array format of 0 on a BE system, we would flip all the channels even though it's an invalid format. This would result in a mostly invalid format with a swizzle of yyyy or wwww. Instead, we should just return 0 if the array format stashed in the format info is invalid. Cc: "10.6 10.5" <mesa-stable@lists.freedesktop.org> (cherry picked from commit e3eb91af804f449005a2ff535c805eaa1d579d99)
* mesa/formats: Fix swizzle flipping for big-endian targetsJason Ekstrand2015-08-191-4/+12
| | | | | | | | | | | | | | The swizzle defines where in the format you should look for any given channel. When we flip the format around for BE targets, we need to change the destinations of the swizzles, not the sources. For example, say the format is an RGBX format with a swizzle of xyz1 on LE. Then it should be wzy1 on BE; however, the code as it was before, would have made it 1zyx on BE which is clearly wrong. Reviewed-by: Iago Toral <itoral@igalia.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Cc: "10.6 10.5" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 28d1a506c8d09fa66170978c85566c34cbf1cc0a)
* mesa/formats: Only do byteswapping for packed formatsJason Ekstrand2015-08-191-3/+3
| | | | | | Reviewed-by: Iago Toral <itoral@igalia.com> Cc: "10.6 10.5" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 3941539179b72fe25b6dffd1aacc0722d198a5ca)
* radeonsi: add new OLAND pci idAlex Deucher2015-08-191-0/+1
| | | | | | | | Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 87cea61b9e2681e5365e989c7fa7a0298e4005fa)
* nouveau: no need to do tnl wakeup, state updates are always hooked upIlia Mirkin2015-08-192-2/+0
| | | | | | | | | | | A TNL state update now requires a DrawBuffer to be set, which it isn't early on in context creation. Since we init swtnl from context init, this caused crashes. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91570 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.6" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 3fa1ca34cc0134bd16b3315a0695703c9f684bd4)
* mesa: clear existing swizzle info before bitwise-OROded Gabbay2015-08-191-0/+5
| | | | | | | | | | | | | | | This patch fixes a bug in big-endian treatment, where the previous swizzle info wasn't cleared before a new swizzle info was inserted into the format field using a bitwise-OR operation. v2: use MESA_ARRAY_FORMAT_SWIZZLE_*_MASK instead of numeric constants v3: align according to coding style Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> CC: "10.5 10.6" <mesa-stable@lists.freedesktop.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> (cherry picked from commit 2ac171a7db4e4ad2fa902e62bf18bc1f67e91643)
* vc4: add missing nir include, to fix the buildEmil Velikov2015-08-191-0/+1
| | | | | | | Cc: 10.6 <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit 75ce7919d6496981013a21a7055c668e47e7bed2)
* meta/copy_image: Stash off the scissorJason Ekstrand2015-08-191-2/+2
| | | | | | | | | | | | The meta CopyImageSubData path uses BlitFramebuffers to do the actual copy. The only thing that can affect BlitFramebuffers other than the currently bound framebuffers is the scissor so we need to save that off and reset it. If we don't do this, applications that use a scissor together with CopyImageSubData will get accidentally scissored copies. Tested-by: Markus Wick <markus at selfnet.de> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> (cherry picked from commit 736c6f3cfc2c69e3c29268d4ebb7110dd36ac97f)
* docs: add sha256 checksums for 10.6.4Emil Velikov2015-08-111-1/+2
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* docs: add release notes for 10.6.4mesa-10.6.4Emil Velikov2015-08-111-0/+136
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* Update version to 10.6.4Emil Velikov2015-08-111-1/+1
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* i965/fs: Fix fs_inst::regs_read() for sources in the ATTR file.Francisco Jerez2015-08-061-0/+1
| | | | | | | | | | | | Otherwise it would crash on Gen8 with scalar VS. The issue can easily be reproduced with the following patch, but I don't see any reason why it wouldn't be possible to end up with an ATTR argument here even without it. CC: mesa-stable@lists.freedesktop.org Reviewed-by: Connor Abbott <connor.w.abbott@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit 42a18ca76057621ae7d8812b29ea2245d6ff282d)
* mesa: Fix error returned by glCopyTexImage2D() upon an invalid internal formatEduardo Lima Mitev2015-08-061-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Page 161 of the OpenGL-ES 3.1 (PDF) spec, and page 207 of the OpenGL 4.5 (PDF), both on section '8.6. ALTERNATE TEXTURE IMAGE SPECIFICATION COMMANDS', states: "An INVALID_ENUM error is generated if an invalid value is specified for internalformat". It is currently returning INVALID_OPERATION error because _mesa_get_read_renderbuffer_for_format() is called before the internalformat argument has been validated. To fix this, we move this call down the validation process, after _mesa_base_tex_format() has been called. _mesa_base_tex_format() effectively serves as a validator for the internal format. Fixes 1 dEQP test: * dEQP-GLES3.functional.negative_api.texture.copyteximage2d_invalid_format Fixes 1 piglit test: * spec@oes_compressed_etc1_rgb8_texture@basic Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Cc: 10.6 <mesa-stable@lists.freedesktop.org> (cherry picked from commit 4b07e9a033ddb6733eba206b5bd47a2373756f7d)
* mesa: Validate target before resolving tex obj in glTex(ture)SubImageXDEduardo Lima Mitev2015-08-061-15/+14
| | | | | | | | | | | | | | | | | | | | | Currently, glTexSubImageXD attempt to resolve the texture object (by calling _mesa_get_current_tex_object()) before validating the given target. However, that method explicitly states that target must have been validated before calling it, so it never returns a user error. The target validation occurs later when texsubimage_error_check() is called. This patch reorganizes target validation, taking it out from the error check function and into a point before the texture object is resolved. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Cc: 10.6 <mesa-stable@lists.freedesktop.org> (cherry picked from commit 5d64cae8427b090c42d6d38da7fb474b3ddd4eb0) [Emil Velikov: s/_mesa_enum_to_string/_mesa_lookup_enum_by_nr/] Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Conflicts: src/mesa/main/teximage.c
* mesa: Fix errors values returned by glShaderBinary()Eduardo Lima Mitev2015-08-061-3/+14
| | | | | | | | | | | | | | | | | | Page 68, section 7.2 'Shader Binaries" of the of the OpenGL ES 3.1, and page 88 of the OpenGL 4.5 specs state: "An INVALID_VALUE error is generated if count or length is negative. An INVALID_ENUM error is generated if binaryformat is not a supported format returned in SHADER_BINARY_FORMATS." Currently, an INVALID_OPERATION error is returned for all cases. Fixes 1 dEQP test: * dEQP-GLES3.functional.negative_api.shader.shader_binary Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Cc: 10.6 <mesa-stable@lists.freedesktop.org> (cherry picked from commit b38a50f1e3edae6079c91f73a8d9c63a2dbf512a)
* egl: Add eglQuerySurface surface type check for EGL_LARGEST_PBUFFER attribFrank Binns2015-08-061-1/+2
| | | | | | | | | | | | | | | | | | | | Calling eglQuerySurface on a window or pixmap with the EGL_LARGEST_PBUFFER attribute resulted in the contents of the 'value' parameter being modified. This is the wrong behaviour according to the EGL spec, which states: "Querying EGL_LARGEST_PBUFFER for a pbuffer surface returns the same attribute value specified when the surface was created with eglCreatePbufferSurface. For a window or pixmap surface, the contents of value are not modified." Avoid this from happening by checking that the surface type is EGL_PBUFFER_BIT before modifying the contents of the parameter. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Frank Binns <frank.binns@imgtec.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit b2c5986ea1c8e66c4e0a05bcacbcf28c27f5b183)
* egl/dri: Add error info needed for EGL_EXT_image_dma_buf_import extensionFrank Binns2015-08-062-2/+10
| | | | | | | | | | | | | | Update the DRI image interface error codes to reflect the needs of the EGL_EXT_image_dma_buf_import extension. This means updating the existing error code documentation and adding a new __DRI_IMAGE_ERROR_BAD_ACCESS error code so that drivers can correctly reject unsupported pitches and offsets. Hook the new error code up in EGL to return EGL_BAD_ACCESS. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Frank Binns <frank.binns@imgtec.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit cfc3200a35647026a0b5cf188f378ce33802044b)
* r600g: fix the CB_SHADER_MASK setupMarek Olšák2015-08-062-4/+5
| | | | | | | | | This fixes the single-sample fast clear hang. Cc: 10.6 <mesa-stable@lists.freedesktop.org> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit d4ad4c20617f45f71152e292ee39f020ef352bfd)
* radeonsi: completely rework updating descriptors without CP DMAMarek Olšák2015-08-014-271/+128
| | | | | | | | | | | | | | | | | | | | | | | For 10.6: This fixes graphical corruption occuring on most Southern Islands Radeon GPUs. This will allow closing a lot of bugs in the bugzilla. The patch has a better explanation. Just a summary here: - The CPU always uploads a whole descriptor array to previously-unused memory. - CP DMA isn't used. - No caches need to be flushed. - All descriptors are always up-to-date in memory even after a hang, because CP DMA doesn't serve as a middle man to update them. This should bring: - better hang recovery (descriptors are always up-to-date) - better GPU performance (no KCACHE and TC flushes) - worse CPU performance for partial updates (only whole arrays are uploaded) - less used IB space (no CP_DMA and WRITE_DATA packets) - simpler code - corruption issues are fixed on SI cards Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (cherry picked from commit b0528118dfb1af00e7d08cdb637191b80c14c2ba)
* radeonsi: rework how shader pointers to descriptors are setMarek Olšák2015-08-015-91/+156
| | | | | | | | | | | | | | | | | | | | | For 10.6: This is a prerequisite for the next fix. The below comment is from the original commit. This is mainly needed for tessellation where a VS can be bound as VS, ES, or LS, and TES (tess. evaluationshader) can be bound as VS or ES or neither. Therefore we need the ability to move pointers to descriptors between shaders arbitrarily. The idea is that the context has a mapping from PIPE_SHADER_x to SPI_SHADER_USER_DATA_x. After a shader is enabled or disabled, si_shader_change_notify should be called to update this mapping accordingly. There is a dirty flag for each shader pointer, but only one emit function for all pointers in the whole context, whose code and logic is separated from descriptors. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (cherry picked from commit 3ce91c727f2a00a05f414351266b0b45d677611e)
* opencl: use versioned .so in mesa.icdIgor Gnatenko2015-08-014-2/+5
| | | | | | | | | | | | | We must have versioned library in mesa.icd, because ICD loader would fail if the mesa-devel package wasn't installed. Cc: "10.6" <mesa-stable@lists.freedesktop.org> Reported-by: Fabian Deutsch <fabian.deutsch@gmx.de> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73512 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Michel Dänzer <michel.daenzer@amd.com> (cherry picked from commit 4d7e0fa8c731776ad5d630f37b36c535f1907371)
* bugzilla_mesa.sh: sort the bugs list by numberEmil Velikov2015-08-011-8/+5
| | | | | | | v2: Use change sed/sort based on Ilia's suggestion. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit c505064b2cea14c9da115a26e9326b9c0c7dca3b)
* nv50: avoid segfault with enabled but unbound vertex attribSamuel Pitoiset2015-08-011-0/+5
| | | | | | | | | | | | Before validating vertex arrays we need to check if a VBO is present. Checking if vb->buffer is not NULL fixes the issue. Fixes the following piglit test: gl-3.1-vao-broken-attrib Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> (cherry picked from commit adc816a1e41812e6489a5bc388f80de65504be5b)
* winsys/radeon: don't leak the fd when it is 0Emil Velikov2015-08-011-2/+2
| | | | | | | | | | | | | | | Earlier commit added an extra dup(fd) to fix a ZaphodHeads issue. Although it did not consider the (very unlikely) case where we might end up with the valid fd == 0. Fixes: 28dda47ae4d(winsys/radeon: Use dup fd as key in drm-winsys hash table to fix ZaphodHeads.) Cc: 10.6 <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Mario Kleiner <mario.kleiner.de@gmail.com> (cherry picked from commit 1307be519b8785249ee863a22115930299ff642a)
* egl/wayland: libdrm is a hard requirement, treat it as suchEmil Velikov2015-08-012-2/+3
| | | | | | | | | Prompt at configure time if it's missing otherwise we'll fail later on in the build. Remove ambiguous HAVE_LIBDRM guard. Cc: 10.6 <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit fa109d02dda118f756903b663879375c06353ae7)
* i965/skl: Add production thread counts and URB sizeBen Widawsky2015-08-011-5/+5
| | | | | | | | | | | | | | | | | | | This patch adjusts the SKL values to the best known values we have. v2: Remove HS/DS/CS fields. Adding this makes most sense to add to the GEN9_FEATURES macro, however, doing that would require updating BXT values, and Jordan requested I not do that. Conveniently, this request makes a lot of sense wrt to stable backport as HS, and DS do not even exist there. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> (cherry picked from commit 7eaacc1678195738fab3bb98870828611cae066d) [Emil Velikov: .supports_simd16_3src is missing in 10.6] Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Conflicts: src/mesa/drivers/dri/i965/brw_device_info.c
* glsl: Fix a bug where LHS swizzles of swizzles were too small.Kenneth Graunke2015-08-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A simple shader such as vec4 color; color.xy.x = 1.0; would cause ir_assignment::set_lhs() to generate bogus IR: (swiz xy (swiz x (constant float (1.0)))) We were setting the number of components of each new RHS swizzle based on the highest channel used in the LHS swizzle. So, .xy.y would generate (swiz xy (swiz xx ...)), while .xy.x would break. Our existing Piglit test happened to use .xzy.z, which worked, since 'z' is the third component, resulting in an xxx swizzle. This patch sets the number of swizzle components based on the size of the LHS swizzle's inner value, so we always have the correct number at each step. Fixes new Piglit tests glsl-vs-swizzle-swizzle-lhs-[23]. Fixes ir_validate assertions in in Metro 2033 Redux. v2: Move num_components updating completely out of update_rhs_swizzle (suggested by Timothy Arceri). Simplify. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au> (cherry picked from commit e235ca159f5f6de2bd29616fdda5c02dc69b0d7f)
* st/mesa: don't ignore texture buffer state changesMarek Olšák2015-08-013-3/+6
| | | | | | | | | | | | | | | | Fixes piglit: spec@arb_texture_buffer_range@ranges-2 Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit e39ece0d7856d0532a0f011cd5cb17bc85ee82e2) [Emil Velikov: resolve tess related conflicts.] Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Conflicts: src/mesa/state_tracker/st_atom_texture.c src/mesa/state_tracker/st_context.c src/mesa/state_tracker/st_context.h
* nvc0: fix geometry program revalidation of clipping paramsIlia Mirkin2015-08-011-1/+1
| | | | | | | Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit a818faa6ddcfa6cd90a24b70c49ec76573954111)
* meta: Fix reading luminance texture as rgba in _mesa_meta_pbo_GetTexSubImage()Anuj Phogat2015-08-011-2/+34
| | | | | | | | | | | | | | | After recent addition of pbo testing in piglit test getteximage-luminance, it fails on i965. This patch makes a sub test pass. This patch adds a clear color operation to meta pbo path, which I think is better than falling back to software path. V2: Fix color mask for GL_LUMINANCE_ALPHA Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (cherry picked from commit aa40546b2de4cd572af02d31fd5c7d4045505ea2)
* mesa: Add a helper function _mesa_need_luminance_to_rgb_conversion()Anuj Phogat2015-08-012-0/+22
| | | | | | | Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (cherry picked from commit c59c0f8a42652603da7f89e3270897cb685fe76b)
* meta: Don't do fragment color clamping in _mesa_meta_pbo_GetTexSubImageAnuj Phogat2015-08-011-0/+5
| | | | | | | | | | | | | | | | _mesa_meta_pbo_GetTexSubImage() uses _mesa_meta_BlitFrameBuffer(), which will do fragment clamping if enabled. But fragment clamping doesn't affect ReadPixels and GetTexImage. Without this patch, piglit test arb_color_buffer_float-clear fails, when forced to use the meta pbo path. v2: Apply this fix to both glReadPixels and glGetTexImage. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (cherry picked from commit ca4e17e03e9aeaa04fe6bb04bfe2d6f97991005b)
* meta: Abort meta pbo path if readpixels need signed-unsigned conversionAnuj Phogat2015-08-011-0/+26
| | | | | | | | | | | | | | | | | Meta pbo path for ReadPixels rely on BlitFramebuffer which doesn't support signed to unsigned integer conversions and vice versa. Without this patch, piglit test fbo_integer_readpixels_sint_uint fails, when forced to use the meta pbo path. v2: Make need_signed_unsigned_int_conversion() a static function. (Iago) Bump up the comment and the commit message. (Jason) Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Iago Toral <itoral@igalia.com> (cherry picked from commit 0d207905e675b778739236072e7a4dfba7cd7959)
* meta: Fix transfer operations check in meta pbo path for readpixelsAnuj Phogat2015-08-011-4/+9
| | | | | | | | | | | | | | | | | | | | Currently used ctx->_ImageTransferState check is not sufficient because it doesn't include the read color clamping enabled with GL_CLAMP_READ_COLOR. So, use the helper function _mesa_get_readpixels_transfer_ops(). Also, transfer operations don't affect glGetTexImage(). So, do the check only for glReadPixles. Without this patch, arb_color_buffer_float-readpixels test fails, when forced to use meta pbo path. V2: Add a comment and bump up the commit message. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (cherry picked from commit 1252d53c19ec005c17ca666cecb7db072d77e5ce)
* mesa: Turn get_readpixels_transfer_ops() in to a global functionAnuj Phogat2015-08-012-7/+15
| | | | | | | | | This utility function is utilized in a later patch. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (cherry picked from commit 7974e23be9ff7586e5250cff321b6ec7749ecc44)
* glsl/glcpp: fix SIGSEGV when checking error condition for macro redefinitionSamuel Iglesias Gonsalvez2015-08-011-2/+2
| | | | | | | | | | | | | | | | Commit a6e9cd14c does not take into account than node_{a,b}->next could be NULL in some circumstances, such as in a shader containing this code: #define A 1 /* comment */ #define A 1 /* comment */ This patch fixes the segmentation fault for cases like that. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91290 Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 30f97b5e52b324d501c56df8902d294fb755a5b7)
* radeonsi: upload shader rodata after updating scratch relocationsMarek Olšák2015-08-013-29/+29
| | | | | | | | | | | | Cc: 10.5 10.6 <mesa-stable@lists.freedesktop.org> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (cherry picked from commit 50a957c5de842b18e10c361f7b0310aa46bb483f) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Conflicts: src/gallium/drivers/radeonsi/si_shader.c src/gallium/drivers/radeonsi/si_shader.h
* st/mesa: don't call st_validate_state in BlitFramebufferMarek Olšák2015-08-011-2/+2
| | | | | | | | | | None of the draw states are used here. This fixes a crash in piglit: ext_framebuffer_blit/blit-early Calling st_manager_validate_framebuffers is the minimum requirement here. Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit d082c5324914212f76e45be497229c7a0681f706)
* configure.ac: do not set HAVE_DRI(23) when libdrm is missingEmil Velikov2015-08-011-9/+9
| | | | | | | | | | | | | | | | These conditionals are used to guard both dri modules and loader(s). Currently if we try to build the gallium swrast dri module (without glx) on a system that's missing libdrm the build will fail. v2: Make sure we assign prior to checking the have_libdrm variable. Cc: 10.6 <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit 16f6d432de07dcb537dafd0c9f3ef7614891ed6b) Conflicts: configure.ac
* docs: Add checksums for mesa 10.6.3 tarballsEmil Velikov2015-07-261-1/+2
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* Add release notes for 10.6.3mesa-10.6.3Emil Velikov2015-07-261-0/+105
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* Update version to 10.6.3Emil Velikov2015-07-261-1/+1
| | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* nv50: fix max level clamping on G80Ilia Mirkin2015-07-221-2/+9
| | | | | | | | | | It appears that the G80 did not have support for the sampler view first/last clamping. Put the view's last level in the place of the texture's so that it doesn't go past what the sampler view allows. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 801d41fa43eba996c6bd7c071282ad15e51609d3)