Mesa (11.2): 47 new commits

Emil Velikov evelikov at kemper.freedesktop.org
Thu May 5 13:11:19 UTC 2016


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f18e2921d7f58671a76cf070caae83cdb4ce95a7
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Fri Apr 22 17:28:46 2016 -0500

    radeonsi: work around an MSAA fast stencil clear problem
    
    A piglit test (arb_texture_multisample-stencil-clear) has been sent.
    This problem was discovered analyzing
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93767
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit 8c43c06e0463515c1339d44cbb8f78169e6a06fb)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=069ade547f1bfca3750fc2cc78e1ce39a6f59c07
Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Thu May 5 14:05:33 2016 +0100

    cherry-ignore: ignore the GetSamplerParameterIuiv{EXT,OES} fixups
    
    The functions/extension landed after the branchpoint.
    
    Signed-off-by: Emil Velikov <emil.velikov at collabora.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=97fe75cee25c881643a7e56725375453a0457392
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Wed May 4 01:28:23 2016 -0400

    nouveau/video: properly detect the decoder class for availability checks
    
    The kernel is now more strict with the class ids it exposes, so we need
    to check the G98 and MCP89 classes as well as the GT215 class. This
    effectively caused us to decide there were no decoding capabilities on
    newer kernel for VP3 chips.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95251
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 38fcf7cbadc748816f99b2c3c9f2f55d0f1635fe)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=05cf9489898b38706f847faa2e3fb786f6a782a6
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun May 1 15:29:52 2016 +0200

    st/mesa: fix blit-based GetTexImage for non-finalized textures
    
    This fixes getteximage-depth piglit failures on radeonsi.
    
    Cc: 11.1 11.2 <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    (cherry picked from commit 3d956b4bc0b346a6dff23bfe56c6b5ae1ec1ddaa)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a50ff5dffcf1734daf58eb34c68f106602dc49a9
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Fri Apr 22 21:57:51 2016 -0500

    radeonsi: correct NULL-pointer check in si_upload_const_buffer
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit 169ace5636defc032ed2a835b5ea7c55631b930f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d613dd774c6fa5ba5cf01e5b361314512362b2bd
Author: WuZhen <wuzhen at jidemail.com>
Date:   Thu Apr 28 15:34:58 2016 +0800

    android: enable dlopen() on all architectures
    
    Cc: "11.2 11.1" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Chih-Wei Huang <cwhuang at linux.org.tw>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    (cherry picked from commit ea4c1afd050fbfab4bd4d3d79cf7784e0fd0825f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8679ca16740fc6da9083deebba6954a5253099fd
Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Sun May 1 10:27:06 2016 +0100

    winsys/sw/xlib: use correct free function for xlib_dt->data
    
    Analogous to previous commit.
    
    Cc: "11.2 11.1" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    (cherry picked from commit 5649d6ab06a3d9a4183272a140f767fa0ed4127e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3b8958e3511b5a8a6f11112e3c0eb99040d86522
Author: WuZhen <wuzhen at jidemail.com>
Date:   Thu Apr 28 15:34:56 2016 +0800

    winsys/sw/dri: use correct free function for dri_sw_dt->data
    
    align_malloc() is used to allocate dri_sw_dt->data, thus we should not
    be using FREE() but align_free().
    
    Cc: "11.2 11.1" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Chih-Wei Huang <cwhuang at linux.org.tw>
    [Emil Velikov: tweak commit summary/shortlog]
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
    
    (cherry picked from commit 4f21f3f2e866e5c95bf4b924729bde35dbc35df0)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8d5e82eb0dacc8e774c9d706a78a6aebaccbf5e
Author: WuZhen <wuzhen at jidemail.com>
Date:   Thu Apr 28 15:34:55 2016 +0800

    tgsi: initialize stack allocated struct
    
    Cc: "11.2 11.1" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Chih-Wei Huang <cwhuang at linux.org.tw>
    Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
    (cherry picked from commit 798f7a8596e3ff3f57a44812d7fd005f53f5557c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0a27c07d1500c312bae042e6029ca4243a54b53d
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Apr 28 21:09:12 2016 +0200

    st/glsl_to_tgsi: fix potential crash when allocating temporaries
    
    When index - t->temps_size is greater than 4096, allocating space for
    temporaries on demand will miserably crash. This can happen when a game
    uses a lot of temporaries like the recent released Tomb raider.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 8f2238ccbae399a20fce24c5941accced7cee8d2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a407f06ef6688168e9d761e5f2384097641acb66
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Apr 27 21:07:07 2016 -0700

    glsl: Lower vector_extracts to swizzles after lower_vector_derefs.
    
    lower_vector_derefs can produce new vector_extract operations.
    Neither i965 nor st_glsl_to_tgsi can handle them, so we'd best
    convert them to swizzles.
    
    Together with the previous patch, this fixes assertion failures in
    GLideN64, as well as a new Piglit test which reproduces the issue:
    spec/glsl-1.10/compiler/vector-dereference-in-dereference.frag
    
    Cc: mesa-stable at lists.freedesktop.org
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95164
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    (cherry picked from commit 750c38fad1f19e2403b4960674006c5f932075ad)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d12a19de60f2edfa06298eb0dcc5e75d2e1f47ad
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Apr 27 20:51:36 2016 -0700

    glsl: Convert lower_vec_index_to_swizzle to a rvalue visitor.
    
    The old visitor missed some cases.  For example, it wouldn't handle
    an ir_dereference_array with a vector_extract as the index.
    
    Rather than trying to add the missing cases, just rewrite it as an
    ir_rvalue_visitor.  This makes it easy to replace any expression,
    and is much less code.
    
    Cc: mesa-stable at lists.freedesktop.org
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95164
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
    (cherry picked from commit 1cd600dbb975cce616da376a680692afb2da47f9)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4188b650be07031fabf0557344711878146075e4
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Thu Apr 28 15:11:42 2016 -0500

    gallium/radeon: fix crash in r600_set_streamout_targets
    
    Protect against dereferencing a gap in the targets array. This was triggered
    by a test in the Khronos CTS.
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit aa6f88f891d6e070ea8fa251493e3d8ab2af98aa)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2d9723ce3934a4a1bdbaa7ef61904a6a30ca6e0
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Mon Apr 25 18:20:50 2016 -0500

    st/glsl_to_tgsi: reduce stack explosion in recursive expression visitor
    
    In optimized builds, visit(ir_expression *) experiences inlining with gcc that
    leads the function to have a roughly 32KB stack frame. This is a problem given
    that the function is called recursively. In non-optimized builds, the stack
    frame is much smaller, hence one gets crashes that happen only in optimized
    builds.
    
    Arguably there is a compiler bug or at least severe misfeature here. In any
    case, the easy thing to do for now seems to be moving the bulk of the
    non-recursive code into a separate function. This is sufficient to convince my
    version of gcc not to blow up the stack frame of the recursive part. Just to be
    sure, add the gcc-specific noinline attribute to prevent this bug from
    reoccuring if inliner heuristics change.
    
    v2: put ATTRIBUTE_NOINLINE into macros.h
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95133
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95026
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92850
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Rob Clark <robdclark at gmail.com>
    (cherry picked from commit 98c348d26b28a662d093543ecb7ca839e7883e8e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8eec387c5805e640b1e2d7e8ca659c9620fe1a13
Author: Chad Versace <chad.versace at intel.com>
Date:   Mon Apr 11 15:12:15 2016 -0700

    dri: Fix robust context creation via EGL attribute
    
    driCreateContextAttribs() emits an error if bit
    __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS is set for an ES context.  But,
    EGL_EXT_create_context_robustness and EGL 1.5 both allow creation of
    robust ES contexts. One requests a robust ES context by setting the
    EGL_CONTEXT_OPENGL_ROBUST_ACCESS *attribute*, which Mesa's EGL layer
    translates into the __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS *bit*.
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit 7a835b3fd9b171eedecfdb23d326eae4bc0cb6d4)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3705e4352f2e4e05989add52b20fff8c0635ce9b
Author: Boyuan Zhang <boyuan.zhang at amd.com>
Date:   Fri Apr 8 11:31:15 2016 -0400

    radeon/uvd: alignment fix for decode message buffer
    
    Signed-off-by: Boyuan Zhang <boyuan.zhang at amd.com>
    Reviewed-by: Christian König <christian.koenig at amd.com>
    (cherry picked from commit 1c7ba7f15646367006d615180e89d5ea34a3d5f6)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=193c00911b513e210dc61bd064e3dd3a3a6f62fa
Author: Stefan Dirsch <sndirsch at suse.de>
Date:   Mon Apr 25 15:06:25 2016 +0200

    dri3: Check for dummyContext to see if the glx_context is valid
    
    According to the comments in src/glx/glxcurrent.c __glXGetCurrentContext()
    always returns a valid pointer. If no context is made current, it will
    contain dummyContext. Thus a test for NULL will always fail.
    
    https://lists.freedesktop.org/archives/mesa-dev/2016-April/113962.html
    
    Signed-off-by: Stefan Dirsch <sndirsch at suse.de>
    Reviewed-by: Egbert Eich <eich at freedesktop.org>
    Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
    (cherry picked from commit 7d25ed70362ee9362aeeadb00f5a4e2bea690827)
    Nominated-by: Emil Velikov <emil.velikov at collabora.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0fe3462f88e861ce5d42fb84387612f80b23f530
Author: Egbert Eich <eich at suse.com>
Date:   Thu Apr 21 15:02:53 2016 +0200

    dri2: Check for dummyContext to see if the glx_context is valid
    
    According to the comments in src/glx/glxcurrent.c __glXGetCurrentContext()
    always returns a valid pointer. If no context is made current, it will
    contain dummyContext. Thus a test for NULL will always fail.
    
    https://bugzilla.opensuse.org/show_bug.cgi?id=962609
    
    Tested-by: Olaf Hering <ohering at suse.com>
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
    Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
    (cherry picked from commit 4d9b518ad2a03232bf8162b05c6504d06c47eb91)
    Nominated-by: Emil Velikov <emil.velikov at collabora.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d1874bc1cd2d2e479cbefb35f4d22d9dd378178
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Oct 9 18:07:23 2015 -0700

    i965/fs: Properly report regs_written from SAMPLEINFO
    
    The previous behavior would only allocate one register and then write
    four thus potentially stomping three innocent bystanders.
    
    Cc: mesa-stable at lists.freedesktop.org
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
    (cherry picked from commit c7a09c057162ed0b7e9e039470c76bb79518876c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=143161ad97581388b6a34037a2bfd697098868e8
Author: Patrick Rudolph <siro at das-labor.org>
Date:   Mon Mar 28 11:52:00 2016 +0200

    r600g: fix and optimize tgsi_cmp when using ABS and NEG modifier
    
    Some apps set NEG and ABS on the source param to test for zero.
    Use ALU_OP3_CNDE insted of ALU_OP3_CNDGE and unset both modifiers.
    
    It also removes the need for a MOV instruction, as ABS isn't
    supported on op3.
    
    Tested on AMD CAYMAN and AMD RV770.
    
    Signed-off-by: Patrick Rudolph <siro at das-labor.org>
    Cc: mesa-stable at lists.freedesktop.org
    Signed-off-by: Dave Airlie <airlied at redhat.com>
    (cherry picked from commit fb5d38e21982e9eb3195c61d020c9772b73bdbcf)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b649b62abb4bcc6f018b68b885c08b1d4d7c26c0
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Apr 11 16:58:57 2016 +0200

    nvc0: reduce GL_MAX_3D_TEXTURE_SIZE to 2048 on Kepler+
    
    The blob sets it to 2048 and using 4096 reports an INVALID_DATA error
    with RT_ARRAY_MODE when z is 4096. Suggested by Ilia Mirkin.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit fdbb476829943095d0667e43cea2dbb96046ddb3)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=556d741db731e2b3f55f32756a8156d53a1feddb
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Apr 26 18:14:05 2016 +0200

    gk110/ir: add emission for (a OP b) OP c
    
    This is pretty similar to NVC0 except that offsets have changed.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit c62b1b92f7da2563511581a2a74048334585da27)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ce5334292da984dcb431f84f705feab4a404c680
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Apr 26 18:12:59 2016 +0200

    nvc0/ir: fix wrong emission of (a OP b) OP c
    
    The third source must be emitted at offset 49 instead of 17 and the
    not modifier is at 52 instead of 20. If you look a bit above in
    emitLogicOp() you will see that the dest is emitted at 17 which
    confirms that src(2) is obviously wrong.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 3da8528846773e936850b51ae7d6287758c45b7b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ab417ddbd46425b17dd5c34879e12591fad2712
Author: Oded Gabbay <oded.gabbay at gmail.com>
Date:   Wed Apr 20 00:17:45 2016 +0300

    r600g: use do_endian_swap in texture swapping function
    
    For some texture formats we need to take "do_endian_swap" into account
    when configuring their swizzling.
    
    Signed-off-by: Oded Gabbay <oded.gabbay at gmail.com>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit 965175aba3eee57e4bcabd616c36abe647524f9c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=95b47f70f9115f92dc61d65a63ee54dbfd6276c9
Author: Oded Gabbay <oded.gabbay at gmail.com>
Date:   Thu Apr 21 15:51:40 2016 +0300

    r600g: use do_endian_swap in color swapping functions
    
    For some formats we need to take "do_endian_swap" into account when
    configuring swapping for color buffers.
    
    Signed-off-by: Oded Gabbay <oded.gabbay at gmail.com>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit c86c761343885b157b122416b0e3d3641fc1061c)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=82e369969a8a6a0edd14573a40ccb02360c45294
