Mesa (master): 31 new commits

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Sat May 6 14:45:48 UTC 2017


URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b738fae4b977fc08ddfff012e689b6a7d8a87022
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 26 18:34:27 2017 +0200

    glsl: skip tree grafting for sampler and image types
    
    v2: - use is_sampler()/is_image() instead (Samuel Pitoiset)
    
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d04b0f31d328af95cebec816adfe683a6095bca8
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon May 1 15:53:56 2017 +0200

    glsl: teach lower_ubo_reference about samplers inside structures
    
    In a situation like:
    
    (tex vec4 (record_ref (var_ref f)  tex)  (constant vec2 (0.000000 0.000000))  0 1 () )
    
    The sampler needs to be lowered, otherwise this ends up with
    "ir_dereference_variable @ 0x229a100 specifies undeclared variable
    `ubo_load_temp' @ 0x2290440"
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d550024a7ee2775b282acb761d81f1983ea15bcf
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Mar 21 13:31:05 2017 +0100

    glsl: link bindless layout qualifiers
    
    From section 4.4.6 of the ARB_bindless_texture spec:
    
       "If both bindless_sampler and bound_sampler, or bindless_image
        and bound_image, are declared at global scope in any
        compilation unit, a link- time error will be generated."
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6810ea2867f95d737b63e391d19b8a281f4a381
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 19 21:57:02 2017 +0200

    glsl: do not count bindless samplers/images when linking uniforms
    
    From section 2.14.8 of the ARB_bindless_texture spec:
    
        "(modify second paragraph, p. 126) ... against the
         MAX_COMBINED_TEXTURE_IMAGE_UNITS limit.  Samplers accessed
         using texture handles (section 3.9.X) are not counted against
         this limit."
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b4c48673a7dae9301703a5e89a6eaa100a0c2ed
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Apr 21 14:37:24 2017 +0200

    glsl: lower bindless sampler/image packed varyings
    
    v3: - rebase (and remove (sampler) ? 1 : vector_elements)
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3cdcc5f02f39bd4dc78b88eb80bca4ac208f7f2f
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Apr 21 15:27:15 2017 +0200

    glsl: implement ARB_bindless_texture conversions
    
    From section 5.4.1 of the ARB_bindless_texture spec:
    
       "In the following four constructors, the low 32 bits of the
        sampler type correspond to the .x component of the uvec2 and
        the high 32 bits correspond to the .y component."
    
        uvec2(any sampler type)     // Converts a sampler type to a
                                    //   pair of 32-bit unsigned integers
        any sampler type(uvec2)     // Converts a pair of 32-bit unsigned integers to
                                    //   a sampler type
        uvec2(any image type)       // Converts an image type to a
                                    //   pair of 32-bit unsigned integers
        any image type(uvec2)       // Converts a pair of 32-bit unsigned integers to
                                    //   an image type
    
    v4: - fix up comment style
    v3: - rebase (and remove (sampler) ? 1 : vector_elements)
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=95c83aba713ad89ff4d189cbdcbf725e2010af7e
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Apr 21 18:45:42 2017 +0200

    glsl: allow bindless samplers/images to be used with constructors
    
    For the explicit conversions.
    
    From section 4.1.7 of the ARB_bindless_texture spec:
    
       "Samplers are represented using 64-bit integer handles, and
        may be converted to and from 64-bit integers using constructors."
    
    From section 4.1.X of the ARB_bindless_texture spec:
    
       "Images are represented using 64-bit integer handles, and
        may be converted to and from 64-bit integers using constructors."
    
    v3: - add spec comment
        - update the glsl error message
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com> (v2)
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b98542588cd27ebcd403ea8130ef04b440661cb0
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Apr 21 16:31:52 2017 +0200

    glsl: add is_valid_constructor() helper function
    
    This will help for the explicit conversions for sampler and
    image types as specified by ARB_bindless_texture.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1eff26f02d8579bd45d97ec0c4f4ac1db79fd051
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Apr 21 14:35:32 2017 +0200

    glsl: add ARB_bindless_texture operations
    
    For the explicit pack/unpack conversions.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=35c8e727a55d15485091eb9de279d8beb3abc55e
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Apr 21 19:27:16 2017 +0200

    glsl: allow bindless samplers/images to be initialized
    
    From section 4.1.7 of the ARB_bindless_texture spec:
    
       "Samplers may be declared as shader inputs and outputs, as uniform
        variables, as temporary variables, and as function parameters."
    
    From section 4.1.X of the ARB_bindless_texture spec:
    
       "Images may be declared as shader inputs and outputs, as uniform
        variables, as temporary variables, and as function parameters."
    
    v3: - add spec comment
        - update the glsl error message
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=efb668fb293e0cf8401e9a541c67615827974808
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 19 18:39:38 2017 +0200

    glsl: allow bindless samplers/images to be l-values
    
    From section 4.1.7 of the ARB_bindless_texture spec:
    
       "Samplers can be used as l-values, so can be assigned into and
       used as "out" and "inout" function parameters."
    
    From section 4.1.X of the ARB_bindless_texture spec:
    
       "Images can be used as l-values, so can be assigned into and
        used as "out" and "inout" function parameters."
    
    v4: - invert the logic
    v3: - update spec comment formatting
        - keep the read_only check
    
    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=fa4ebf6b8d93bdf5c47bdaa5d5b3df060d260c6d
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 19 18:08:28 2017 +0200

    glsl: add _mesa_glsl_parse_state object to is_lvalue()
    
    Yes, this is a bit hacky but we don't really have the choice.
    Plain GLSL doesn't accept bindless samplers/images as l-values
    while it's allowed when ARB_bindless_texture is enabled.
    
    The default NULL parameter is because we can't access the
    _mesa_glsl_parse_state object in few places in the compiler.
    One is_lvalue(NULL) call is for IR validation but other checks
    happen elsewhere, should be safe.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=42a2fe25f4552805c253d96c121f1e4dd436eb4a
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 19 18:52:54 2017 +0200

    glsl: relax bindless sampler arrays indexing
    
    From section 4.1.7 of the ARB_bindless_texture spec:
    
       "Samplers aggregated into arrays within a shader (using square
        brackets []) can be indexed with arbitrary integer expressions."
    
    v3: - update spec comment formatting
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ece1c04e8e552813040d603f72637291991465c4
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Mar 22 18:34:23 2017 +0100

    glsl: reject bindless samplers/images frag inputs without 'flat'
    
    From section 4.3.4 of the ARB_bindless_texture spec
    
       "(modify last paragraph, p. 35, allowing samplers and images as
        fragment shader inputs) ... Fragment inputs can only be signed
        and unsigned integers and integer vectors, floating point scalars,
        floating-point vectors, matrices, sampler and image types, or
        arrays or structures of these.  Fragment shader inputs that are
        signed or unsigned integers, integer vectors, or any
        double-precision floating- point type, or any sampler or image
        type must be qualified with the interpolation qualifier "flat"."
    
    v3: - update spec comment formatting
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8834c74fef4ab405397833e4499b622b6ce9c116
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Mar 20 21:37:03 2017 +0100

    glsl: allow bindless samplers/images as vertex shader inputs
    
    From section 4.3.4 of the ARB_bindless_texture spec:
    
       "(modify third paragraph of the section to allow sampler and
        image types) ...  Vertex shader inputs can only be float,
        single-precision floating-point scalars, single-precision
        floating-point vectors, matrices, signed and unsigned integers
        and integer vectors, sampler and image types."
    
    v3: - update spec comment formatting
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=015c0b4a341431e75a98d93b813f7cdf404c3eaf
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Mar 22 18:16:10 2017 +0100

    glsl: allow bindless samplers/images as varying variables
    
    From section 4.3.4 of the ARB_bindless_texture spec:
    
       "(modify third paragraph of the section to allow sampler and image
        types) ...  Vertex shader inputs can only be float,
        single-precision floating-point scalars, single-precision
        floating-point vectors, matrices, signed and unsigned integers
        and integer vectors, sampler and image types."
    
    From section 4.3.6 of the ARB_bindless_texture spec:
    
       "Output variables can only be floating-point scalars,
        floating-point vectors, matrices, signed or unsigned integers or
        integer vectors, sampler or image types, or arrays or structures
        of any these."
    
    v3: - add spec comment
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=89e37f9703d4c4d7d383cf1ec112d65d87f1ba11
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Apr 3 16:06:40 2017 +0200

    glsl: allow input memory qualifiers for images
    
    ARB_bindless_texture spec allows images to be declared as
    shader inputs.
    
    v2: - put the */ on the following line (Timothy Arceri)
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=242964ca5c3e6763beca1dbe06feeee129771723
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Apr 7 14:34:55 2017 +0200

    glsl: allow image qualifiers inside structures
    
    ARB_bindless_texture allows to declare images inside structures
    which means that qualifiers like writeonly should be allowed.
    
    I have a got a confirmation from Jeff Bolz (one author of the spec),
    because the spec doesn't clearly explain this.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=48b7882200c58d90b844162cac5a791f8d35e23b
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 19 16:44:19 2017 +0200

    glsl: allow bindless images to be declared inside structures
    
    The spec doesn't clearly state this, but I have got clarification
    from the spec authors.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1eb30975ac43a6332fa38079b1d813363baf6c0
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 19 16:46:14 2017 +0200

    glsl: allow bindless samplers/images inside interface blocks
    
    From section 4.3.7 of the ARB_bindless_texture spec:
    
       "(remove the following bullet from the last list on p. 39, thereby
        permitting sampler types in interface blocks; image types are also
        permitted in blocks by this extension)"
    
        * sampler types are not allowed
    
    v3: - update the spec comment
        - update the glsl error message
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=75cc83747e711a2b8f6584305d5e383ead4ad6a8
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 19 16:40:38 2017 +0200

    glsl: allow bindless samplers/images as function return
    
    The ARB_bindless_texture spec doesn't clearly state this, but as
    it says "Replace Section 4.1.7 (Samplers), p. 25" and,
    "Replace Section 4.1.X, (Images)", this should be allowed.
    
    v3: - add spec comment
        - update the glsl error message
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb405f170bfa7f249dad85a1951a9faa8a250b87
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 19 16:38:39 2017 +0200

    glsl: allow bindless samplers/images as out and inout parameters
    
    From section 4.1.7 of the ARB_bindless_texture spec:
    
       "Samplers can be used as l-values, so can be assigned into and used
        as "out" and "inout" function parameters."
    
    From section 4.1.X of the ARB_bindless_texture spec:
    
       "Images can be used as l-values, so can be assigned into and used as
        "out" and "inout" function parameters."
    
    v3: - add spec comment
        - update the glsl error message
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c084f18fdfde8c7bd734735cb005a73f0b2b8ca
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 19 13:43:29 2017 +0200

    glsl: allow to declare bindless samplers/images as non-uniform
    
    From section 4.1.7 of the ARB_bindless_texture spec:
    
       "Samplers may be declared as shader inputs and outputs, as uniform
        variables, as temporary variables, and as function parameters."
    
    From section 4.1.X of the ARB_bindless_texture spec:
    
       "Images may be declared as shader inputs and outputs, as uniform
        variables, as temporary variables, and as function parameters."
    
    v3: - add validate_storage_for_sampler_image_types()
        - update spec comment
        - update the glsl error message
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=115d938cea5f362c3c078bcc6e75da1245aa6675
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Mar 21 13:30:49 2017 +0100

    glsl: process bindless/bound layout qualifiers
    
    This adds bindless_sampler and bound_sampler (and respectively
    bindless_image and bound_image) to the parser.
    
    v3: - add an extra space in apply_bindless_qualifier_to_variable()
        - fix indentation in merge_qualifier()
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf52b8cd21172e2fc54cb762f2bab18cef217a75
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Apr 27 13:45:16 2017 +0200

    glsl: do not make sampler/image types readonly variables
    
    In plain GLSL, sampler and image types can only be declared
    uniform-qualified global variables or 'in' function parameters.
    
    Setting the read_only flag seems quite useless because other
    checks will prevent sampler/image variables to be assigned and
    also because the flag is not set for atomic_uint types which are
    opaque types.
    
    This will also help for ARB_bindless_texture because samplers
    and images can be assigned when they are considered bindless.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c618f31065d9e9d0e19afab7de8202ef609a731d
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 26 16:02:32 2017 +0200

    glsl: make sampler/image scalar types
    
    As a side effect, this will magically fix std140/std430 interfaces
    for bindless samplers/images and will help for implementing the
    explicit conversions with constructors.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=33931e4062b1f1a2373405033e7db5575c98eae8
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon May 1 22:24:52 2017 +0200

    glsl: make count_attribute_slots() returns 1 for samplers/images
    
    For packed varyings.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1f40343e9a2a7113d2ee406ceda267975b8e7c5b
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Apr 20 14:42:49 2017 +0200

    glsl: make component_slots() returns 2 for samplers/images
    
    Bindless samplers/images are 64-bit unsigned integers, which
    means they consume two components as specified by
    ARB_bindless_texture.
    
    It looks like we are not wasting uniform storage by changing
    this because default-block uniforms are not packed. So, if
    we use N uint uniforms, they occupy N * 16 bytes in the
    constant buffer. This is something that could be improved.
    
    Though, count_uniform_size needs to be adjusted to not count
    a sampler (or image) twice.
    
    As a side effect, this will probably break the cache if you
    have one because it will consider sampler/image types as
    two components.
    
    v3: - update the comments
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=becc87b84a01d0b9c6efb5a979dfb44c53095c4d
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Thu Apr 20 19:13:50 2017 +0200

    glsl: make sampler/image types as 64-bit
    
    The ARB_bindless_texture spec says:
    
       "Samplers are represented using 64-bit integer handles."
    
    and,
    
       "Images are represented using 64-bit integer handles."
    
    It seems simpler to always consider sampler and image types
    as 64-bit unsigned integer.
    
    This introduces a temporary workaround in _mesa_get_uniform()
    because at this point no flag are used to distinguish between
    bound and bindless samplers. This is going to be removed in a
    separate series. This avoids breaking arb_shader_image_load_store-state.
    
    v3: - update the comment slightly
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=042eee2067dc937e8d7e9b54829c5c4b8706dc27
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Mar 21 12:42:47 2017 +0100

    glsl: add ARB_bindless_texture enable
    
    This also adds the extension to the standalone GLSL compiler.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b08a9bf7918be88de4cedfecf1c3918fd7f0e505
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Apr 11 00:30:31 2017 +0200

    mesa: add ARB_bindless_texture to the extensions list
    
    This is required for the following GLSL bits.
    
    Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
    Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>




More information about the mesa-commit mailing list