Mesa (master): 56 new commits

Timothy Arceri tarceri at kemper.freedesktop.org
Wed Oct 26 03:30:20 UTC 2016


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e423ca1477bd212c01676c5e4828ebdb83310d8
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Tue Oct 25 10:23:25 2016 +1100

    nir: stop adjusting driver location for varying packing
    
    As of 59864e8e020 we just use the location assigned by the front-end and
    no longer need this for i965.
    
    Since there were some issues in the logic with assigning arrays the same
    driver location if they didn't start at the same location just remove it
    and let other drivers implement a solution if needed when they add
    ARB_enhanced_layouts support.
    
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ac668616573b73a742a971bb0d7abe8234b6aa9
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 16:40:16 2016 +1100

    compiler: remove copy_shader_info()
    
    This temporary helper is no longer needed now that we have finished
    refactoring common shader metadata.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9972c591e7686658caaa1df46701137f98487811
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 16:37:27 2016 +1100

    glsl: set uses texture gather directly in shader_info
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4016f08854a41b50d7636fc5e3cf0dfab5029cab
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 16:30:56 2016 +1100

    glsl/st/mesa: use common system values read field
    
    And set system values read directly in shader_info.
    
    st/mesa changes where:
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f59f3eee591600aa8b3a0b0a30aea321185bcb5
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 16:25:28 2016 +1100

    glsl: set patch outputs written directly in shader_info
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f79d37f1ecffcc5f7de04d5f3bb4166750703052
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 16:24:58 2016 +1100

    st/mesa: use common patch outputs written field
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=419de307dc9a2b21d94ca4aa8b81810c5f390f0f
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 16:21:24 2016 +1100

    glsl: set patch inputs read directly in shader_info
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d2a5039987b7182e775949ee1a4a63ea70ab289
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 16:19:34 2016 +1100

    st/mesa: use common patch inputs read field
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fdf42d3abc1cfa723d8cf5e46fb86061416602e6
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 16:17:23 2016 +1100

    glsl: set outputs read directly in shader_info
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5346630593bec80efa732c40b63e0e95a00af074
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 15:27:35 2016 +1100

    r200/glsl/st/mesa: use common outputs written field
    
    And set outputs written directly in shader_info.
    
    st/mesa changes where:
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b4b450a5cbd22690b221d0252e6d11f4c0e02ab8
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 15:21:06 2016 +1100

    mesa/glsl: set double inputs read directly in shader_info
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=24093975e89178ebee19e4d00fed3d9eb2470c89
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 15:18:28 2016 +1100

    st/mesa: use common double inputs read field
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e81aaeba37f5419323d8f88bc10943c77e25ed14
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 14:24:03 2016 +1100

    r200/i915/st/mesa/compiler: use common inputs read field
    
    And set set inputs_read directly in shader_info.
    
    To avoid regressions between changes this change is a squashed
    version of the following patches.
    
    st/mesa changes where:
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dfcbdba47119de6c1d81a869f8625bcc3d7560a2
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 14:09:15 2016 +1100

    mesa/compiler: copy early fragment tests to shader_info in _mesa_copy_linked_program_data()
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c2fcf6a8a7bcecf27bf7a5fcb27f11a951f59ee
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 09:30:01 2016 +1100

    meta: remove remaining tabs in meta.c
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3d8947824f7f97b9ba3c3e96b179e87de843a46d
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Tue Oct 18 16:25:08 2016 +1100

    i965: replace brw_compute_program with brw_program
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=13d0cf57bf069644e4a1d8b2ddc3c5810e84cc67
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Tue Oct 18 16:17:14 2016 +1100

    i965: replace brw_fragment_program with brw_program
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=46a4e4257e42dadc425592719863048d9012f9a7
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Tue Oct 18 16:03:32 2016 +1100

    i965: replace brw_tess_{eval,ctrl}_program with brw_program
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=649bdb1f03838bdef337aeaec505fa9eca991d52
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Tue Oct 18 15:43:21 2016 +1100

    i965: replace brw_geomerty_program with brw_program
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb2d18194450fe5bb2274617b704eca80a1ca9f9
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Tue Oct 18 15:26:57 2016 +1100

    i965: replace brw_vertex_program with new generic brw_program
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3423488d55b9c483fcdb3996eb89b424c1031d24
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 13:23:37 2016 +1100

    st/mesa/r200/i915/i965: eliminate gl_fragment_program
    
    Here we move OriginUpperLeft and PixelCenterInteger into gl_program
    all other fields have been replace by shader_info.
    
    V2: Don't use anonymous union/structs to hold vertex/fragment fields
    suggested by Ian.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=17e28a1571b6141368fefc84cc8b0a3b4e52f8ee
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 13:45:18 2016 +1100

    i965/mesa/st/swrast: set fs shader_info directly and switch to using it
    
    Note we access shader_info from the program struct rather than the
    nir_shader pointer because shader cache won't create a nir_shader.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=91d5b0eda9eeb2a41342e7ab46bd1c779d8b93c9
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Tue Oct 18 10:51:43 2016 +1100

    mesa: remove now unused IsCentroid from gl_fragment_program
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9d04373c1ba2ae3e20c6b507262ee3c88c4ab78
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Tue Oct 18 10:47:14 2016 +1100

    st/mesa: get interpolation location at translation time
    
    Rather then messing around creating bitfields and arrays to store
    the interpolation location just translate it on the fly.
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a317b40d1d3f4f684f1601ba061dd806c080811b
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Mon Oct 17 13:43:55 2016 +1100

    i965: remove unused debug param
    
    This was accidently disabled in 832bcc3613 not long after it was added.
    
    Since it's only for gen5 and lower we might as well just remove it rather
    than fixing it.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=89512987c697ddbf4f2897e26b0ed66675311c15
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 13:27:01 2016 +1100

    compiler: update the comment for enum glsl_interp_mode
    
    We no longer store the interp mode with the program metadata.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa881e4dc06c2efbf0c993798bcee9c880a7f66f
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 09:55:11 2016 +1100

    glsl: remove now unused InterpQualifier
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c596f47b80fab873d4509a03a427b3a2b464854f
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 10:00:02 2016 +1100

    i965: remove unused BRW_STATE_INTERPOLATION_MAP flag
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=91d61fbf7cb61a44adcaae51ee08ad0dd6b2a03b
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 20 09:59:00 2016 +1100

    i965: rewrite brw_setup_vue_interpolation()
    
    Here brw_setup_vue_interpolation() is rewritten not to use the InterpQualifier
    array in gl_fragment_program which will allow us to remove it.
    
    This change also makes the code which is only used by gen4/5 more self contained
    as it now has its own gen5_fragment_program struct rather than storing the map
    in brw_context. This means the interpolation map will only get processed once
    and will get stored in the in memory cache rather than being processed everytime
    the fs changes.
    
    Also by calling this from the fs compile code rather than from the upload code
    and using the interpolation assigned there we can get rid of the
    BRW_NEW_INTERPOLATION_MAP flag.
    
    It might not seem ideal to add a gen5_fragment_program struct however by the end
    of this series we will have gotten rid of all the brw_{shader_stage}_program
    structs and replaced them with a generic brw_program struct so there will only
    be two program structs which is better than what we have now.
    
    V2: Don't remove BRW_NEW_INTERPOLATION_MAP from dirty_bit_map until the following
    patch to fix build error.
    
    V3 - Suggestions by Jason:
    - name struct gen4_fragment_program rather than gen5_fragment_program
    - don't use enum with memset()
    - create interp mode set helper and simplify logic to call it
    - add assert when calling function to show prog will never be NULL for
     gen4/5 i.e. no Vulkan
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
    Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=20c0e67501350952191b70c907c26019e5722243
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Fri Oct 14 20:06:56 2016 +1100

    st/mesa: stop making use of InterpQualifier array
    
    A following patch is going to merge the gl_fragment_program struct into
    a common gl_program and we want to avoid all stages having this array.
    
    V2: use TGSI_INTERPOLATE_COUNT as the temporary placeholder. Suggested by
    Marek.
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdafd499cc18ab1b4f96fb5fe6537d9c24f5757a
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Fri Oct 14 18:16:37 2016 +1100

    mesa: remove unrequired code
    
    InterpQualifier is never set for ARB programs so this will do nothing.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9605b98a078654f6f76e85221599e5fa8c073de6
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 12:11:06 2016 +1100

    i965/mesa/st: eliminate gl_compute_program
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a228c0aae347ce68009f165427581e149611d65
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 12:09:09 2016 +1100

    mesa: set cs shader_info metadata directly
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ca71a1175a0065d9cf2920da94b14aa2d676b00
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 12:06:56 2016 +1100

    st/mesa: switch cs over to shared shader_info
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=54095ed8b9c98701e1fe1e9f8332f9bb34ccdbfa
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 13 15:18:53 2016 +1100

    compiler: add additional cs metadata fields to shader info
    
    And copy values from GLSL.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=81faead818a0b2fde131df019f5dfb0baef49273
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 12:30:09 2016 +1100

    mesa/i965/i915/r200: eliminate gl_vertex_program
    
    Here we move the only field in gl_vertex_program to the
    ARB program fields in gl_program.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ab51f8e164b33c5e3bc6836d0574080ef9d1dd8
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 12:28:14 2016 +1100

    i965: switch vs over to shared shader_info
    
    Note we access shader_info from the program struct rather than the
    nir_shader pointer because shader cache won't create a nir_shader.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=92f77e9c01085c6babe6ce80dfe4e0e7abab61a1
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 11:59:12 2016 +1100

    i965/mesa/st: eliminate gl_geometry_program
    
    We now get all the gs metadata from shader_info.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9045ddcfe4ed2ecc6220db69dc33d6049956b99b
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 11:53:33 2016 +1100

    mesa: set gs shader_info metadata directly
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d7b25ee5825ab9a528cb475b1cc0a0bd9d00227
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 11:51:11 2016 +1100

    st/mesa: switch gs over to shared shader_info
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=288c96afce1199b930e272a49ce2fcbf93030d7f
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 11:48:02 2016 +1100

    i965: switch gs over to shared shader_info
    
    Note we access shader_info from the program struct rather than the
    nir_shader pointer because shader cache won't create a nir_shader.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b99ecaf8724cf7fac29dbc2851c3be13d0fed5b2
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 13 15:16:49 2016 +1100

    compiler: add input primative field for gs in shader info
    
    And copy the value from GLSL.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=67c2d80a839614e4638d6cff390627122f8148ca
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 10:30:52 2016 +1100

    i965/mesa/st: eliminate gl_tess_eval_program
    
    We now get all the tes metadata from shader_info.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=65225c20c64dd5980f4e3a4eaecb9088aabea2fb
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 10:29:56 2016 +1100

    mesa: copy tes metadata directly to shared shader info
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2be3dbd90bff02fc6d1dd9f0d332c619d5f6ac86
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 10:27:31 2016 +1100

    st/mesa: switch tes over to shared shader_info
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4f1c415cc46184d9929f198240eb4e9d22aa91d8
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 10:19:27 2016 +1100

    i965: switch tes over to shared shader_info
    
    Note we access shader_info from the program struct rather than the
    nir_shader pointer because shader cache won't create a nir_shader.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=088c25bfb7d77e2a23af7cc8c3357f4c5228c757
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 13 15:11:47 2016 +1100

    compiler: add fields for tes metadata to shader info
    
    And copy the values from gl_tess_eval_program struct.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=64d9773cfebded42691a70e3b233cadf896e53ba
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 11:13:52 2016 +1100

    i965/mesa/st: eliminate gl_tess_ctrl_program
    
    We now get all the tcs metadata from shader_info.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=750b14ed8e6ff539f17069dec63004159575ccd8
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 11:11:28 2016 +1100

    mesa: set tcs shader_info metadata directly
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a4bbfa90d221c43509a1eb46243235869bfa5e8
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 11:13:26 2016 +1100

    st/mesa: switch tcs over to shared shader_info
    
    Reviewed-by: Marek Olšák <marek.olsak at amd.com>
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e6cecb837d26fce5392be87ad074f9bcbf27b47e
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 11:08:18 2016 +1100

    i965: switch tcs over to shared shader_info
    
    Note we access shader_info from the program struct rather than the
    nir_shader pointer because shader cache won't create a nir_shader.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d2b391165e64f3c64021e5a563037e0ccc09d84
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 09:15:57 2016 +1100

    glsl: add temporary copy_shader_info() function
    
    This function is added here to ease refactoring towards using the new shared
    shader_info. Once refactoring is complete and values are set directly it
    will be removed.
    
    We call it from _mesa_copy_linked_program_data() rather than glsl_to_nir()
    so that the values will be set for all drivers. In order to do this some
    calls need to be moved around so that we make sure to call
    do_set_program_inouts() before _mesa_copy_linked_program_data()
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=debed12fdde9766fd9cf99d679207a36a4599a82
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 13 15:20:38 2016 +1100

    glsl: add a shader info field to the gl_program type
    
    And use this field as the source for shader info in the nir_shader
    this will allow us to set some of these fields from GLSL directly.
    
    It will also simplify restoring from shader cache and allow the
    removal of duplicate fields from GLSL.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1af20f18a86f52a9640faf2d4ff8a71b0a4fa9b
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 13 11:41:23 2016 +1100

    nir/i965/anv/radv/gallium: make shader info a pointer
    
    When restoring something from shader cache we won't have and don't
    want to create a nir_shader this change detaches the two.
    
    There are other advantages such as being able to reuse the
    shader info populated by GLSL IR.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=094fe3a9591ce200162d955635eee577c13f9324
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Thu Oct 13 10:46:11 2016 +1100

    nir: move nir_shader_info to a common compiler header
    
    This will allow use to stop copying values between structs and
    will also simplify handling handling these values in the shader cache.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e40d32b3ec0793b475004b8f36b17f1493806271
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Oct 19 14:49:48 2016 +1100

    mesa: modify _mesa_copy_linked_program_data() to take gl_linked_shader
    
    This allows us to do some small tidy ups, but will also allow us to call
    a new function that copies values to a shared shader info from here.
    
    In order to make this change this function now requires
    _mesa_reference_program() to have previously been called.
    
    Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>




More information about the mesa-commit mailing list