Author: Oded Gabbay <oded.gabbay at gmail.com>
Date:   Tue Apr 19 16:25:23 2016 +0300

    r600g: set endianess of 16/32-bit buffers according to do_endian_swap
    
    This patch modifies r600_colorformat_endian_swap(), so for 16-bit and for
    32-bit buffers, the endianess configuration will be determined not only
    by the color/texture format, but also by the do_endian_swap parameter.
    
    The only exception is for array formats, which are always set to not do
    swapping, because for them gallium sets an alias based on the machine's
    endianess.
    
    v4:
    V_0280A0_COLOR_16_16 and V_0280A0_COLOR_16_16_FLOAT should be set to
    8IN16 because the bytes inside need to be swapped even for array formats.
    
    Signed-off-by: Oded Gabbay <oded.gabbay at gmail.com>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit 686ad477bdfc698b8ff7ccfba6225b2c1c68214a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8cde5fabec1b457f5bbf27a349ac75094fc58ef
Author: Oded Gabbay <oded.gabbay at gmail.com>
Date:   Mon Mar 21 23:46:15 2016 +0200

    r600g/radeonsi: send endian info to format translation functions
    
    Because r600 GPUs can't do swap in their DB unit, we need to disable
    endianess swapping for textures that are handled by DB.
    
    There are four format translation functions in r600g driver:
    
    - r600_translate_texformat
    - r600_colorformat_endian_swap
    - r600_translate_colorformat
    - r600_translate_colorswap
    
    This patch adds a new parameters to those functions, called
    "do_endian_swap". When running in a big-endian machine, the calling
    functions will check whether the texture/color is handled by DB -
    "rtex->is_depth && !rtex->is_flushing_texture" - and if so, they will
    send FALSE through this parameter. Otherwise, they will send TRUE.
    
    The translation functions, in specific cases, will look at this parameter
    and configure the swapping accordingly.
    
    v4:
    evergreen_init_color_surface_rat() is only used by compute and don't
    handle DB surfaces, so just sent hard-coded FALSE to translation
    functions when called by it.
    
    Signed-off-by: Oded Gabbay <oded.gabbay at gmail.com>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit 2242dbe11d56b05ede7a928a9973adda4b145ad7)
    
    Squashed with commit
    
    radeonsi: fix build error because of missing param
    
    Signed-off-by: Oded Gabbay <oded.gabbay at gmail.com>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 514c5b5f4b692e2596341e08797c4f6dc8cdfe00)
    Fixes: 2242dbe11d5 "r600g/radeonsi: send endian info to format
    translation functions"

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f20890c7725f44d3f8c244d7e83e5b243102b521
Author: Roland Scheidegger <sroland at vmware.com>
Date:   Tue Apr 26 04:53:01 2016 +0200

    gallivm: make sampling more robust against bogus coordinates
    
    Some cases (especially these using fract for coord wrapping) did not handle
    NaNs (or Infs) correctly - the following code assumed the fract result
    could not be outside [0,1], but if the input is a NaN (or +-Inf) the fract
    result was NaN - which then could produce out-of-bound offsets.
    
    (Note that the explicit NaN behavior changes for min/max on x86 sse don't
    result in actual changes in the generated jit code, but may on other
    architectures. Found by looking through all the wrap functions.)
    
    This fixes https://bugs.freedesktop.org/show_bug.cgi?id=94955
    
    No piglit changes.
    
    (v2: fix min/max typo in coord_mirror, add comment)
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    
    Tested-by: Bruce Cherniak <bruce.cherniak at intel.com>
    Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
    (cherry picked from commit bd07e20d208268382a34dca23ff71a8192bb1525)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=02420d0ad3c5df0e6583e1b6e29884e6b06ce5ba
