Mesa (11.0): 45 new commits

Emil Velikov evelikov at kemper.freedesktop.org
Thu Oct 8 09:18:19 UTC 2015


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1230e3e01f1b861ab374f7b115c1f7e4bfd0370
Author: Michel Dänzer <michel.daenzer at amd.com>
Date:   Mon Aug 10 18:44:18 2015 +0900

    st/dri: Use packed RGB formats
    
    Fixes Gallium based DRI drivers failing to load on big endian hosts
    because they can't find any matching fbconfigs.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71789
    Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Tested-by: Ilia Mirkin <imirkin at alum.mit.edu>
    (cherry picked from commit 87c3c9acd29655d6c8778ea732f559eebeddd5f6)
    Nominated-by: Ilia Mirkin <imirkin at alum.mit.edu>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d09b37e7d538974a2104c4d7b3110e61de7d489b
Author: Varad Gautam <varadgautam at gmail.com>
Date:   Wed Oct 7 09:48:14 2015 +0530

    egl: restore surface type before linking config to its display
    
    commit c2c2e9a (egl: implement EGL_KHR_gl_colorspace (v2)) leaves
    _EGLConfig->SurfaceType set incorrectly before calling _eglLinkConfig(),
    and the bad value is passed around to platform_android. set it to zero
    as earlier.
    
    v2: Set SurfaceType to 0, rather than surface_type (Suggested by Emil)
    
    Cc: mesa-stable at lists.freedesktop.org
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91596
    Signed-off-by: Varad Gautam <varadgautam at gmail.com>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    (cherry picked from commit f988eff37991272b3e685112136a8b2ae06386bf)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=30570b262971c881366deab58caf8d8d48d7d79d
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Mon Oct 5 15:19:05 2015 -0400

    nouveau: make sure there's always room to emit a fence
    
    I started seeing a lot of situations on nv30 where fence emission
    wouldn't fit into the previous buffer (causing assertions). This ensures
    that whenever checking for space, we always leave a bit of extra room
    for the fence emission commands. Adjusts the nv30 and nvc0 fence
    emission logic to bypass the space checking as well.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: mesa-stable at lists.freedesktop.org
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    (cherry picked from commit 47d11990b2ca3eb666b8ac81fee7f7eb5019eba1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f114967ca9725152288bb648cedceb860d7d06c0
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sun Oct 4 21:47:33 2015 -0400

    nv30: always go through translate module on big-endian
    
    It seems like things are either coming in slighly wrong, or perhaps
    uploaded incorrectly, but either way passing them through the translate
    module seems to fix everything. Eventually we should figure out what's
    going wrong and fix it "for real", but this should do for now.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: mesa-stable at lists.freedesktop.org
    (cherry picked from commit 78ec9e28ec759bcaf9781bcbd2b8e051f7df7896)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=39a3871b1ef0676ad1e91855124161fafac8d57d
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sun Oct 4 21:45:51 2015 -0400

    nv30: pretend to have packed texture/surface formats
    
    This puts us in line with what the DDX/DRI2 st are expecting. It also
    happens to work... no idea why, but seems better to have it work than to
    ask lots of questions.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: mesa-stable at lists.freedesktop.org
    (cherry picked from commit 1fec05d1142921cdb5b01d94d886062c57905edc)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=28373c75bac256a13b77faf6754a20414ec7d900
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Sep 25 22:48:00 2015 +0200

    egl/dri2: don't require a context for ClientWaitSync (v2)
    
    The spec doesn't require it. This fixes a crash on Android.
    
    v2: don't set any flags if ctx == NULL
    v3: add the spec note
    
    Cc: 10.6 11.0 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Albert Freeman <albertwdfreeman at gmail.com>
    Reviewed-by: Frank Binns <frank.binns at imgtec.com>
    (cherry picked from commit 18123a732b8593bb7add03d1529ace464f46a7ac)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eabc65632491cdca7e22986604182ee94f3fc3ac
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Sep 25 22:44:41 2015 +0200

    st/dri: don't use _ctx in client_wait_sync
    
    Not needed and it can be NULL.
    
    v2: fix dri2_get_fence_from_cl_event - thanks Albert
    
    Cc: 10.6 11.0 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Albert Freeman <albertwdfreeman at gmail.com>
    (cherry picked from commit b78336085bce4d1f36c8d9c72fd3fa41643e3cd1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f2d007e49e743f475c13adfe02ffc86a14ebfae
Author: Matthew Waters <ystreet00 at gmail.com>
Date:   Mon Sep 14 18:35:45 2015 +0100

    egl: rework handling EGL_CONTEXT_FLAGS
    
    As of version 15 of the EGL_KHR_create_context spec, debug contexts
    are allowed for ES contexts.  We should allow creation instead of
    erroring.
    
    While we're here provide a more comprehensive checking for the other two
    flags - ROBUST_ACCESS_BIT_KHR and FORWARD_COMPATIBLE_BIT_KHR
    
    v2 [Emil Velikov] Rebase. Minor tweak in commit message.
    
    Cc: Boyan Ding <boyan.j.ding at gmail.com>
    Cc: Chad Versace <chad.versace at intel.com>
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91044
    Signed-off-by: Matthew Waters <ystreet00 at gmail.com>
    Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
    (cherry picked from commit 11cabc45b7124e51d5ead42db6dceb5a3755266b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=00425de65779ad3a61639287088ea5eaaf567cb6
Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Thu Sep 24 16:29:56 2015 +0000

    radeon/llvm: Initialize gallivm targets when initializing the AMDGPU target v2
    
    This fixes a race condition in the glx-multithreaded-shader-compile
    test.
    
    v2:
      - Replace gallivm_init_llvm_{begin,end}() with gallivm_init_llvm_targets().
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    
    CC: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit a2e1e3d325a70604151ef093ed741e60d078a21a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=16d9e621073ae9d2fbd454708cdb3e7eb32d6f55
Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Thu Sep 24 15:57:02 2015 +0000

    gallivm: Allow drivers and state trackers to initialize gallivm LLVM targets v2
    
    Drivers and state trackers that use LLVM for generating code, must
    register the targets they use with LLVM's global TargetRegistry.
    The TargetRegistry is not thread-safe, so all targets must be added
    to the registry before it can be queried for target information.
    
    When drivers and state trackers initialize their own targets, they need
    a way to force gallivm to initialize its targets at the same time.
    Otherwise, there can be a race condition in some multi-threaded
    applications (e.g. glx-multihreaded-shader-compile in piglit),
    when one thread creates a context for a driver that uses LLVM (e.g.
    radeonsi) and another thread creates a gallivm context (glxContextCreate
    does this).
    
    The race happens when the driver thread initializes its LLVM targets and
    then starts using the registry before the gallivm thread has a chance to
    register its targets.
    
    This patch allows users to force gallivm to register its targets by
    calling the gallivm_init_llvm_targets() function.
    
    v2:
      - Use call_once and remove mutexes and static initializations.
      - Replace gallivm_init_llvm_{begin,end}() with
        gallivm_init_llvm_targets().
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    
    CC: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 76cfd6f1da3748effb480e4f1151910af59fb88a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=776bcb20424d2ba46b2aecdf7da3639574168689
Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Wed Sep 30 15:00:39 2015 +0000

    gallium/radeon: Use call_once() when initailizing LLVM targets
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    
    CC: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 3219b48ae5a5b1288bf1fc1325ebbc7ac9e236df)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac75afff8817099b841b81b973b8a9419252252e
Author: Kyle Brenneman <kbrenneman at nvidia.com>
Date:   Mon Sep 28 12:12:05 2015 -0600

    glx: Don't hard-code the name "libGL.so.1" in driOpenDriver (v3)
    
    Add a macro GL_LIB_NAME to hold the filename that configure comes up with
    based on the --with-gl-lib-name and --enable-mangling options.
    
    In driOpenDriver, use the GL_LIB_NAME macro instead of hard-coding
    "libGL.so.1".
    
    v2: Add an #ifndef/#define for GL_LIB_NAME so that non-autoconf builds will
        work.
    v3: Fix the library filename in the Makefile.
    
    Signed-off-by: Kyle Brenneman <kbrenneman at nvidia.com>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit d35391cfda13afdb19a47003af260e258575ef45)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=de936892dbcc4af0aa2b9abc98dc1d92b9dd64f3
Author: Kyle Brenneman <kbrenneman at nvidia.com>
Date:   Mon Sep 28 11:59:22 2015 -0600

    mapi: Make _glapi_get_stub work with "gl" or "mgl" prefix.
    
    When USE_MGL_NAMESPACE is defined, _glapi_get_stub will check for the "m"
    prefix before trying to skip it, so that "glFoo" and "mglFoo" are
    equivalent.
    
    This should let it work with all the places where something calls
    _glapi_get_proc_offset with a hard-coded name that starts with the normal
    "gl" prefix.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55552
    Signed-off-by: Kyle Brenneman <kbrenneman at nvidia.com>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 798f260a2f553e339d7f5fc5120bb627893dc740)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2a04cfcc2fcb22ebb2df9116ec5f210a1bf0344
