[Bug 84225] Allow any sort of sampler array indexing with GLSL-ES < 300

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 23 18:12:53 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=84225

Ian Romanick <idr at freedesktop.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #1 from Ian Romanick <idr at freedesktop.org> ---
This is not required in ESSL 1.00.  Section 10.24 (Samplers) of the ESSL 1.00
spec says:

    Should samplers be allowed as l-values? The specification already
    allows an equivalent behavior:

    Current specification:

        uniform sampler2D sampler[8];
        int index = f(...);
        vec4 tex = texture2D(sampler[index], xy); // allowed

    Using assignment of sampler types:

        uniform sampler2D s;
        s = g(...);
        vec4 tex = texture2D(s, xy); // not allowed

    RESOLUTION: Keep current specification. Support for dynamic
    indexing of arrays of samplers is not mandated for ES2.0
    (specified in the limitations section).

Appendix A (Limitations for ES 2.0), subsecton 5 (Indexing of Arrays, Vectors
and Matrices), paragraph "Samplers" (oh good grief!) says:

    GLSL ES 1.00 supports both arrays of samplers and arrays of
    structures which contain samplers. In both these cases, for ES 2.0,
    support for indexing with a constant-index-expression is mandated
    but support for indexing with other values is not mandated.

Mesa supports OpenGL ES 2.0 on some hardware (e.g., i915) that cannot support
dynamic indexing of sampler arrays.  I believe we are conformant as-is.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20140924/91659da0/attachment.html>


More information about the intel-3d-bugs mailing list