Author: Frederic Devernay <frederic.devernay at m4x.org>
Date:   Mon Apr 25 10:39:43 2016 -0600

    glapi: fix _glapi_get_proc_address() for mangled function names
    
    In the dispatch table, all functions are stored without the "m" prefix.
    Modify code so that OSMesaGetProcAddress works both with gl and mgl
    prefixes. Similar to
    https://lists.freedesktop.org/archives/mesa-dev/2015-September/095251.html
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94994
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Brian Paul <brianp at vmware.com>
    (cherry picked from commit 23949cdf2c85637448d9df0b0b4be647ac722b3a)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=caeb947e036823281669dc19525704e8e40b9f25
Author: Brian Paul <brianp at vmware.com>
Date:   Fri Apr 15 12:14:27 2016 -0600

    gallium/util: initialize pipe_framebuffer_state to zeros
    
    To silence a valgrind uninitialized memory warning.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94955
    Cc: "11.1 11.2" <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 1db8313168531f19b410ac55f7c724ef5d23b2c4)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0ddf733c6b6777cc2446a8ce77dfdf9bb59899f
Author: Eric Anholt <eric at anholt.net>
Date:   Wed Apr 20 17:00:13 2016 -0700

    vc4: Make sure we recompile when sample_mask changes.
    
    Part of fixing piglit EXT_framebuffer_multisample/sample-coverage inverted
    (there is also a bug with RCL tiled blits)
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 79b36168e00891c765d0dffed411beca48be1da5)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a12a9a57638ebbd21017ef9246cbf870b0bcb8ab
Author: Eric Anholt <eric at anholt.net>
Date:   Wed Apr 20 16:31:28 2016 -0700

    vc4: Fix tests for format supported with nr_samples == 1.
    
    This was a bug from the MSAA enabling.  Tests for surfaces with
    nr_samples==1 instead of 0 (generally GL renderbuffers) would incorrectly
    fail out.
    
    Fixes the ARB_framebuffer_sRGB piglit tests other than srgb_conformance.
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 1410403e1e6cd948b087ebb19f6865f054d14877)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=69bfd3b54390fa3632d04861c9d310c63c32c86b
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Fri Apr 22 00:01:56 2016 -0400

    nvc0: fix retrieving query results into buffer for timestamps
    
    The timestamps are stored in a funny place, and even though they are a
    64-bit result, are not stored with is64bit. Account for that when
    retrieving the query result into a resource.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 88ca4a43a2dffe132c9a2fa29d490d6644ecd7f8)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2298c249515a1df0308a70a245a4eb780b0ee14
