Mesa (10.0): 22 new commits

Carl Worth cworth at kemper.freedesktop.org
Fri Jan 3 00:20:49 UTC 2014


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ccb6cc7b7466687813c651b75d84598a7789321
Author: Chad Versace <chad.versace at linux.intel.com>
Date:   Fri Dec 20 04:39:03 2013 -0800

    i965/gen6: Fix HiZ hang in WebGL Google Maps
    
    Emitting flushes before depth and hiz resolves at the top of blorp's
    state emission fixes the hang. Marchesin and I found the fix
    experimentally, as opposed to adhering to a documented hardware
    workaround.  A more minimal fix likely exists, but this gets the job
    done.
    
    Fixes HiZ hangs in the new WebGL Google maps on Sandybridge Chrome OS.
    Tested by zooming in and out continuously for 2 hours.
    
    This patch is based on
    https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/8bc07bb70163c3706fb4ba5f980e57dc942f56dd
    
    CC: mesa-stable at lists.freedesktop.org
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70740
    Signed-off-by: Stéphane Marchesin <marcheu at chromium.org>
    Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
    Reviewed-by: Paul Berry <stereotype441 at gmail.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    (cherry picked from commit 1a928816a1b717201f3b3cc998a42731b280e6ba)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4d7961e95e53f80196c24a26309ae7ba9765297c
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Dec 4 00:39:52 2013 +0100

    st/mesa: fix glClear with multiple colorbuffers and different formats
    
    Cc: 10.0 9.2 9.1 <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 0612005aa66f211753f44bb4ffdfdcc9316281ac)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8be00e5f203cdf8a69d7283e6fdc872e80cf5c9
Author: Erik Faye-Lund <kusmabite at gmail.com>
Date:   Tue Dec 17 16:37:33 2013 +0100

    glcpp: error on multiple #else/#elif directives
    
    The preprocessor currently accepts multiple else/elif-groups
    per if-section. The GLSL-preprocessor is defined by the C++
    specification, which defines the following parse-rule:
    
    if-section:
    	if-group elif-groups(opt) else-group(opt) endif-line
    
    This clearly only allows a single else-group, that has to come
    after any elif-groups.
    
    So let's modify the code to follow the specification. Add test
    to prevent regressions.
    
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Carl Worth <cworth at cworth.org>
    
    Cc: 10.0 <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit eb212c5a302f0122a13b36dfdf07e91f951ae2e7)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=347f1493320e1bc2194c70d4d66bfe2b5883bf1e
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Dec 29 23:19:36 2013 -0800

    Revert "mesa: Remove GLXContextID typedef from glx.h."
    
    This reverts commit 136a12ac98868d82c2ae9fcc80d11044a7ec56d1.
    
    According to belak51 on IRC, this commit broke Allegro, which would no
    longer compile.  Applications apparently expect the GLXContextID typedef
    to exist in glx.h; removing it breaks them.  A bit of searching around
    the internet revealed other complaints since upgrading to Mesa 10.
    
    Cc: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit f425d56ba41382be04366d011536ee78a03a2f33)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=49c865180ac90ad8a10a4bc18143c58a8ed4931e
Author: Alex Deucher <alexander.deucher at amd.com>
Date:   Tue Dec 24 15:22:31 2013 -0500

    r600g: fix SUMO2 pci id
    
    0x9649 is sumo2, not sumo.
    
    Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
    CC: "9.2" "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit e2d53fac1c5b18f5c9e95d39d4e2be4703b0b363)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=765ceb6a3615c257d8abc437ec79f7b2dec95bce
Author: Aaron Watry <awatry at gmail.com>
Date:   Fri Nov 15 16:09:41 2013 -0600

    r600/pipe: Stop leaking context->start_compute_cs_cmd.buf on EG/CM
    
    Found while tracking down memory leaks in VDPAU playback
    
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
    
    CC: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 3ddabe0d523416693f28e293d8d3d918bdb612ca)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a7166f8320447a0455997aa921869ee4b3ee4ea
Author: Aaron Watry <awatry at gmail.com>
Date:   Fri Nov 15 16:07:31 2013 -0600

    st/vdpau: Destroy context when initialization fails
    
    Prevents a potential memory leak found when tracking down something else.
    
    Reviewed-by: Christian König <christian.koenig at amd.com>
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
    
    CC: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 20446d0e535c0735489c8944e8d767e0fc74fc6e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4a2f239d7aef09f466927cd506019a14348f256
