Mesa (master): 31 new commits

Jason Ekstrand jekstrand at kemper.freedesktop.org
Sun Jul 23 04:35:04 UTC 2017


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e57e9494c2279580ad6a83ab8c065d01e7e634e
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 21:35:07 2017 -0700

    i965: Enable regular fast-clears (CCS_D) on gen9+
    
    The set of formats which supports CCS_E is actually fairly small on
    gen9.  However, everything that supports fast-clears on gen8 also
    supports fast-clears on gen9+.  The one very annoying exception is
    that blending is broken for non-0/1 clear colors with sRGB formats.
    In order to solve that problem, we do a resolve to get rid of the
    clear color.  Another option would be to just not fast-clear with
    non-0/1 clear colors however non-0/1 + blending + sRGB is uncommon
    enough that this shouldn't be a significant performance problem.
    
    This appears to help gl_manhattan31_off by about 2%.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d4de403f9191ed995e1684dbe50011e55cd62501
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Jul 17 19:48:22 2017 -0700

    intel/isl: Add a helper for determining if a color is 0/1
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b26b2490e523443b4c967980bcc963ef9783333d
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Jul 17 17:42:46 2017 -0700

    intel/blorp: Allow blorp_copy on sRGB formats
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c2842f95be7823346032668abf8afce4d602bbd
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Jul 17 17:04:07 2017 -0700

    i965: Weaken the texture view rules for formats slightly
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb86ac94cb4973fb62699896be2c9ff8f9d90ce5
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Jun 22 11:51:55 2017 -0700

    intel/isl/format: Add an srgb_to_linear helper
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=44e9d65757640c2bbab73a7260ee1a53eefd799c
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Thu Jun 22 11:27:04 2017 -0700

    intel/isl/format: Dedent the template in gen_format_layout.py
    
    This makes it much easier to edit the template and doesn't really dirty
    the python all that much.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dd75edb42982c1420168d509a7589032f7ead289
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 21:23:20 2017 -0700

    i965/surface_state: Get the aux usage from the miptree code
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0175077af52dbe4edae6f871520f209a4564df3d
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 20:40:13 2017 -0700

    i965/surface_state: Take an isl_aux_usage in emit_surface_state
    
    This commit replaces the generic "flags" parameter with a more explicit
    aux usage parameter.  This leads to a lot of duplicated code at the
    moment but this will all get cleaned up directly.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe38d3e3a4faca7461e9a70fc6a8940c2039bb6f
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 21:10:53 2017 -0700

    i965/miptree: Take an isl_format in prepare_texture
    
    This will be a bit more convenient momentarily.  It's also more correct
    because it makes prepare_texture take sRGB into account.

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ccfc0ffddd4645a6b5c7bf0c58e0570c8b4aaea
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 20:00:12 2017 -0700

    i965/miptree: Use miptree range helpers in has_color_unresolved
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c70c57aedc9cdf90061816d213f9ad2e36eea80
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 19:36:54 2017 -0700

    i965/miptree: Allow for accessing a CCS_E image as CCS_D
    
    This requires us to start using the partial clear state.  It makes
    things quite a bit more complicated but it's still a fairly
    straightforward exercise in diagram following.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=06ef36d319bbce22ce70a8ae426b07a4dede9f21
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 19:25:16 2017 -0700

    i965/miptree: Use ISL_AUX_STATE_PARTIAL_CLEAR for CCS_D
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=268ba028dcbdaea25a972a460c1636f485d5c5bc
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 19:19:00 2017 -0700

    intel/isl: Add an aux state for "partial clear"
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6ee832cbcbafecb9e9ac2ee766492aa9d7a0cc2
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 13:06:28 2017 -0700

    i965/miptree: Take an aux_usage in prepare/finish
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1ce25210644396d0d6ef126df85dd8dd6957c79
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 12:10:03 2017 -0700

    i965/miptree: Refactor some things to use mt->aux_usage
    
    Now that we have this field, it's much easier to switch on it than to
    walk an if ladder that checks different things.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=427d248fbd9c5a5338ad7504214fd6562e7eebd2
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jun 23 17:44:34 2017 -0700

    i965/blorp: Use prepare/finish_depth for depth clears
    
    We also simplify the way we handle stencil since we know a priori that
    it will have ISL_AUX_USAGE_NONE.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8fca3ffde4aa3cbf131fb6cdb5bd29248685468
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jun 23 17:43:47 2017 -0700

    i965/blorp: Use render_aux_usage for color clears
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4185b982af32941e86fc77a4e866a6e78ea14454
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jun 23 17:43:24 2017 -0700

    i965/blorp: Be more accurate about aux usage in blorp_copy
    
    The only real change here is that we now reject clear colors for MCS
    with certain formats on gen < 9 because we can't trust that the
    reinterpretation will work.  This may cause some MCS partial resolves.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc1639e46d5abed2954af9ac3676ddc70c624c7d
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jun 23 17:42:52 2017 -0700

    i965/blorp: Use texture/render_aux_usage for blits
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0f9b609cf4f58ca1564c702ce32e7319a2d06a47
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jun 23 17:22:24 2017 -0700

    i965/blorp: Do prepare/finish manually
    
    Our attempts to do it automatically are problematic at best.  In order
    to really be precise, we need to know both the desired aux usage and
    whether or not clear is supported.  The current automatic mechanism
    doesn't cover this.  This commit itself is not a functional change since
    it just reworks everything to be in terms of a silly helper.  Later
    commits will switch things over to more sensible ways of choosing usage.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=baa9e059659ed834d084ee4faf6271a8dd508494
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 20:19:54 2017 -0700

    i965/miptree: Rework prepare/finish_render to be in terms of aux_usage
    
    We keep the old and possibly broken method of determining aux usage
    intact for now.  Therefore, the only functional change here is that we
    may call finish_render a bit more accurately.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9314d2c4684682af9f8abd06fa017a0cec3cf87
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 20:19:32 2017 -0700

    i965/miptree: Add a helper for getting the aux usage for texturing
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d3c01c6a9a9cff89f100e39aec34e76829295317
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jun 23 10:44:16 2017 -0700

    i965/miptree: Partially resolve MCS for texture views
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8aa5191ebb17457b914330688850e84e026ab8c
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jun 23 10:43:30 2017 -0700

    i965/miptree: Add support for partially resolving MCS
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=987c09e0444e17343904b8d9ffd541f78517f8d2
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jun 23 10:42:30 2017 -0700

    i965/miptree: Tighten up finish_mcs_write
    
    Multisample surfaces only have a single miplevel so there's no reason to
    be passing the extra parameters around.  It only leads to confusion.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=18a69bbc0f93f27629f9eb834fbe347195299be4
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Jul 17 16:16:41 2017 -0700

    i965/miptree: Make aux_state work in terms of logical layers
    
    This commit changes layer_range_length to return locical layers and also
    changes the way we allocate the aux_state field to not allocate extra
    layers for MCS.  This will be important as we're about to start doing
    significantly more detailed tracking of MCS state.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9cb37b2a6c3a63eb1caeb8eafe1c14b538056b4
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jun 23 10:27:27 2017 -0700

    intel/blorp: Add a partial resolve pass for MCS
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=efc4c6b702a113a8c6e884b4185fe0202801f1ce
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Wed Jun 21 21:33:41 2017 -0700

    i965/miptree: Remove some unneeded restrictions
    
    intel_miptree_supports_ccs_e should handle the gen >= 9 requirement and
    there's no reason why we can't do CCS_E on window system buffers so long
    as we resolve.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c09672ad47037b7baea1c31eccfb9e44d782137
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue Jul 18 17:00:39 2017 -0700

    i965/miptree: Stop setting FOR_SCANOUT for renderbuffers
    
    Nothing created through intel_miptree_create_for_renderbuffer will ever
    be exposed externally so there's no need to set FOR_SCANOUT.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ef517276d49985cf3d30c16415154b27aed60d1
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Tue Jul 18 18:44:26 2017 -0700

    i965/blorp: Do flushes around depth resolves
    
    It turns out that if you have rendering in-flight with CCS_E enabled and
    you go to do a depth resolve without flushing, the CCS data may never
    hit the memory.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=36aed7c74cad99b76a50fade64e3d4a1e3d13807
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Sat Jun 24 22:50:53 2017 -0700

    i965/blorp: Use the renderbuffer format for clears
    
    This fixes the Piglit ARB_texture_views rendering-formats test.
    
    Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>




More information about the mesa-commit mailing list