Author: Roland Scheidegger <sroland at vmware.com>
Date:   Thu Apr 21 02:52:35 2016 +0200

    gallivm: fix bogus argument order to lp_build_sample_mipmap function
    
    Screwed up since 0753b135f6e83b171d8a1b08aea967374f3542bc.
    
    (Only an issue with different min/mag filters, and then only in some cases,
    which is probably why it went unnoticed for quite a while.
    The effect should have simply been nearest mip filter instead of linear, iff
    min was nearest, mag was linear, and all pixels hit the mignifying path.)
    
    Fixes a bunch of dEQP failures.
    
    Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 4ff8cbb0d8c483cc91cad3494cd1db572dcd51ee)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e33c96e88fac6a495a4c8f5fb0e06defff0cc29
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Apr 20 16:55:33 2016 -0700

    i965: Fix clear code for ignoring colormask for XRGB formats on Gen9+.
    
    In commit cda886a4851ab767fba40e8474d6fa8190347e4f, Neil made us stop
    advertising RGBX formats on Gen9+, as the hardware apparently no longer
    has working fast clear support for those formats.  Instead, we just
    fall back to RGBA formats, and use SCS to override alpha to 1.0.
    
    This is fine, but had one unintended side effect: it made us fall back
    to slow clears when the color mask disables alpha.  Normally, we ignore
    the color mask for non-existent channels.  This includes alpha for XRGB
    formats as writing garbage to the X channel is harmless.  But, now that
    we use RGBA, we think there's a real alpha channel, and can't do the
    optimization.
    
    To hack around this, check if _BaseFormat is GL_RGB and ignore alpha.
    
    Improves WebGL Aquarium performance on Skylake GT3e by about 50%
    by letting it use repclears instead of slow clears.
    
    Cc: mesa-stable at lists.freedesktop.org
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Ben Widawsky <ben at bwidawsk.net>
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
    Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
    (cherry picked from commit 73b01e2711ff45a1f313d5372d6c8fa4fe55d4d2)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c15dcb1a6b643980e7d2f875ca6cf826e825a9ae
