Mesa (vulkan): 73 new commits

Jason Ekstrand jekstrand at kemper.freedesktop.org
Fri Apr 8 20:22:49 UTC 2016


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e26a978773ba8fbff04cd2ab3342fcb02e90c06e
Merge: 15895bf 1cd19eb
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Apr 7 16:56:34 2016 -0700

    Merge remote-tracking branch 'public/master' into vulkan

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1cd19ebc4a892ada69f9085892441c00674b2764
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Apr 3 03:21:47 2016 +0200

    radeonsi: do per-pixel clipping based on viewport states
    
    In other words, vport scissors are derived from viewport states.
    If the scissor test is enabled, the intersection of both is used.
    
    The guard band will disable clipping, so we have to clip per-pixel.
    
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=059308db841886101586aa3ec5ac74b89abf1a20
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Apr 7 22:38:47 2016 +0200

    nv50/ir: do not try to attach JOIN ops to ATOM
    
    This might result in an INVALID_OPCODE dmesg error in case a join is
    attached to an atomic operation.
    
    Spotted with arb_shader_image_load_store-host-mem-barrier on GK104.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Acked-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Cc: mesa-stable at lists.freedesktop.org

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2abe4f8d7dcdcff75c28958e1a691ebf6cdee1ac
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 6 12:00:08 2016 -0500

    radeonsi: raise number of samplers per shader to 32
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94835
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d2693f58ad27464aabf556e7d6bd4c4eb0fd591
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 6 11:58:42 2016 -0500

    radeonsi: expand the compressed color and depth texture masks to 64 bits
    
    This is in preparation of raising the number of exposed sampler views to 32
    bits, which will raise the total number of sampler views to 33 for the
    polygon stipple texture. That texture should never be compressed (and it's
    certainly not a depth texture), but this approach seems cleaner to me than
    special-casing the last slot in all affected code paths.
    
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f270067ef9c755a10d852c3e6ef4e9a01aabcb17
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 6 11:45:37 2016 -0500

    radeonsi: replace magic 16 by SI_NUM_USER_SAMPLERS
    
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f09036f6c0433c37b826319e2345f88b43b3f141
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 6 11:51:47 2016 -0500

    gallium: raise PIPE_MAX_SAMPLERS to 32
    
    The previous value of 18 was motivated by having drivers that want to expose
    16 samplers but also use some additional samplers for internal use. Raising
    the value even higher isn't going to hurt that case.
    
    On the other hand, some drivers actually use PIPE_MAX_SAMPLERS as the number
    of samplers they expose externally, so raising this number above 32 is fragile
    (because several places in the code use bitfields, and tracking down and
    widening all of them is prone to miss some case).
    
    Reviewed-by: Brian Paul <brianp at vmware.com>
    Reviewed-by: Roland Scheidegger <sroland at vmware.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=84c4d069ac7be1dece2f5eeed277089a79e6acbf
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 6 16:21:28 2016 -0500

    st/glsl_to_tgsi: make samplers_used an uint32_t (v2)
    
    It is used as a bitfield, so it seems cleaner to keep it unsigned.
    
    The literal 1 is a (signed) int, and shifting into the sign bit is undefined
    in C, so change occurences of 1 to 1u.
    
    v2: add an assert for bitfield size and use 1u << idx
    
    Reviewed-by: Brian Paul <brianp at vmware.com>
    Reviewed-by: Roland Scheidegger <sroland at vmware.com> (v1)
    Reviewed-by: Marek Olšák <marek.olsak at amd.com> (v1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bfcc86bf977ac18465c7be0a0fa14354b18d7c6
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Thu Apr 7 12:19:56 2016 -0500

    tgsi/scan: add an assert for the size of the samplers_declared bitfield
    
    The literal 1 is a (signed) int, and shifting into the sign bit is undefined
    in C, so change occurences of 1 to 1u.
    
    Reviewed-by: Brian Paul <brianp at vmware.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc39879989a1f24c232a7d1b7037c4d3fcff2ce2
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 6 16:27:21 2016 -0500

    draw/aaline: stronger guard against no free samplers (v2)
    
    Line anti-aliasing will fail when there is no free sampler available. Make
    the corresponding guard more robust in preparation of raising
    PIPE_MAX_SAMPLERS to 32.
    
    The literal 1 is a (signed) int, and shifting into the sign bit is undefined
    in C, so change occurences of 1 to 1u.
    
    v2: add an assert for bitfield size and use 1u << idx
    
    Reviewed-by: Brian Paul <brianp at vmware.com>
    Reviewed-by: Roland Scheidegger <sroland at vmware.com> (v1)
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl> (v1)
    Reviewed-by: Marek Olšák <marek.olsak at amd.com> (v1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=040f5cb09edef9b54510ca4b41c44f59a1f01fc3
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 6 12:57:51 2016 -0500

    util/pstipple: stronger guard against no free samplers (v2)
    
    When hasFixedUnit is false, polygon stippling will fail when there is no free
    sampler available. Make the corresponding guard more robust in preparation
    of raising PIPE_MAX_SAMPLERS to 32.
    
    The literal 1 is a (signed) int, and shifting into the sign bit is undefined
    in C, so change occurences of 1 to 1u.
    
    v2: add an assert for bitfield size and use 1u << idx
    
    Reviewed-by: Brian Paul <brianp at vmware.com>
    Reviewed-by: Roland Scheidegger <sroland at vmware.com> (v1)
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl> (v1)
    Reviewed-by: Marek Olšák <marek.olsak at amd.com> (v1)

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b7e67b233717dddd6a1dd13fd571fee571d173bf
Author: Brian Paul <brianp at vmware.com>
Date:   Mon Apr 4 19:39:58 2016 -0600

    svga: new SVGA_MSAA env var to disable/enable MSAA pixel formats
    
    On by default.
    
    Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f443af449515240169e69b98bdb3746f38e7f35
Author: Brian Paul <brianp at vmware.com>
Date:   Tue Apr 5 09:56:49 2016 -0600

    svga: add some trivial null pointer checks
    
    These small mallocs will probably never fail, but static analysis tools
    may complain about the missing checks.
    
    Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=60cf2fa477c1a91c1f8daea14d14edca80f1e183
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Apr 5 19:37:16 2016 +0200

    trace: add missing set_shader_images()
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5fac4887d865305f919e1d23cdb3a6f6d7043884
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Apr 7 02:27:01 2016 +0200

    radeonsi: disable perfect ZPASS counts for PIPE_QUERY_OCCLUSION_PREDICATE
    
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=baa0b3f4ccd960bb6131ba16b1f9d8736c6432c1
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Apr 7 00:49:32 2016 +0200

    radeonsi: don't use the real barrier instruction in tess ctrl shaders
    
    Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=715e97e3421ec33c219c9829e7930d135dfe0bf8
Author: Michel Dänzer <michel.daenzer at amd.com>
Date:   Thu Apr 7 15:05:33 2016 +0900

    Revert "clover: Fix build against clang SVN >= r265359"
    
    This reverts commit 0daab9878d2b96356cf667591a2c877d912be52d.
    
    The corresponding clang change was reverted.
    
    Trivial.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=05db68024853fe3613480ca164485ccf67f1a7cc
Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri Mar 25 16:12:19 2016 -0700

    nir/types: Add a wrapper for count_attribute_slots
    
    Reviewed-by: Rob Clark <robdclark at gmail.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=828d84c8e2a85a771adf80b3b7f47d1e24f4840a
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Apr 6 22:38:21 2016 +0100

    r600: use radeon_emit in a few more places in evergreen_compute
    
    This is just a cleanup of the code.
    
    Acked-by: Tom Stellard <thomas.stellard at amd.com>
    Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c40b6f96c705d1e67b5d58ff90774cd0be524a7
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Apr 6 22:35:53 2016 +0100

    r600: make compute global buffer functions static.
    
    This moves things around so that the global buffer handling
    functions in evergreen_compute.c are static.
    
    Acked-by: Tom Stellard <thomas.stellard at amd.com>
    Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5d247dda0d0dfcae5c1e2b730cb7e53e5315676
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Apr 6 22:35:12 2016 +0100

    r600: make two compute functions static.
    
    These aren't used outside evergreen_compute.c
    
    Acked-by: Tom Stellard <thomas.stellard at amd.com>
    Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=41558efa87d610515f88d2c562c785f976f4f641
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Apr 6 22:28:23 2016 +0100

    r600: using pipe_grid_info more in evergreen_compute.
    
    No reason to pull the pieces apart here, also make
    one of the functions static as it's unused outside this.
    
    Acked-by: Tom Stellard <thomas.stellard at amd.com>
    Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6e17d7d698bb19b28e4120c1587605545723c1e
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Apr 6 22:24:35 2016 +0100

    r600: in evergreen_compute use ctx consistently instead of ctx_
    
    Acked-by: Tom Stellard <thomas.stellard at amd.com>
    Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aeb2be3a2f1839b91532b178b997b20ddb69eb13
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Apr 6 22:23:32 2016 +0100

    r600: use rctx consistently in evergreen_compute.c
    
    Another step towards cleaning this up.
    
    Acked-by: Tom Stellard <thomas.stellard at amd.com>
    Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0560c82ff6366edd1ffb52508839586e018457c6
Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Apr 6 22:20:17 2016 +0100

    r600: cleanup whitespace in evergreen_compute.c
    
    This aligns the code with the style of the rest of the driver.
    
    Makes editing it a lot less painful.
    
    Acked-by: Tom Stellard <thomas.stellard at amd.com>
    Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6fc3e7c988876f960864acffe64dd90bab5325a6
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Mon Feb 1 11:18:15 2016 +1100

    GL3.txt: Mark ARB_framebuffer_no_attachments as done
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea310f2b38c30ff4e0e1ee03fca179a4e97cb10b
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Mon Feb 1 12:12:12 2016 +1100

    r600g: Enable ARB_framebuffer_no_attachments
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=483a686f809a2c778912a5536049b1df0cf97d9f
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Sat Jan 2 05:53:57 2016 +1100

    radeonsi: Enable ARB_framebuffer_no_attachments
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1156cad405eb380f065086710df114ed40e767b9
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Sun Mar 20 18:01:06 2016 +1100

    radeonsi: Improve assert info out of si_set_framebuffer_state()
    
    Lets give the developer a little hand if we are going to assert
    on a zero literal at the end of a branch.
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb1bd0ddd70706c765053bc84deecac77d9b2349
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Sun Mar 20 14:50:04 2016 +1100

    radeonsi: Allow 16 samples MSAA mode for PIPE_FORMAT_NONE
    
    For ARB_framebuffer_no_attachment; A is_format_supported() query
    with 'PIPE_FORMAT_NONE' passed implies a query of the number of
    samples supported from the framebuffer with no attachment.
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=63f2b2f2c02fd4685322bc125a81d6d41f73b7c9
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Fri Feb 12 21:11:57 2016 +1100

    softpipe: Set samples and layers in set_framebuffer_state() cb
    
    Carries across the number of samples and layers state in the
    'softpipe_set_framebuffer_state()' callback. This state is
    part of 'ARB_framebuffer_no_attachments' support.
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6a514d7dfde51711399b1c3ffec7b7c7d1bad3b
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Sun Jan 3 21:08:33 2016 +1100

    mesa/st: Update framebuffer state with no.of samples,layers
    
    Handle the case of ARB_framebuffer_no_attachment.
    Also, kill off a dead debug printf() call while we are here.
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ff28d2af0e6099cecb2c6456765e189785a027c
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Mon Feb 1 11:16:06 2016 +1100

    gallium/trace: Dump no.of samples and layers in fb state
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b7075fed75585087fa54b537fa9866bce2fcbee
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Sun Jan 3 01:44:55 2016 +1100

    gallium: Put no.of {samples,layers} into pipe_framebuffer_state
    
    Here we store the number of samples and layers directly in the
    pipe_framebuffer_state so that in the case of
    ARB_framebuffer_no_attachment we may make use of them directly.
    
    Further, we adjust various gallium/auxiliary helper functions
    accordingly.
    
    V2:
      Convert branches in util_framebuffer_get_num_layers() and
      util_framebuffer_get_num_samples() to their canonical form.
    
    V3:
      'git stash pop' the typo fix of 'cbufs' which should be
      'nr_cbufs' that was missing in V2, woops! Thanks Marek for
      pointing this out yet again.
    
    V4:
      Squash in the following patch:
    
      'gallium/util: Ensure util_framebuffer_get_num_samples() is valid'
    
       Upon context creation, internal driver structures are malloc()'ed
       and memset() to zero them. This results in a invalid number of
       samples 'by default'. Handle this in the simplest way to avoid
       elaborate and probably equally sub-optimial solutions.
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b512b5fd3664781d1f9ada1c784353b85bbe0e5b
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Wed Feb 17 10:27:41 2016 +1100

    mesa/st: Set _NumSamples in update_framebuffer_state()
    
    Using PIPE_FORMAT_NONE to indicate what MSAA modes are supported
    with a framebuffer using no attachment.
    
    V.2:
     Rewrite MSAA mode loop to be more general.
    V.3:
     Move comment to right place after loop was rewritten.
    V.4: [airlied]
     remove unneeded variable, and assert, and unneeded pipe assignment
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2016e9ffda26aac6a65c363f38afc047b72d3e83
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Wed Feb 17 21:01:57 2016 +1100

    gallium: Obtain ARB_framebuffer_no_attachment constants
    
    Set default values for the constants required in
    ARB_framebuffer_no_attachments and obtained the number
    of layers from ``PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS``.
    
    We also obtain the MaxFramebufferSamples value using
    a query back to the driver for PIPE_FORMAT_NONE.
    
    V.1:
     Merge if branch predicates into one branch.
     Move const init into st_init_limits()
    
    [airlied: whitespace fixup]
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bc9130fba2f815cb910536d3d3a253a8c3ed0b9
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Wed Feb 17 20:59:52 2016 +1100

    gallium: Add PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT
    
    Add PIPE_CAP to determine if the GL extension
    'GL_ARB_framebuffer_no_attachments' shall be
    supported.
    
    The driver is required to support 'PIPE_FORMAT_NONE'
    via its 'is_format_supported()' callback in order
    to determine the MSAA modes the hardware supports so
    that values requested from the application using
    'GL_ARB_framebuffer_no_attachments' may be quantized
    to what the hardware expects.
    
    V.2:
     Fix doc for a more detailed description of the PIPE_CAP
     and the corresponding GL constant.
    
    V.3:
     Renamed and repurposed once again.
    
    V.4:
     Remove CAP from cap_mapping array.
    
    [airlied: fix damaged whitespace]
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=85f79f0c7567e47ca4c5b204ddf7891fd12e3e85
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Sat Jan 2 05:55:49 2016 +1100

    mesa/st: Use _mesa_geometric_ functions appropriately
    
    Change references to gl_framebuffer::Width, Height, MaxNumLayers
    and Visual::samples to use the _mesa_geometric_ convenience functions
    for those places where the geometry of the gl_framebuffer is needed.
    This is in contrast to the geometry of the intersection of the
    attachments of the gl_framebuffer.
    
    This patch paves the way to enable GL_ARB_framebuffer_no_attachements
    for all gallium drivers.
    
    V.2:
     Remove itermeditate variable state.
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Brian Paul <brianp at vmware.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b40375a21cd8c0336aa9c3fcbabe02c27f9d1471
Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Wed Feb 17 19:15:49 2016 +1100

    mesa: Add comment to framebuffer_parameteri()
    
    V.2:
     Change 'N.B.,' to 'NOTE:'.
    
    Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Signed-off-by: Dave Airlie <airlied at redhat.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c62db279b6bc4e820345f468c00d4fd65be8556b
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue Apr 5 18:23:36 2016 -0700

    i965/sf_state: Pull flat_enables out of prog_data
    
    Previously, we were walking over the shader source to figure out which
    inputs should be marked flat.  Now, we can just pull it out of prog_data.
    This is needed for properly setting up 3DSTATE_SF/SBE for Vulkan and it
    also means that it will get properly cached.
    
    Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e61cc87c757f8bc0b6a3af318a512b22c072595c
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue Apr 5 18:19:34 2016 -0700

    i965/fs: Add a flat_inputs field to prog_data
    
    Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c5a9b7bf6bc912143f6fa9088c1e6ec415ff3bb
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Apr 4 14:50:03 2016 -0700

    brw/device_info: Add a helper for getting a device name
    
    This is needed by the Vulkan driver
    
    Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a241ab43b5599f29c43e143bbcaaffef2af3e982
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Jan 18 17:30:59 2016 -0800

    i965/fs_surface_builder: Mask signed integers after conversion
    
    Reviewed-by: Francisco Jerez <currojerez at riseup.net>
    Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3921b64e63db39a3f19ebb8250081ba7ddf843a2
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Apr 4 14:38:42 2016 -0700

    i965/fs: Make the repclear shader support either a uniform or a flat input
    
    In the Vulkan driver we use a single flat input instead of a uniform
    because setting up push constants is more disruptive to the pipeline than
    setting up another vertex input.  This uses the number of uniforms as a key
    to keep it working for the GL driver.
    
    Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=061969f9dd0dcaa2cd0c412fedc6ef159dcaf8b0
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Oct 21 20:40:28 2015 -0700

    i965: Move get_hw_prim_for_gl_prim to brw_util.c
    
    It's used by brw_compile_gs in brw_vec4_gs_visitor.cpp so it needs to be in
    a file that's linked into libi965_compiler.la.
    
    Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=339335811580c522d6ff66878bc40e662739c47b
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Thu Mar 31 11:58:26 2016 +0200

    radeonsi: set shader calling conventions
    
    Note that old mesa + new LLVM or new mesa + old LLVM breaks
    with this change and the corresponding LLVM change (D18559).
    
    For LLVM version <= 3.8 we use the old method, but we can't detect
    people using a post 3.8 svn version that is still too old.
    
    Signed-off-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0293d72fa56b2cae664a5727abceddb8046d2e92
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Mar 31 23:32:53 2016 +0200

    drirc: add a workaround for blackness in Warsow
    
    Cc: 11.1 11.2 <mesa-stable at lists.freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e123e1a25182c2e43bf8de1b7911fa6ffc00ae1
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Mon Apr 4 11:54:22 2016 -0400

    glsl: use has_shader_storage_buffer_objects helper
    
    Replaces open-coded logic with existing helper.
    
    Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
    Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d39f0380639c80731ed0df2bcfd04f0095d8481
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Sun Apr 3 18:33:40 2016 +1000

    glsl: remove remaining tabs in link_uniform_blocks.cpp
    
    Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ef57aa685012102b6f4d6235846f452efce4198
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Sun Apr 3 15:14:14 2016 +1000

    mesa: remove unused IsShaderStorage field
    
    Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1293b2f9bc3a45c71941931edb5148d7b5f5a27
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Sun Apr 3 12:44:33 2016 +1000

    glsl: fully split apart buffer block arrays
    
    With this change we create the UBO and SSBO arrays separately from the
    beginning rather than putting them into a combined array and splitting
    it apart later.
    
    A bug is with UBO and SSBO stage reference querying is also fixed as
    we now use the block index to lookup the references in the separate arrays
    not the combined buffer block array.
    
    Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=506b561ba7e3df2a7759dded684fae84bf459f65
Author: Rob Clark <robclark at freedesktop.org>
Date:   Tue Apr 5 13:45:34 2016 -0400

    freedreno/ir3: insert extra move into phi
    
    We had an implicit assumption that the phi src was assigned in it's
    source (pred) block leading into the phi.  But this is not true with
    NIR, so we can't just ignore the source block specified in the
    nir_phi_src.  Insert an extra mov in the source block.  If it is not
    required the CP pass will take it back out again.
    
    Fixes:
    
      ./tests/spec/glsl-1.10/execution/vs-call-in-nested-loop.shader_test
      ./tests/spec/glsl-1.10/execution/vs-inner-loop-modifies-outer-loop-var.shader_test
    
    and probably others.
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f9cdbf44054009122fcc16c887fb90ccc33b52c9
Author: Rob Clark <robclark at freedesktop.org>
Date:   Tue Apr 5 12:39:47 2016 -0400

    freedreno/ir3: eliminate unnecessary absneg's
    
    The frontend inserts (abs) and (neg)'s to convert between NIR boolean
    (~0/0) and native boolean (1/0).  So we'd end up with things like:
    
       cmps.s.ge r1.x, ...
       absneg.s r1.x, (neg)r1.x
       absneg.s r1.x, (abs)r1.x
       sel.b32 r2.x, r0.x, r1.x, r0.y
    
    The (neg) already gets collapsed due to the following (abs).  Now by
    realizing that r1.x comes from a cmps.s instruction, we can drop the
    (abs) as well.
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0daab9878d2b96356cf667591a2c877d912be52d
Author: Michel Dänzer <michel.daenzer at amd.com>
Date:   Tue Apr 5 15:43:35 2016 +0900

    clover: Fix build against clang SVN >= r265359
    
    Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
    Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=799789ba99f4bd27119cf46cc0e7f5384ec3d01e
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sun Apr 3 11:45:02 2016 +0200

    radeonsi: use bounded indexing for samplers
    
    Signed-off-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=713353db182dbf5d9be802aa2c1ec7d6debd07a9
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sun Apr 3 11:39:52 2016 +0200

    radeonsi: use bounded indexing for constant buffers
    
    Signed-off-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a64dbdf612805daff0bbc70bba26053bd226ae70
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Mar 29 01:36:40 2016 +0200

    gallium/radeon: allow multiple exports of the same texture with different usage
    
    Instead of failing an assertion, disable DCC and CMASK on the first export
    that needs it, and merge the external usage flags.
    
    v2: clear the EXPLICIT_FLUSH flag if it's not set; whitespace fixes
    
    Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=25f96d2b9766afa61a518667268e3134f43451e2
Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Apr 5 15:32:16 2016 +0200

    docs/relnotes: document EGL_KHR_reusable_sync

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=70299474f58ad7c0299ea5f997019880d1c4deef
Author: Dongwon Kim <dongwon.kim at intel.com>
Date:   Mon Apr 4 17:14:10 2016 -0700

    egl: add EGL_KHR_reusable_sync to egl_dri
    
    This patch enables an EGL extension, EGL_KHR_reusable_sync.
    This new extension basically provides a way for multiple APIs or
    threads to be excuted synchronously via a "reusable sync"
    primitive shared by those threads/API calls.
    
    This was implemented based on the specification at
    
    https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_reusable_sync.txt
    
    v2
    - use thread functions defined in C11/threads.h instead of
      using direct pthread calls
    - make the timeout set with reference to CLOCK_MONOTONIC
    - cleaned up the way expiration time is calculated
    - (bug fix) in dri2_client_wait_sync, case EGL_SYNC_CL_EVENT_KHR
      has been added.
    - (bug fix) in dri2_destroy_sync, return from cond_broadcast
      call is now stored in 'err' intead of 'ret' to prevent 'ret'
      from being reset to 'EGL_FALSE' even in successful case
    - corrected minor syntax problems
    
    v3
    - dri2_egl_unref_sync now became 'void' type. No more error check
      is needed for this function call as a result.
    - (bug fix) resolved issue with duplicated unlocking of display in
      eglClientWaitSync when type of sync is "EGL_KHR_REUSABLE_SYNC"
    
    Signed-off-by: Dongwon Kim <dongwon.kim at intel.com>
    Signed-off-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e135728268cf36a176dcd915108ad7dc0f4e457
Author: Rob Clark <robclark at freedesktop.org>
Date:   Mon Apr 4 17:38:01 2016 -0400

    freedreno/ir3: deal with duplicate phi sources
    
    Otherwise we end up with funny things like:
    
      mov.f32f32 r0.x, r1.y
      mov.f32f32 r0.x, r1.y
    
    (It doesn't happen as much after fixing the problem w/ CP into phi src,
    but it can still happen since we aren't too clever about generating phi
    sources in the first place.)
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8feb97ba5be50cd9bfe63a4d3b0ba35010a0d32
Author: Rob Clark <robclark at freedesktop.org>
Date:   Mon Apr 4 17:36:41 2016 -0400

    freedreno/ir3: fix silly brain-fart in RA
    
    We want to consider all the vars, not 1/32nd of them, when extending
    live-ranges.
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e451c2d06d18ee54dc3098b3987af6e0bc59f5e
Author: Rob Clark <robclark at freedesktop.org>
Date:   Mon Apr 4 17:34:57 2016 -0400

    freedreno/ir3: don't cp into phi's
    
    The block defining a phi source might not have been executed.  If we
    allow copy propagation, we could end up pointing to a src instruction in
    the wrong block.
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=383b6e87f90e0ac84a200e1677a44b370976c93b
Author: Rob Clark <robclark at freedesktop.org>
Date:   Mon Apr 4 17:33:19 2016 -0400

    freedreno/ir3: we can't store immediate values
    
    Fixes some transform-feedback piglits, like:
    
    bin/ext_transform_feedback-nonflat-integral
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d47fb856af4da5f56f80e072365b9286f0731a54
Author: Rob Clark <robclark at freedesktop.org>
Date:   Mon Apr 4 14:16:12 2016 -0400

    freedreno/ir3: add dumping for use/def/live-in/live-out
    
    Turned out to be useful to debug an issue in RA.  Let's keep it.
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=38ae05a340bdf526d5da62159223ad9938fea36a
Author: Rob Clark <robclark at freedesktop.org>
Date:   Mon Apr 4 17:54:39 2016 -0400

    freedreno/ir3: drop unused instr category arg
    
    No longer used, so drop the extra arg to ir3_instr_create()
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=19739e4fb9024f42a8fc332e6fa94c292bb6bc16
Author: Rob Clark <robclark at freedesktop.org>
Date:   Sun Mar 27 13:43:45 2016 -0400

    freedreno/ir3: remove ir3_instruction::category
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=70735643f4cf660dc3022f40f853a138aea738c2
Author: Rob Clark <robclark at freedesktop.org>
Date:   Sun Mar 27 11:40:36 2016 -0400

    freedreno/ir3: encode instruction category in opc_t
    
    Been on my TODO list for a while.  If nothing else this will make gdb
    properly grok the opc_t enum.
    
    This first step preserves ir3_instruction::category (with an added
    assert that category matches what is encoded in opc_t).  Next step is
    to drop the category field (and arg to ir3_instr_create()), but that
    is split into next commit for bisectability and so that we can run
    piglit in the intermediate state to flush out any problems.
    
    Signed-off-by: Rob Clark <robclark at freedesktop.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ea3647f89abccea5496824815b5b729f38f7a23
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Mar 25 11:19:53 2016 -0700

    i965/fs: Move the code for load/store_shared to emit_cs_intrinsic
    
    They are compute-shader only and that's where the code for doing atomics on
    shared variables lives so it seemes to make sense.
    
    Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=80c72a8ea7b1018661da0e6509a7f88ca1f5086f
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Mar 25 14:02:50 2016 -0700

    i965/nir: Provide a default LOD for buffer textures
    
    Our hardware requires an LOD for all texelFetch commands even if they are
    on buffer textures.  GLSL IR gives us an LOD of 0 in that case, but the LOD
    is really rather meaningless.  This commit allows other NIR producers to be
    more lazy and not provide one at all.
    
    Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3babb7b0a4037c4ae98078611a827af6dd3e121e
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun Apr 3 19:51:22 2016 -0700

    nir: Use PRIi64 and PRIu64 instead of %ld and %lu.
    
    %ld and %lu aren't the right format specifiers for int64_t and uint64_t
    on 32-bit (x86) systems.  They're %zu on Linux and %Iu on Windows.
    
    Use the standard C99 macros in hopes that they work everywhere.
    
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=da5d08707bf07c76b6a1851f3a36bb7c1f8d4d4b
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Mar 30 12:00:02 2016 -0700

    i965: Fix invalid pointer read in dead_control_flow_eliminate().
    
    There may not be a previous block.  In this case, there's no real work
    to do, so just continue on to the next one.
    
    v2: Update for bblock->prev() API change.
    
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Reviewed-by: Matt Turner <mattst88 at gmail.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9486614938035f6bec746d207a9cf79a7def0724
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Mar 30 12:00:02 2016 -0700

    i965: Make bblock_t::next and friends return NULL at sentinels.
    
    The bblock_t::prev/prev_const/next/next_const API returns bblock_t
    pointers, rather than exec_nodes.  So it's a bit surprising.
    
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Reviewed-by: Matt Turner <mattst88 at gmail.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5509d43a11d42f15c91572aaf69a0f8e1ec31c71
Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Apr 4 00:31:45 2016 -0700

    glsl: Lower variable indexing of system value arrays unconditionally.
    
    lower_variable_index_to_cond_assign() did not handle system values.
    gl_SampleMaskIn[] is a system value, and also an array.  Accessing it
    with a variable index would trigger an unreachable() assert.
    
    Rather than adding a new EmitNoIndirectSystemValues flag, we simply
    lower unconditionally.  There is exactly one case where this occurs,
    and for all current drivers, lowering produces optimal code.  Even
    for future drivers with 32x MSAA, it produces reasonable code.
    
    Fixes Piglit's new samplemaskin-indirect test.  Also fixes many ES31-CTS
    tests when OES_sample_variables is enabled.
    
    Cc: mesa-stable at lists.freedesktop.org
    Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>




More information about the mesa-commit mailing list