mesa: add api to write subroutine indicies to the program storage.
authorDave Airlie <airlied@redhat.com>
Tue, 7 Jun 2016 05:25:56 +0000 (15:25 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 23 Aug 2016 01:03:45 +0000 (11:03 +1000)
commitea783667e4fff16fde9dfb76eefcd6aa484077d4
tree8b1d3d1143cb7e773bb142f64cd8c34b64b8318f
parent4566aaaa5b169724174e04dc0a99a37ae0abcd2a
mesa: add api to write subroutine indicies to the program storage.

This writes the subroutine indicies to the program storage for
a stage. This API is intended to be used by drivers to update
the uniform storage before uploading to the hw.

This isn't the most thread safe effort, but it will be significantly
more multi-context safe.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
src/mesa/main/shaderapi.c
src/mesa/main/shaderapi.h