Mesa (11.1): 50 new commits

Emil Velikov evelikov at kemper.freedesktop.org
Fri Jan 8 10:32:19 UTC 2016


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf00b36c9df72758ce8a89399d5575d0725da315
Author: Sarah Sharp <sarah.a.sharp at linux.intel.com>
Date:   Mon Sep 21 14:22:53 2015 -0700

    mesa: Add KBL PCI IDs and platform information.
    
    Add PCI IDs for the Intel Kabylake platforms.  The IDs are taken
    directly from the Linux kernel patches, which are under review:
    
    http://lists.freedesktop.org/archives/intel-gfx/2015-October/078967.html
    http://cgit.freedesktop.org/~vivijim/drm-intel/log/?h=kbl-upstream-v2
    
    The Kabylake PCI IDs taken from the kernel are rearranged to be in order
    of GT type, then PCI ID.
    
    Please note that if this patch is backported, the following fixes will
    need to be added before this patch:
    
    commit 28ed1e08e8ba98e "i965/skl: Remove early platform support"
    commit c1e38ad37042b0e "i965/skl: Use larger URB size where available."
    
    Thanks to Ben for fixing a bug around setting urb.size, and being
    patient with my questions about what the various fields mean.
    
    Signed-off-by: Sarah Sharp <sarah.a.sharp at linux.intel.com>
    Suggested-by: Ben Widawsky <benjamin.widawsky at intel.com>
    Tested-by: Rodrigo Vivi <rodrigo.vivi at intel.com> (KBL-GT2)
    Cc: "11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 39c41be50d9474dde4c0dcf23a546d14b212e80a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fab2039588be1e5f6bbd53d8b1422776e213494a
Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jan 5 17:10:12 2016 -0700

    st/mesa: check state->mesa in early return check in st_validate_state()
    
    We were checking the dirty->st flags but not the dirty->mesa flags.
    When we took the early return, we didn't clear the dirty->mesa flags
    so the next time we called st_validate_state() we'd often flush the
    glBitmap cache.  And since st_validate_state() is called from
    st_Bitmap(), it meant we flushed the bitmap cache for every glBitmap()
    call.
    
    This change seems to recover most of the performance loss observed
    with the ipers demo on llvmpipe since commit commit 36c93a6fae27561.
    
    Cc: mesa-stable at lists.freedesktop.org
    Reviewed-by: José Fonseca <jfonseca at vmware.com>
    (cherry picked from commit c28d72a3473ad0127c82c1244b6688dcc184e85e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=536c8cbcd3326fc7207f8a2c166c380135924589
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue Jan 5 05:09:46 2016 -0800

    nir: Add a lower_fdiv option, turn fdiv into fmul/frcp.
    
    The nir_opt_algebraic rule
    
    (('fadd', ('flog2', a), ('fneg', ('flog2', b))), ('flog2', ('fdiv', a, b))),
    
    can produce new fdiv operations, which need to be lowered on i965,
    as we don't actually implement fdiv.  (Normally, we handle this in
    GLSL IR's lower_instructions pass, but in the above case we introduce
    an fdiv after that point.  So, make NIR do it for us.)
    
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
    Reviewed-by: Matt Turner <mattst88 at gmail.com>
    Cc: mesa-stable at lists.freedesktop.org
    (cherry picked from commit 7295f4fcc2b2dd1bc6a8d1d834774b8152a029cf)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=978480d69f0b40ae45766bbc65c4a6c5bb805b98
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Mon Jan 4 11:26:27 2016 -0500

    nvc0: scale up inter_bo size so that it's 16M for a 4K video
    
    Experimentally, 4M causes corruption and slowness, try to ramp it up
    with size instead.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit b16c9be4a5561bd825176a228c300331f989e837)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2be35d30907fc110df8de93b8fb344a7968c7b3
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Mon Jan 4 11:16:45 2016 -0500

    nv50,nvc0: fix crash when increasing bsp bo size for h264
    
    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 <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit b5f2f7073f047b4e4128cf05af8dddf356f9b48c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df47b1e07844f6a8a9dc9b71868b92c18648e3b7
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Dec 6 13:36:57 2015 +0100

    st/mesa: fix GLSL uniform updates for glBitmap & glDrawPixels (v2)
    
    Spotted by luck. The GLSL uniform storage is only associated once
    in LinkShader and can't be reallocated afterwards, because that would
    break the association.
    
    v2: don't remove st_upload_constants calls, clarify why they're needed
    
    Cc: 11.0 11.1 <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 36c93a6fae275614b6004ec5ab085774d527e1bc)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb3581ca3d60366f5e3621e62f5300f4f0c127c4
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Dec 6 13:31:25 2015 +0100

    program: add _mesa_reserve_parameter_storage
    
    The next commit will use this.
    
    Reviewed-by: Brian Paul <brianp at vmware.com>
    Cc: 11.0 11.1 <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 294ed5cd13e878ec43126a2070343d6d99ef5669)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=132131af6b78a887dac606ccf640bb901359d289
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Thu Dec 31 20:33:15 2015 -0500

    nv50,nvc0: make sure there's pushbuf space and that we ref the bo early
    
    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 <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit c1d14c6817e3fa9a1c04f9b6c51b4ca601637843)
    [Emil Velikov: resolve trivial conflict]
    Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
    
    Conflicts:
    	src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4977656c1d4732022946f4e3642fa128979e60d
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Dec 30 02:53:08 2015 -0800

    nvc0: Set winding order regardless of domain.
    
    Quads need to respect winding order, too - not just triangles.
    
    Fixes rendering in GFXBench 4.0's tessellation benchmark.
    
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 65d3f85eb3efb326a826c2db0225340d5421a389)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2352d758591cac76ddc66f7640522da76dee5d1
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Dec 30 02:33:00 2015 -0800

    glsl: Fix varying struct locations when varying packing is disabled.
    
    varying_matches::record tries to compute the number of components in
    each varying, which varying_matches::assign_locations uses to assign
    locations.  With varying packing, it uses glsl_type::component_slots()
    to come up with a reasonable value.
    
    Without varying packing, it fell back to an open-coded computation
    that didn't bother to handle structs at all.  I believe we can simply
    use 4 * glsl_type::count_attribute_slots(false), which already handles
    these cases correctly.
    
    Partially fixes rendering in GFXBench 4.0's tessellation benchmark.
    (NVE0 is almost right after this, but i965 is still mostly garbage.)
    
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 7cdc2b9ca0ab60b282416b975a2ac6d7abcd42ad)
    [Emil Velikov: resolve trivial conflicts]
    Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
    
    Conflicts:
    	src/glsl/link_varyings.cpp

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c69561068b92b8f6285645798a9b9769bc50cf4
Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Oct 12 13:47:40 2015 +1000

    glsl: only update doubles inputs for vertex inputs.
    
    This doesn't apply to other stages. This is only
    used in the mesa/st code, which needs further fixes.
    
    Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>
    (cherry picked from commit 1fc39dae22843d6faf3ec43eab90c7d06f9f6f7b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=343fc2c3a33a4967fcc75bf1cc5b3baffba8fa5d
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Dec 9 16:06:48 2015 +1000

    glsl: fix count_attribute_slots to allow for different 64-bit handling
    
    So vertex shader input attributes are handled different than internal
    varyings between shader stages, dvec3 and dvec4 only count as
    one slot for vertex attributes, but for internal varyings, they
    count as 2.
    
    This patch comments all the uses of this API to clarify what we
    pass in, except one which needs further investigation
    
    Signed-off-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
    (cherry picked from commit 5dc22cadb5ed4a7cf8c7d1cbaf7296c27e567e0f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=703ad597483c3bb6e26aa2e173382f7f7a129534
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Dec 9 16:06:46 2015 +1000

    glsl/fp64: add helper for dual slot double detection.
    
    The old function didn't work for matrices, and we need this
    in other places to fix some other problems, so move to a helper
    in glsl type and fix the one user so far.
    
    A dual slot double is one that has 3 or 4 components in it's
    base type.
    
    Signed-off-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Oded Gabbay <oded.gabbay at gmail.com>
    Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
    (cherry picked from commit d97b060e6f305ce4ad050881944404b920c86edf)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7aab081f9804ad87a54472aa51b2f89de478025b
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Dec 9 16:06:45 2015 +1000

    glsl: pass stage into mark function
    
    Don't use a bool here, as for some 64-bit fixes we need
    the stage.
    
    Signed-off-by: Dave Airlie <airlied at redhat.com>
    Reviewed-by: Oded Gabbay <oded.gabbay at gmail.com>
    Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
    (cherry picked from commit 9fbcd8e8475e249c7f76b6d63b3a48b8684cb1ff)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=73844f6edf904bf6cc1c3ae95329349454a29d6e
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Dec 28 14:20:28 2015 -0800

    drirc: Disable ARB_blend_func_extended for Heaven 4.0/Valley 1.0.
    
    Unigine Heaven 4.0 and Valley 1.0 use dual color blending but don't
    specify which fragment shader output is which, so there's at best a
    50/50 chance of us guessing it correctly.  This is invalid.
    
    Unigine fixed this in 4.1 and 1.1 versions over a year and a half ago,
    but hasn't actually released them for whatever reason.  So, add the
    workaround back so that it works for most people.
    
    Fixes Heaven 4.0/Valley 1.0 rendering on Ivybridge.  For whatever
    reason, Broadwell worked.  4.1 and 1.1 have always worked.
    
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92233
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Cc: mesa-stable at lists.freedesktop.org
    (cherry picked from commit 4acf71c89b5ef5e2fe8c1a3d7ecf6031e191463c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1415b6b0aebd37f9d472a2c24b9ce603023d0475
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Tue Dec 29 15:05:34 2015 -0500

    nv50/ir: float(s32 & 0xff) = float(u8), not s8
    
    Make sure to make conversion unsigned when we're ANDing the high bits
    away. Fixes corruption in dolphin.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 724134f68322087ef88bc590febd0011167ae367)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e468d4b1d69bd8cd290bb5d8fbef72ae28428a6e
Author: Grazvydas Ignotas <notasas at gmail.com>
Date:   Tue Dec 22 04:12:07 2015 +0200

    r600: fix constant buffer size programming
    
    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" <mesa-stable at lists.freedesktop.org>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92229
    Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    (cherry picked from commit da0e216e069bd064199ed04b52de6fb23d810806)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b95dc1a5c8fb7ff9698c86529cccf43378ccdf3f
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sun Dec 27 20:44:01 2015 -0500

    nvc0: don't forget to reset VTX_TMP bufctx slot after blit completion
    
    Also release the scratch allocation if any.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 109c348284843054f708f4403260739b7db18275)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a8a7af68e8d471f69ed84d3106a41697e94d67c2
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Fri Dec 18 23:25:16 2015 -0500

    gallium/radeon: fix regression in a number of driver queries
    
    This rather silly mistake was introduced by commit 01910676.
    
    Cc: "11.1" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit ea8c0b16ec222786c32bf6fc735613c25b28a6ca)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=56318a9899ee116eb9a0c38eff95d33c473457fb
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sat Dec 19 15:29:14 2015 -0500

    glx/dri3: a drawable might not be bound at wait time
    
    A trace of Alien Isolation hit this on nouveau.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer at amd.com>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit f7b71451231c75c36771e8b7b0d78f05e0d50f65)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=28680b36e89826df0f7c30c71d05de0a2102f5db
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Fri Dec 18 02:48:34 2015 -0800

    ralloc: Fix ralloc_adopt() to the old context's last child's parent.
    
    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" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Matt Turner <mattst88 at gmail.com>
    (cherry picked from commit 14193e4643370db92210710f2ef152c693d6c4ff)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=96e931fea1b2511c5f8c85e09f491dc52aeec386
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Dec 18 11:41:38 2015 -0800

    vc4: Keep sample mask writes from being reordered after TLB writes
    
    Fixes a regression I noticed after introducing scheduling on the QIR.
    
    Cc: "11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 960f48809ffebca14af27ce9e87eabc04dfe9b84)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=48b580d1cc9d49f3ff3479bda34df723da3c7fdd
