[Mesa-dev] [PATCH] Implementing varying packing
Vinson Lee
vlee at vmware.com
Fri Aug 12 14:51:19 PDT 2011
> -----Original Message-----
> Subject: [Mesa-dev] [PATCH] Implementing varying packing
>
> This optimisation pass will look for and pack together float,
> vec2, vec3 varyings in fragment shaders and transform the vertex
> shader accordingly. It might improve performance depending on
> the hardware.
> ---
> src/glsl/Makefile | 1 +
> src/glsl/linker.cpp | 3 +
> src/glsl/pack_varyings.cpp | 491
> ++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 495 insertions(+), 0 deletions(-)
> create mode 100644 src/glsl/pack_varyings.cpp
>
> diff --git a/src/glsl/Makefile b/src/glsl/Makefile
> index e2d29bd..8ce06bd 100644
> --- a/src/glsl/Makefile
> +++ b/src/glsl/Makefile
> @@ -84,6 +84,7 @@ CXX_SOURCES = \
> opt_structure_splitting.cpp \
> opt_swizzle_swizzle.cpp \
> opt_tree_grafting.cpp \
> + pack_varyings.cpp \
> s_expression.cpp
>
> LIBS = \
Please add the equivalent change to src/glsl/SConscript.
More information about the mesa-dev
mailing list