[Mesa-dev] [PATCH 1/5] mesa: replace ctx->Const.{Vertex, Fragment, Geomtery}Program with an array.
Brian Paul
brianp at vmware.com
Wed Jan 8 11:41:51 PST 2014
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 <brianp at vmware.com>
Series looks good to me. Thanks for updating the gallium code too.
Reviewed-by: Brian Paul <brianp at vmware.com>
-Brian
More information about the mesa-dev
mailing list