Author: Jonathan Gray <jsg at jsg.id.au>
Date:   Tue Apr 19 12:29:36 2016 +1000

    egl/x11: authenticate before doing chipset id ioctls
    
    For systems without udev or sysfs that use drm ioctls in the loader
    drm authentication must take place earlier or the loader will fail
    "MESA-LOADER: failed to get param for i915".
    
    Patch from Mark Kettenis.
    
    Cc: "11.2 11.1" <mesa-stable at lists.freedesktop.org>
    Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
    Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
    [Emil Velikov: remove gratuitous white-space]
    Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
    
    (cherry picked from commit 9bbf3737f9c96377bee65b947da3e63adaa58d58)
    
    Squashed with commit
    
    egl/x11: resolve "initialization from incompatible pointer type" warning
    
    With earlier commit we've moved a few functions and changing the
    argument type from _EGLDisplay * to struct dri2_egl_display *.
    
    The latter is effectively a wrapper around the former, thus
    functionality was preserved, although GCC rightfully warned us about the
    misuse.
    
    Add a simple wrapper that casts and propagates the correct type.
    
    Fixes: 9bbf3737f9c ("egl/x11: authenticate before doing chipset id
    ioctls")
    Cc: "11.2 11.1" <mesa-stable at lists.freedesktop.org>
    Reported-by: Matt Turner <mattst88 at gmail.com>
    Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
    
    (cherry picked from commit b8e59292e6a19673ca34a8aaeeb26d75dca23f3f)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d41925215fabd52ab3429808b5c9b26f4e295e8e
Author: Topi Pohjolainen <topi.pohjolainen at intel.com>
Date:   Fri Apr 15 10:12:20 2016 +0300

    i965/blorp: Use 8k chunk size for urb allocation
    
    Previously, we hardcoded "VS URB Starting Address" to 2 (in 8kB chunks),
    which meant VS URB data would start at an offset of 16kB.
    
    However, on Haswell GT3 and Gen8+, we allocate the first 32kB for the
    push constant region.  This means that the PS push constant and VS URB
    data regions overlap, which can lead to corruption.
    
    v2 (Ken): Better description of the change, and do not change vs_size
              from 2 to 1.
    
    Cc: mesa-stable at lists.freedesktop.org
    Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    (cherry picked from commit ede09e672ae277aa78def69fe016a4be454b28ed)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e3d4d7968af6d3985774d38f755c0756a30662a
Author: Topi Pohjolainen <topi.pohjolainen at intel.com>
Date:   Fri Mar 6 15:55:02 2015 +0200

    i965/blorp/gen7: Prepare re-using for gen8
    
    Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
    (cherry picked from commit e04b3cdf33f6fdb363c652e935d8a0b427ef6b15)
    [Emil Velikov: required by the next patch]
    Nominated-by: Emil Velikov <emil.velikov at collabora.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=32c38ccc2cddcc9443d075e2f86ad2e39f3b6471
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 20 19:06:24 2016 +0200

    gk110/ir: make use of IMUL32I for all immediates
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit d30768025a2283d4cc57930b784798bf278969da)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b89e525a727728f8fe20a917cba1ab03436dba6b
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 20 19:47:37 2016 +0200

    gk110/ir: do not overwrite def value with zero for EXCH ops
    
    This is only valid for other atomic operations (including CAS). This
    fixes an invalid opcode error from dmesg. While we are it, make sure
    to initialize global addr to 0 for other atomic operations.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 17a37c78fc16505f717a44aa22551285d1cd8c9e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=822e9c15ecf01002a5f5cb143c2b6584a8fb5759
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Apr 15 15:07:49 2016 -0700

    vc4: Add support for rendering to cube map surfaces.
    
    We need to fix up the offset to point at the face of the cube.  Fixes
    piglit fbo-cubemap, copyteximage CUBE, and glean's fbo test.
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 48fe53bbb9cc14dd758e7a55c55616be85a3358b)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=723a9bc10a46e4412d7f0c123d5b503dac717740
Author: Roland Scheidegger <sroland at vmware.com>
Date:   Fri Apr 15 21:11:52 2016 +0200

    llvmpipe: (trivial) initialize src1_alpha var to NULL
    
    The blend code would do a conditional assignment based on it, causing valgrind
    to complain. Since that variable was actually unused in this case, this
    doesn't fix anything but the warning.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94955
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    
    Reviewed-by: Brian Paul <brianp at vmware.com>
    (cherry picked from commit 64d3ae09b72ee1052560c1704d628b433140e895)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc9da64b3d37bcd084df997eba770b9c1da4547a