Author: Kyle Brenneman <kbrenneman at nvidia.com>
Date:   Mon Sep 28 11:59:21 2015 -0600

    glx: Fix build errors with --enable-mangling (v2)
    
    Rearranged the GLX_ALIAS macro in glextensions.h so that it will pick up
    the renames from glx_mangle.h.
    
    Fixed the alias attribute for glXGetProcAddress when USE_MGL_NAMESPACE is
    defined.
    
    v2: Add a comment clarifying why GLX_ALIAS needs two macros.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55552
    Signed-off-by: Kyle Brenneman <kbrenneman at nvidia.com>
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    (cherry picked from commit a27f2d991b1723c3349623401ce3c8f26dcdb28b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dca86265a2f064a2b7e1e53349848c0b1ac9038e
Author: Daniel Scharrer <daniel at constexpr.org>
Date:   Thu Oct 1 14:36:31 2015 +0200

    mesa: Add abs input modifier to base for POW in ffvertex_prog
    
    The result of POW for a negative base is undefined. Even when the result
    is multiplied by zero (which is the case here whenever the base is
    negative), the Inf and NaNs can propagate past that.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91342
    Signed-off-by: Daniel Scharrer <daniel at constexpr.org>
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    (cherry picked from commit b3f9c5cc0fab6d770d220efd87ba3746c6673875)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0684f3d588145173caff50a898194ae9ba94b29
Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Tue Sep 22 14:42:32 2015 -0700

    meta: Handle array textures in scaled MSAA blits
    
    The old code had some significant problems with respect to
    sampler2DArray textures.  The biggest problem was that some of the code
    would use vec3 for the texture coordinate type, and other parts of the
    code would use vec2.  The resulting shader would not even compile.
    Since there were not tests for this path, nobody noticed.
    
    The input to the fragment shader is always treated as a vec3.  If the
    source data is only vec2, the vertex puller will supply 0 for the .z
    component.  The texture coordinate passed to the fragment shader is
    always a vec2 that comes from the .xy part of the vertex shader input.
    The layer, taken from the .z of the vertex shader input is passed
    separately as a flat integer.  If the generated fragment shader does not
    use the layer integer, the GLSL linker will eliminate all the dead code
    in the vertex shader.
    
    Fixes the new piglit tests "blit-scaled samples=2 with
    gl_texture_2d_multisample_array", etc. on i965.
    
    Note for stable maintainer: This patch may depend on 46037237, and that
    patch should be safe for stable.
    
    Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
    Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
    Cc: Topi Pohjolainen <topi.pohjolainen at intel.com>
    Cc: Jordan Justen <jordan.l.justen at intel.com>
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 9bd9cf1fa402bf948020ee5d560259a5cfd2a739)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d78578b0663ae726a89c7147229aad8314eaf4d
Author: Ville Syrjälä <ville.syrjala at linux.intel.com>
Date:   Mon Mar 23 14:47:33 2015 +0200

    i915: Remember to call intel_prepare_render() before blitting
    
    Bring over the following fix from i965:
     commit fb3d62fe3d4fc40ba4ad9804d8b6f451316c9ae2
     Author: Kenneth Graunke <kenneth at whitecape.org>
     Date:   Tue Aug 6 14:36:09 2013 -0700
    
        i965: Remember to call intel_prepare_render() before blitting.
    
    Fixes a crash in the following piglit tests:
     bin/fbo-sys-blit -auto
     bin/fbo-sys-sub-blit -auto
    
    Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Cc: "11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit a1a3f0961b20907b6948959c1f224bb055bd4f3d)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=88ed45b033d00b3f8373d6ea87ec712f75d2e401