Author: Aaron Watry <awatry at gmail.com>
Date:   Fri Nov 8 13:59:59 2013 -0600

    radeon/llvm: Free target data at end of optimization
    
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
    
    CC: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 767b0f82c37f0370c05335120e50f0a534549109)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=23d290d102ef871443cbd5064ee2a7636839d14e
Author: Aaron Watry <awatry at gmail.com>
Date:   Fri Nov 8 13:53:10 2013 -0600

    r600/compute: Use the correct FREE macro when deleting compute state
    
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
    
    CC: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 0bd858d7ff4a16228164e3157aca846edeb6c228)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a20bf3ed26a6c0641f9b9e0ea1290fc70598449
Author: Aaron Watry <awatry at gmail.com>
Date:   Thu Dec 12 16:35:54 2013 -0600

    r600/compute: Free compiled kernels when deleting compute state
    
    v2: Remove unnecessary null pointer check
    
    CC: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit e19717d075bd26c16e12564ed578ff519a5ce57a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=87cdd13324a070aa36424bead9dc2c053da9c301
Author: Aaron Watry <awatry at gmail.com>
Date:   Thu Dec 12 16:34:09 2013 -0600

    radeon/compute: Stop leaking LLVMContexts in radeon_llvm_parse_bitcode
    
    Previously we were creating a new LLVMContext every time that we called
    radeon_llvm_parse_bitcode, which caused us to leak the context every time
    that we compiled a CL program.
    
    Sadly, we can't dispose of the LLVMContext at the point that it was being
    created because evergreen_launch_grid (and possibly the SI equivalent) was
    assuming that the context used to compile the kernels was still available.
    
    Now, we'll create a new LLVMContext when creating EG/SI compute state, store
    it there, and pass it to all of the places that need it.
    
    The LLVM Context gets destroyed when we delete the EG/SI compute state.
    
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
    
    CC: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 8c9a9205d96b5ac0718218bfa952a5b4b6ad939c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2ea582679459f593c15daabf9c0563dcdb768c1
Author: Aaron Watry <awatry at gmail.com>
Date:   Fri Nov 8 13:45:05 2013 -0600

    pipe_loader/sw: close dev->lib when initialization fails
    
    Prevents a memory leak.
    
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
    
    CC: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit a7653c19a3b1adae162864587a7ab1c17ab256e6)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0057a2b0e78bd6a0940a4ac1817522b6258ca60d
Author: Aaron Watry <awatry at gmail.com>
Date:   Fri Nov 8 10:15:44 2013 -0600

    clover: Remove unused variable
    
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
    
    CC: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 862f55c29c50798942e58ea75c5294921c0489f8)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8518b6360d407c07ae2a00013ff8b7a636c9bfdf
Author: Jonathan Liu <net147 at gmail.com>
Date:   Sun Dec 15 18:24:00 2013 -0700

    llvmpipe: use pipe_sampler_view_release() to avoid segfault
    
    This fixes another case of faulting when freeing a pipe_sampler_view
    that belongs to a previously destroyed context.
    
    Cc: "10.0" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Jonathan Liu <net147 at gmail.com>
    Reviewed-by: Brian Paul <brianp at vmware.com>
    (cherry picked from commit 7990ab58fa01cbebcefd63dd25af5fd6fdddf019)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffd89b27a787752468b9f6aa41068f2d4812e38e
Author: Jonathan Liu <net147 at gmail.com>
Date:   Sat Dec 14 07:15:00 2013 -0700

    st/mesa: use pipe_sampler_view_release()
    
    This fixes a crash where old_view->context was already freed in the
    pipe_sampler_view_reference function contained in
    src/gallium/auxiliary/utils/u_inlines.h. As a result, the
    sampler_view_destroy function pointer contained 0xfeeefeee indicating
    freed heap memory.
    
    Cc: "10.0" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Jonathan Liu <net147 at gmail.com>
    Reviewed-by: Brian Paul <brianp at vmware.com>
    (cherry picked from commit 670be71bd801fea876f7512865ed5f54340da9be)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0ee1b1748f5ffb31dabc548d984cba9f58a5b98