Author: Eric Anholt <eric at anholt.net>
Date:   Fri Apr 15 11:43:00 2016 -0700

    vc4: Fix subimage accesses to LT textures.
    
    This code started out like the T case, iterating over utile offsets, but I
    had partially switched it to iterating over pixel offsets.  I hadn't
    caught this before because it's unusual to do piecemeal uploads to small
    textures.
    
    Fixes bad text rendering in QT5 apps, which use a 256x16 glyph cache.
    Also fixes 6 piglit tests related to glTexSubImage() and
    glGetTexSubImage().
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit f6d21bcd6b5cd5073a571034ec640177b0abf82d)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=521887482cbe7527cf1bf2938b7a568165549aeb
Author: Leo Liu <leo.liu at amd.com>
Date:   Tue Apr 12 15:19:31 2016 -0400

    radeon/uvd: fix tonga feedback buffer size
    
    This only applies to tonga
    
    Signed-off-by: Leo Liu <leo.liu at amd.com>
    Reviewed-by: Christian König <christian.koenig at amd.com>
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    (cherry picked from commit 8f4340c5e63d5bb2dd69a09d044832390ea47e14)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1102ea7171899941b69380e63c382996f46a47b4
Author: Brian Paul <brianp at vmware.com>
Date:   Thu Apr 14 15:07:53 2016 -0600

    st/mesa: fix sampler view leak in st_DrawAtlasBitmaps()
    
    I neglected to free the sampler view which was created earlier in the
    function.  So for each glCallLists() command that used the bitmap atlas
    to draw text, we'd leak a sampler view object.
    
    Also, check for st_create_texture_sampler_view() failure and record
    GL_OUT_OF_MEMORY.
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Charmaine Lee <charmainel at vmware.com>
    (cherry picked from commit aed975d5c510135c54252746b44d663d094ecb1e)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=048247115bf89fe52aecc2dd8e23acc7ad17abd4
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 13 10:55:29 2016 -0500

    gallium/radeon: handle failure when mapping staging buffer
    
    Cc: "11.1 11.2" <mesa-stable at lists.freedesktop.org>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    (cherry picked from commit a17911ceb11fbf14b296095a9b5c506295b73d99)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b4a916ab0d973feaab5f757b277247d08db5dca
Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Wed Apr 27 10:19:32 2016 +0100

    cherry-ignore: remove duplicate commit
    
    ... due to the vulkan branch merge.
    
    Signed-off-by: Emil Velikov <emil.velikov at collabora.com>




More information about the mesa-commit mailing list