On 01/08/2014 12:20 PM, Paul Berry wrote:
These are replaced with
ctx->Const.Program[MESA_SHADER_{VERTEX,FRAGMENT,GEOMETRY}].  In
patches to follow, this will allow us to replace a lot of ad-hoc logic
with a variable index into the array.

With the exception of the changes to mtypes.h, this patch was
generated entirely by the command:

     find src -type f '(' -iname '*.c' -o -iname '*.cpp' -o -iname '*.py' \
     -o -iname '*.y' ')' -print0 | xargs -0 sed -i \
     -e 's/Const\.VertexProgram/Const.Program[MESA_SHADER_VERTEX]/g' \
     -e 's/Const\.GeometryProgram/Const.Program[MESA_SHADER_GEOMETRY]/g' \
     -e 's/Const\.FragmentProgram/Const.Program[MESA_SHADER_FRAGMENT]/g'

Suggested-by: Brian Paul <bri...@vmware.com>

Series looks good to me.  Thanks for updating the gallium code too.

Reviewed-by: Brian Paul <bri...@vmware.com>

-Brian


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to