Author: Rob Herring <robh at kernel.org>
Date:   Thu Dec 17 09:42:40 2015 -0600

    freedreno/ir3: fix 32-bit builds with pointer-to-int-cast error enabled
    
    Android builds with -Werror=pointer-to-int-cast causing an error on 32-bit
    builds.
    
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Rob Herring <robh at kernel.org>
    Signed-off-by: Rob Clark <robclark at freedesktop.org>
    (cherry picked from commit b201a6ed9f6001ceaa1fc2eaf8a409b044ec97a3)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4d2315d65fe3132747200cbfee48471562c8504
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Mon Dec 14 16:10:31 2015 -0500

    gallium/radeon: only dispose locally created target machine in radeon_llvm_compile
    
    Unify the cleanup paths of the function rather than duplicating code.
    
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    (cherry picked from commit 0a6a17b9d72c57f0840d91756924632fee91f2c2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca30800dfdfa6806c95e5033d5ec366dc3ff127d
Author: Miklós Máté <mtmkls at gmail.com>
Date:   Wed Dec 16 00:05:34 2015 +0100

    mesa: Don't leak ATIfs instructions in DeleteFragmentShader
    
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 7279453da5c847d8f63f7e1f9e30ac2b03e6b3e9)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=04f01a844a7f087da3e8edf2a8e1ec8693d0b4b8
Author: Oded Gabbay <oded.gabbay at gmail.com>
Date:   Tue Dec 15 12:05:22 2015 +0200

    configura.ac: fix test for SSE4.1 assembler support
    
    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" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Oded Gabbay <oded.gabbay at gmail.com>
    Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
    (cherry picked from commit 6e44bbe0f5496b1aea2b4a29adae7990b62fda33)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6bb88aa04b072a52898841fecae3736c8c21e83d
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Sun Dec 6 16:11:05 2015 +1100

    configure: check for python2.7 for PYTHON2
    
    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 <jsg at jsg.id.au>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
    (cherry picked from commit 4ef44bb484cbc0336d4fdcb8edce889ed1283732)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1843802f879477dbfaa9079a1a6b6ae4bccc485
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Wed Dec 9 16:55:01 2015 +1100

    configure.ac: use pkg-config for libelf
    
    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 <jsg at jsg.id.au>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    Tested-by: Michel Dänzer <michel.daenzer at amd.com>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
    (cherry picked from commit 7f585a6a98d0553ec0ba48e18b1d9bac1256881a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=259734ae3fd947709f1c286687c51d5b7c409edb
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Dec 16 22:54:30 2015 +0100

    nv50: free memory allocated by the prog which reads MP perf counters
    
    This fixes a memory leak introduced in 6a9c151
    ("nv50: add compute-related MP perf counters on G84+")
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 695ae816da2fd9739eac769820bee8b7b4a87d95)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=10ec6685d04d5657c0e8f44c832859f2dba3950c
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Dec 16 22:44:17 2015 +0100

    nv50,nvc0: free memory allocated by performance metrics
    
    The destroy_query() helper was actually never called. This fixes
    a memory leak while monitoring performance metrics.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Acked-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit aeee7f2a4dc7ceddace91ef5e91790483f4597e0)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=89d585357aafe9b8643a6041645533e3325479b7
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Dec 16 21:47:27 2015 +0100

    nvc0: free memory allocated by the prog which reads MP perf counters
    
    This fixes a long time ago memory leak (even before all my query
    related changes).
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 9aca60bfb07d87d82aff943a23cfa693e2712528)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdf289e7fbc030651394cecc3bae43565380d591
Author: Neil Roberts <neil at linux.intel.com>
Date:   Tue Dec 8 16:35:57 2015 +0000

    i965: Fix crash when calling glViewport with no surface bound
    
    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 <nanley.g.chery at intel.com>
    Cc: "11.1" <mesa-stable at lists.freedesktop.org>
    Tested-by: Nanley Chery <nanley.g.chery at intel.com>
    Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
    (cherry picked from commit 8c5310da9d1cbf2272f72d3ed4264544456a4683)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ab0b96a939b8eb48f203b8726ca5440a593716da
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Dec 11 19:06:09 2015 -0800

    vc4: Warn instead of abort()ing on exec ioctl failures.
    
    It's really harsh to abort() the X Server because of a momentary failure
    (particularly -ENOMEM).  I don't see a way to pass an -ENOMEM up the stack
    from here, but we can at least log to stderr before proceeding on.
    
    Cc: "11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 02bcb443ee39cec1b61e5ba3e466471f3668f536)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4474a96df7194250eeb071dcd7f91e1e7e4fcca
Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Thu Dec 3 12:22:23 2015 -0800

    meta/generate_mipmap: Work-around GLES 1.x problem with GL_DRAW_FRAMEBUFFER
    
    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 <ian.d.romanick at intel.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93215
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
    (cherry picked from commit 96dc732ed81f48d8bbc7aa6fb4d9c2833b691189)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=66e0a26b56d80921e886195e4be550b8d033d7e9
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sun Dec 13 03:23:13 2015 -0500

    glsl: assign varying locations to tess shaders when doing SSO
    
    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 <imirkin at alum.mit.edu>
    Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit eca8f38dcffb700fdfe413a707d524e6a84bd453)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=242146977f494b545f552634034b24ac3c408392
Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Fri Dec 18 12:25:53 2015 +0000

    cherry-ignore: don't pick a specific i965 formats patch
    
    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 <emil.velikov at collabora.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a98bc4999794efff42b01730732458a7a37ed2a4