Author: Ville Syrjälä <ville.syrjala at linux.intel.com>
Date:   Mon Mar 23 14:47:36 2015 +0200

    i915: Fix texcoord vs. varying collision in fragment programs
    
    i915 fragment programs utilize the texture coordinate registers
    for both texture coordinates and varyings. Unfortunately the
    code doesn't check if the same index might be in use for both.
    It just naively uses the index to pick a texture unit, which
    could lead to collisions.
    
    Add an extra mapping step to allocate non conflicting texture
    units for both uses.
    
    The issue can be reproduced with a pair of simple shaders like
    these:
     attribute vec4 in_mod;
     varying vec4 mod;
     void main() {
       mod = in_mod;
       gl_TexCoord[0] = gl_MultiTexCoord0;
       gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
     }
    
     varying vec4 mod;
     uniform sampler2D tex;
     void main() {
       gl_FragColor = texture2D(tex, vec2(gl_TexCoord[0])) * mod;
     }
    
    Fixes many piglit tests on i915:
    
        glsl-link-varyings-2
        glsl-orangebook-ch06-bump
        interpolation-none-gl_frontcolor-smooth-fixed
        interpolation-none-gl_frontcolor-smooth-none
        interpolation-none-gl_frontcolor-smooth-vertex
        interpolation-none-gl_frontsecondarycolor-smooth-fixed
        interpolation-none-gl_frontsecondarycolor-smooth-vertex
        interpolation-none-gl_frontsecondarycolor-smooth-none
        interpolation-none-other-flat-fixed
        interpolation-none-other-flat-none
        interpolation-none-other-flat-vertex
        interpolation-none-other-smooth-fixed
        interpolation-none-other-smooth-none
        interpolation-none-other-smooth-vertex
    
    v2 [idr]: Minor formatting tweaks.
    
    Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Cc: "11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit c349031c27b7f66151f07d785625c585e10a92c2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbcd36ddb6a75e3ba10f391856641b5eb9a2a50e
