[Mesa-dev] [PATCH 18/20] mesa: fill out the ARB_shader_subroutine APIs

Kenneth Graunke kenneth at whitecape.org
Wed Jul 22 22:01:36 PDT 2015


On Tuesday, July 21, 2015 03:19:25 PM Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> This fleshes out the APIs, using the program resource
> APIs where they should match.
> 
> It also sets the default values to valid subroutines.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/mesa/main/shaderapi.c | 450 +++++++++++++++++++++++++++++++++++++++++++++-
>  src/mesa/main/shaderapi.h |   3 +
>  2 files changed, 450 insertions(+), 3 deletions(-)

So, one question I have...according to the spec...

   "Subroutine uniform variables are similar to uniform variables, except they
    are context state rather than program state. Having subroutine uniforms be
    context state allows them to have different values if the program is used
    in multiple contexts simultaneously.  There is a set of subroutine
    uniforms for each shader stage."

but it looks like we're storing them in the shader, rather than
per-context.  Bug?  Or am I missing something?

At this point I'm just inclined to give everything I haven't reviewed an
Acked-by: Kenneth Graunke <kenneth at whitecape.org>

I don't think anybody wants to spend much more time on this, and it'd be
nice to check off the box and move on.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150722/66a3f1e8/attachment.sig>


More information about the mesa-dev mailing list