On 11/02/2012 02:58 PM, Paul Berry wrote:
On 2 November 2012 14:09, Ian Romanick <[email protected]
<mailto:[email protected]>> wrote:

    On 11/01/2012 03:19 PM, Paul Berry wrote:

        Future patches will use this annotation when code generating
        _mesa_create_exec_table(), to determine which functions should be
        dispatched to ES-specific implementations.  exec="es" indicates that
        the ES-specific implementation has a name beginning with "_es_"
        (e.g. _es_QueryMatrixxOES), and exec="check" indicates that the
        ES-specific implementation has a name beginning with "_check_"
        (e.g. _check_GetTexGenxvOES).


    All of the _check_ nonsense should just go away.  In api_exec_es1.c,
    every single instance of _check_Foo is just a #define to _es_Foo.

    All of the fixed-point functions should be renamed from _es_Foox to
    _mesa_Foox.  The single-precision matrix functions (e.g.,
    _es_Orthof) should similar treatment.

    As far as I can tell, that just leaves _es_RenderbufferStorageEXT,
    _es_TexGenf, _es_TexGenfv, and _es_GetTexGenfv with mangled ES1 names.

    The single special-case for GL_RGB565 in _es_RenderbufferStorageEXT
    should just be handled in renderbuffer_storage.

    The TexGen functions should just have an 'if (ctx->API ==
    API_OPENGL_ES)' block at the top the defers to the special ES1
    implementation.


So, in other words, if I'm understanding you correctly, if we rename all
the _es_ and _check_ functions to _mesa_..., and do some refactoring in
the case of RenderbufferStorageEXT, TexGenf, TexGenfv, and GetTexGenfv,
we could get rid of the exec="es" and exec="check" flavors entirely?

Right.

That seems fairly reasonable.  I'll give it a shot and see how it goes.

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to