Author: Ville Syrjälä <ville.syrjala at linux.intel.com>
Date:   Mon Mar 23 14:47:24 2015 +0200

    i830: Fix collision between I830_UPLOAD_RASTER_RULES and I830_UPLOAD_TEX(0)
    
    I830_UPLOAD_RASTER_RULES and I830_UPLOAD_TEX(0) are trying to occupy
    the same bit. Move the texture bits upwards a bit to make room for
    I830_UPLOAD_RASTER_RULES.
    
    Now the driver will actually upload the raster rules which is rather
    important to get the provoking vertex right. Fixes the appearance
    of glxgears teeth on gen2.
    
    Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 9504740f3e6698d860ac93310a33f51f01c10c4f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=531309a5f05a2b56cb9c30b1fbdd85233c275169
Author: Brian Paul <brianp at vmware.com>
Date:   Thu Sep 24 09:36:44 2015 -0600

    st/mesa: try PIPE_BIND_RENDER_TARGET when choosing float texture formats
    
    For 8-bit RGB(A) texture formats we set the PIPE_BIND_RENDER_TARGET flag
    to try to get a hardware format which also supports rendering (for FBO
    textures).  Do the same thing for floating point formats.
    
    This allows the Redway3D Flat demo to run.
    
    Cc: 10.6 11.0 <mesa-stable at lists.freedesktop.org>
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Roland Scheidegger <sroland at vmware.com>
    (cherry picked from commit cb758b892a7e62ff1f6187f2ca9ac543ff70a096)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ae914f65d84fb49a227f7584e84a9aa5e2f270f
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Mon Sep 28 15:18:08 2015 -0400

    nouveau: wait to unref the transfer's bo until it's no longer used
    
    The bo will often come from a slab in which case it doesn't matter. But
    for larger allocations this will be in its own bo, and we have to make
    sure to wait until it's no longer used in order for it to be freed.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: mesa-stable at lists.freedesktop.org
    Tested-by: Marcin Ślusarz <marcin.slusarz at gmail.com>
    (cherry picked from commit 1d8cba9b51b7a6e7dbf3f0d3f53b5c232fd0b5b2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2c8b0e546e9245c959895c5765de791261e2cad
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Fri Sep 25 19:05:14 2015 -0400

    nouveau: delay deleting buffer with unflushed fence
    
    If there is an unflushed fence on the bo, then the resource may still be
    used in commands built up in the local pushbuf. Flushing can cause all
    sorts of unwanted effects, so just free the bo when the relevant fence
    is hit.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: mesa-stable at lists.freedesktop.org
    Tested-by: Marcin Ślusarz <marcin.slusarz at gmail.com>
    (cherry picked from commit 3a6b9a7830c3df14ffcfbbf57c82ea08bd59ef04)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6ee06e9fe23e6d58701e2ef0d3e059691bf5354
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Fri Sep 25 16:34:07 2015 -0400

    nouveau: be more careful about freeing temporary transfer buffers
    
    Deleting a buffer does not flush the command stream. Make sure that we
    wait for the copies to finish before deleting the temporary bo.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: mesa-stable at lists.freedesktop.org
    Tested-by: Marcin Ślusarz <marcin.slusarz at gmail.com>
    (cherry picked from commit d4e650b07bc80075f0d088e7d85df9efa45e11bd)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b8b044ee47a70303a5bcc93c58e61ca71bdcba5
Author: Francisco Jerez <currojerez at riseup.net>
Date:   Wed Aug 26 21:59:46 2015 +0300

    i965/fs: Fix hang on IVB and VLV with image format mismatch.
    
    IVB and VLV hang sporadically when an untyped surface read or write
    message is used to access a surface of format other than RAW, as may
    happen when there is a mismatch between the format qualifier of the
    image uniform and the format of the actual image bound to the
    pipeline.  According to the spec this condition gives undefined
    results but may not lead to program termination (which is one of the
    possible outcomes of the hang).  Fix it by checking at runtime whether
    the surface is of the right type.
    
    Fixes the "arb_shader_image_load_store.invalid/format mismatch" piglit
    subtest.
    
    Reported-by: Mark Janes <mark.a.janes at intel.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91718
    CC: mesa-stable at lists.freedesktop.org
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    (cherry picked from commit b61292296bd7e1876fdb64725a783a7e96f6c4c1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec7cda29b6581a7626a051f76fd28d0bd024899c
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 24 23:50:01 2015 +0200

    radeonsi: add scratch buffer to the buffer list when it's re-allocated
    
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    Cc: mesa-stable at lists.freedesktop.org
    (cherry picked from commit 9932142192f848ae9dbc644551653547640346b4)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ab68081ffb2c5f098bfb0f38b85f5d2f0e6824e7
Author: Leo Liu <leo.liu at amd.com>
Date:   Fri Sep 18 15:51:26 2015 -0400

    radeon/vce: fix vui time_scale zero error
    
    if app pass 0 as frame_rate_num, it should not be encoded to the VUI.
    
    Signed-off-by: Leo Liu <leo.liu at amd.com>
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    Reviewed-by: Christian König <christian.koenig at amd.com>
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 1e97b41893a4f53a71ee141a5e8a046fed7b49cd)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=46dc4946a24337796e2e22f72d08a87d415b04e6
Author: Roland Scheidegger <sroland at vmware.com>
Date:   Sun Sep 20 01:33:17 2015 +0200

    mesa: fix mipmap generation for immutable, compressed textures
    
    If the immutable compressed texture didn't have the full mip pyramid,
    this didn't work, because it tried to generate mip levels for non-existing
    levels. _mesa_prepare_mipmap_level() would correctly handle this by returning
    FALSE if the mip level didn't exist, however we actually created the
    non-existing mip level right before that because we used _mesa_get_tex_image()
    before calling _mesa_prepare_mipmap_level(). It would then proceed to crash
    (we allocated the mip level, which is a bad idea on an immutable texture,
    but didn't initialize the values, leading to assertion failures or segfaults).
    Fix this by using _mesa_select_tex_image() instead and call it after
    _mesa_prepare_mipmap_level(), as that function will allocate missing mip levels
    for non-immutable textures already.
    This fixes a (2 year old) crash with astromenace which was hack-fixed in ubuntu
    packages instead: http://bugs.debian.org/718680 (I guess most apps do full mip
    chains - I believe this app not doing it is actually unintentional, always one
    level less than full mip chain...).
    
    Cc: "10.6 11.0" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Brian Paul <brianp at vmware.com>
    (cherry picked from commit 19604d30e1351868f7f54847c91ffec7b3fcd27e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=01e197c21a3adc3934bde7b0248a067602270caa
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:48:12 2015 +0200

    gallium/u_blitter: handle allocation failures
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 7bbce21e458d912279159aa6ac122768c6c06551)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c5aacf44669762479ef467c0fb6853f9ff2a807
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 19:25:14 2015 +0200

    radeonsi: handle dummy constant buffer allocation failure
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit ae418a7b5640aadb625bb7a7d6e4aa0a98ccb77f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb5dd331660eebfa12d14181e2e30cdfa994c535
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:42:22 2015 +0200

    radeonsi: don't forget to update scratch relocations for LS, HS, ES shaders
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit b737d9c1dce073aa36b21c33cb30fbae89c38153)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2d3012e351b0f2524ff4990ba424e8ebb0bb727
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:40:51 2015 +0200

    radeonsi: skip drawing if updating the scratch buffer fails
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit d556346b3590e8d5601c0831577f08e7b1ccecec)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=154573e4279ae7720c65d657144da353a6869b0c
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:33:10 2015 +0200

    radeonsi: skip drawing if PS fails to compile or upload
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 1f99b0be7e4e300c2b1761437f740a604ab036bc)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e64e887f0443f5dd7d95901ed08405543343992
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:32:22 2015 +0200

    radeonsi: skip drawing if VS, TCS, TES, GS fail to compile or upload
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 237d7cccce15b91590afa90020ff71324217fdb9)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=10382380f042a88877bf5c9df671a64179549ea7
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:31:33 2015 +0200

    radeonsi: handle fixed-func TCS shader create failure
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 9b6d9dd7d8d2779e2bd08787c26f51512b84f6d2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=815b595b5f2c8b3d0b558b1fc112c8e003b2ec03
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:30:41 2015 +0200

    radeonsi: handle shader precompile failures
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 5dbadb02572f875f5d2f22327eab6b93de61337c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e0ae01588492775169b73530210cd131ac99978
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:27:53 2015 +0200

    radeonsi: skip drawing if GS ring allocations fail
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 263f5a2cf97e455e48dbd7728cb0ac10fd699746)
    [Emil Velikov: Track gs_rings over gsvs_ring. NULL check/FREE gs_rings.]
    Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
    
    Conflicts:
    	src/gallium/drivers/radeonsi/si_state_shaders.c

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=33ed153214c67e9a00db90c1f37e1d7756916fed
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:27:53 2015 +0200

    radeonsi: skip drawing if the tess factor ring allocation fails
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 22d3ccf5a814bfc768e373d0c983a356f4e4efe3)
    [Emil Velikov: Track tf_state over tf_ring. NULL check/FREE tf_state.]
    Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
    
    Conflicts:
    	src/gallium/drivers/radeonsi/si_state_shaders.c

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3cd7493f11f7b8269601d2b5045a59c7b9d89fd3
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:16:26 2015 +0200

    radeonsi: add malloc fail paths to si_create_shader_state
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 5c219ab55239ceef3285262ff68a502e419061e0)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dacccf8e2285673fe1cb82daa69cda3337612f1f
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:15:40 2015 +0200

    radeonsi: report alloc failure from si_shader_binary_read
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 394d67a58f949245e8b3fad400e9efaa5829ec84)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=288d9a06cc3dab54947ee0a1aa7348430ac663bb
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 18:14:36 2015 +0200

    gallium/radeon: add a fail path for depth MSAA texture readback
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit dea834e639715caa9517a695a3fb04d5de9aa069)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=62ac723a346892c455352d6b681f06caa6b15cf4
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 17:54:41 2015 +0200

    gallium/radeon: handle buffer alloc failures in r600_draw_rectangle
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit f95e695059c428a21a1e1a27d5cd5ccce2a97b0e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=766a0b4661a75988cf1b1235e960226d72af71d9
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 17:53:28 2015 +0200

    gallium/radeon: handle buffer_map staging buffer failures better
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 282b3780123bace557fc90127bd35b075ea0873e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2e8b94f847193fc703a6f536c97c6f6503b3651
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 17:42:31 2015 +0200

    radeonsi: handle constant buffer alloc failures
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit cd27ff6a0f85ca35f0f7f2fa7971692e0028e2ed)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=02a631bfbce25aab715d54a94097006c07c352de
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 10 17:42:31 2015 +0200

    radeonsi: handle index buffer alloc failures
    
    Cc: 11.0 <mesa-stable at lists.freedesktop.org>
    Acked-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 29dff6f67656c8e6e09249cc76b6efa0c03353a7)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=94e9c52b62ac97b513fc153ab4b0d3f361686976
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Sep 23 02:33:24 2015 +0200

    st/mesa: fix front buffer regression after dropping st_validate_state in Blit
    
    Broken by: d082c5324914212f76e45be497229c7a0681f706
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92072
    
    Cc: 10.6 11.0 <mesa-stable at lists.freedesktop.org>
    Tested-by: Ilia Mirkin <imirkin at alum.mit.edu>
    (cherry picked from commit f3a081953393c7d40bd8df9ec22a2551d01098f5)




More information about the mesa-commit mailing list