Author: Henri Verbeet <hverbeet at gmail.com>
Date:   Sun Dec 15 12:23:38 2013 +0100

    i915: Add support for gl_FragData[0] reads.
    
    Similar to 556a47a2621073185be83a0a721a8ba93392bedb, without this reading from
    gl_FragData[0] would cause a software fallback.
    
    Bugzilla: https://bugs.winehq.org/show_bug.cgi?id=33964
    Signed-off-by: Henri Verbeet <hverbeet at gmail.com>
    Cc: 10.0 9.2 9.1 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Reviewed-by: Eric Anholt <eric at anholt.net>
    (cherry picked from commit b094b3b9f4c7b40056c31e3480ab7dc530da56e7)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8dd89b8ad8dd0d3c98e8700b3d1ed3cba10479c6
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Dec 18 12:30:06 2013 -0800

    i965: Fix 3DSTATE_PUSH_CONSTANT_ALLOC_PS packet creation.
    
    When adding geometry shader support, we accidentally reversed the size
    and offset parameters.
    
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Paul Berry <stereotype441 at gmail.com>
    Cc: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 51c9cfc296318760aab421a79da727acd0e36311)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec80a279a5f79b45b773e9e46e7b6fa7159a4049
Author: Kevin Rogovin <kevin.rogovin at intel.com>
Date:   Mon Dec 9 10:38:35 2013 +0200

    Use line number information from entire function expression
    
    This patch changes the error reporting behavior for incorrect function
    invocation (triggered by match_function_by_name() unable to find a
    matching function call) from using the line number information
    associated to the function name term to using the line number
    information of the entire function expression. Fixes bug #72264.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72264
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Cc: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 23d294bb60be41e3876179e7b763a275902d1efd)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6ea5b7bd764b5dfb6513445dd26a76b07ea48e6
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Thu Dec 12 14:34:27 2013 -0800

    mesa: Fix error code generation in glBeginConditionalRender()
    
    This patch changes the error condition to satisfy below statement
    from OpenGL 4.3 core specification:
    "An INVALID_OPERATION error is generated if id is the name of a query
    object with a target other SAMPLES_PASSED, ANY_SAMPLES_PASSED, or
    ANY_SAMPLES_PASSED_CONSERVATIVE, or if id is the name of a query
    currently in progress."
    
    Cc: mesa-stable at lists.freedesktop.org
    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Brian Paul <brianp at vmware.com>
    (cherry picked from commit 7a73c6acb0a4f5f049795f73a54a08a6dbe166ed)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db0dc5c008f3f4a475de1c6471f99f45f7c5b7d6
Author: Kristian Høgsberg <krh at bitplanet.net>
Date:   Sat Dec 7 22:02:11 2013 -0800

    dri_util: Don't assume __DRIcontext->driverPrivate is a gl_context
    
    The driverPrivate pointer is opaque to the driver and we can't assume
    it's a struct gl_context in dri_util.c.  Instead provide a helper function
    to set the struct gl_context flags from the incoming DRI context flags.
    
    v2 (idr): Modify the other classic drivers to also use
    driContextSetFlags.  I ran all the piglit GLX_ARB_create_context tests
    with i965 and classic swrast without regressions.
    
    Signed-off-by: Kristian Høgsberg <krh at bitplanet.net>
    Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com> [v1]
    Reviewed-by: Eric Anholt <eric at anholt.net>
    Tested-by: Ilia Mirkin <imirkin at alum.mit.edu> [v1 on Gallium nouveau]
    Cc: "10.0" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 38366c0c6e715314367b15680702e382d5c46a4a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2940d11d0b6b299676897ad7ef45e11fc8b6cfe
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Dec 4 00:27:20 2013 +0100

    mesa: fix interpretation of glClearBuffer(drawbuffer)
    
    This corresponding piglit tests supported this incorrect behavior instead of
    pointing at it.
    
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    Cc: 10.0 9.2 9.1 <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 03d848ea1003abefd8fe51a5b4a780527cd852af)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=27623f2645215248aa53e471e2675f1def29dcff
Author: Vadim Girlin <vadimgirlin at gmail.com>
Date:   Wed Dec 11 04:08:32 2013 +0400

    r600g/sb: fix stack size computation on evergreen
    
    On evergreen we have to reserve 1 stack element in some additional cases
    besides the ones mentioned in the docs, but stack size computation was
    recently reimplemented exactly as described in the docs by the patch that
    added workarounds for stack issues on EG/CM, resulting in regressions
    with some apps (Serious Sam 3).
    
    This patch fixes it by restoring previous behavior.
    
    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=72369
    
    Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
    Cc: "10.0" <mesa-stable at lists.freedesktop.org>
    Tested-by: Andre Heider <a.heider at gmail.com>
    (cherry picked from commit 00faf82832f3e6ef886abad246b50cc47b901c1f)




More information about the mesa-commit mailing list