Author: Neil Roberts <neil at linux.intel.com>
Date:   Fri Dec 11 12:32:17 2015 +0000

    i965: Add B8G8R8X8_SRGB to the alpha format override
    
    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" <mesa-stable at lists.freedesktop.org>
    Cc: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    (cherry picked from commit 43f4be5f06b7a96b96a3a7b43f5112139a1f423a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0193dc6a427e20e4ccbad153f676b241ca299167
Author: Neil Roberts <neil at linux.intel.com>
Date:   Fri Dec 11 12:32:16 2015 +0000

    i965: Add MESA_FORMAT_B8G8R8X8_SRGB to brw_format_for_mesa_format
    
    This will be used in a subsequent patch as the format for RGB visuals.
    
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    Cc: Ilia Mirkin <imirkin at alum.mit.edu>
    Suggested-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    (cherry picked from commit c769efda939e06338d41e1046a5f954c690951d5)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=55d9c80d21d3791bd31a51ee048668fcafb2df88
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Thu Dec 10 18:19:44 2015 -0500

    gk104/ir: simplify and fool-proof texbar algorithm
    
    With the current algorithm, we only look at tex uses. However there's a
    write-after-write hazard where we might decide to, on some path, not use
    a texture's output at all, but instead to write a different value to
    that register. However without the barrier, the texture might complete
    later and overwrite that value.
    
    This fixes Unreal Elemental demo on GK110/GK208, flightgear on GK10x,
    and likely other random-looking failures.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 7752bbc44e78e982de3cd4c34862adc38a338234)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=070dbfa8106ff8263ac547517f084b25a182b1a4
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Thu Dec 10 12:18:51 2015 -0500

    nv50/ir: can't have predication and immediates
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 6aca7fecb7f7b6c67cf0315e781060a8d1d4b704)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ceb00fb1b9aefeca8ef36631786d343c0612ca83
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Dec 9 20:26:21 2015 +0100

    gallium/radeon: fix Hyper-Z hangs by programming PA_SC_MODE_CNTL_1 correctly
    
    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 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    (cherry picked from commit d3c08309abd17b6e0d466b677af57e3cc74b0e00)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=408fcfedee96c1e5e1f096ee4188767134122d7e
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Dec 4 21:24:21 2015 +0100

    radeonsi: apply the streamout workaround to Fiji as well
    
    Cc: 11.0 11.1 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    (cherry picked from commit 787ada6bf65a58b1bab5a30be86698e9b7b0797e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9dd8468b152c2b0c373f00fa32869b49a3666b3
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Dec 9 22:14:32 2015 +0100

    radeonsi: don't call of u_prims_for_vertices for patches and rectangles
    
    Both caused a crash due to a division by zero in that function.
    This is an alternative fix.
    
    Cc: 11.0 11.1 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    (cherry picked from commit 0f9519b938d78ac55e8e5fdad5727a79baf18d42)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b526fc2d975accf6598656c225077b6d7c75464
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Dec 10 13:19:45 2015 +0100

    r600g: write all MRTs only if there is exactly one output (fixes a hang)
    
    This fixes a hang in
    piglit/arb_blend_func_extended-fbo-extended-blend-pattern_gles2 on REDWOOD.
    
    Cc: 11.0 11.1 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    (cherry picked from commit b5b87c4ed1dfd58aec8905e0514c9ba92ba83e1d)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4974996545225037f9497d88467ba0f976f07d60
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Dec 10 13:15:50 2015 +0100

    tgsi/scan: add flag colors_written
    
    This is a prerequisite for the following r600g fix.
    
    Cc: 11.0 11.1 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    (cherry picked from commit eb4813a9524e1a61f46bf45150adb1bd78564863)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1ca42a9ee317541fd7b1941573b4fb4cb6aba8a
Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Fri Jan 8 11:50:23 2016 +0200

    cherry-ignore: drop the "re-enable" DCC on Stoney
    
    As per Marek's request of the mesa-stable ML.
    
    Signed-off-by: Emil Velikov <emil.velikov at collabora.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fce9699bcad9c2d001af3855be0409a81e9ae7f2
Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Dec 10 11:44:34 2015 +1000

    mesa/shader: return correct attribute location for double matrix arrays
    
    If we have a dmat2[4], then dmat2[0] is at 17, dmat2[1] at 19,
    dmat2[2] at 21 etc. The old code was returning 17,18,19.
    
    I think this code is also wrong for float matricies as well.
    
    There is now a piglit for the float case.
    
    This partly fixes:
    GL41-CTS.vertex_attrib_64bit.limits_test
    
    [airlied: update with Tapani suggestion to clean it up].
    
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
    Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>
    (cherry picked from commit 18ad641c3b2e926b8b3e2bd1df31fa739624cbe4)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=86100d4ca9b42ac044bd97ba7b24c23f0b53a762
Author: Patrick Rudolph <siro at das-labor.org>
Date:   Thu Dec 10 19:50:38 2015 +0100

    gallium/util: return correct number of bound vertex buffers
    
    In case a state tracker unbinds every slot by a seperate
    pipe->set_vertex_buffers() call, starting from slot zero, the number
    of bound buffers would not reach zero at all.
    The current algorithm does not account for pre-existing holes in the
    buffer list.
    
    Unbinding all buffers at once or starting at the top-most slot results
    in correct behaviour.
    
    Calculating the correct number of bound buffers fixes a NULL pointer
    dereference in nvc0_validate_vertex_buffers_shared().
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93004
    Signed-off-by: Patrick Rudolph <siro at das-labor.org>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 79bff488bc23b8615cc37069b6c5914c56be835f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c054b2dd3393d64fa7168d719c6e9c7db1fd60fd
Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Dec 10 10:36:42 2015 +1000

    mesa/varray: set double arrays to non-normalised.
    
    Doesn't have any effect in practice I don't think, but
    CTS reads back using GetVertexAttrib.
    
    This fixes: GL41-CTS.vertex_attrib_64bit.get_vertex_attrib
    
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>
    (cherry picked from commit 21abaad8fe7b5bf78737b9cf009548f41e4777b9)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=47fa06c839e647a0eb0236daec5f96e4a2441ed1
Author: Patrick Rudolph <siro at das-labor.org>
Date:   Sun Dec 6 10:11:59 2015 +0100

    nv50,nvc0: fix use-after-free when vertex buffers are unbound
    
    Always reset the vertex bufctx to make sure there's no pointer to
    an already freed pipe_resource left after unbinding buffers.
    Fixes use after free crash in nvc0_bufctx_fence().
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93004
    Signed-off-by: Patrick Rudolph <siro at das-labor.org>
    [imirkin: simplify nvc0 fix, apply to nv50]
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
    
    (cherry picked from commit 432a798cf5c7fab18a3e32d4073840df7d0d37cb)




More information about the mesa-commit mailing list