evas gl common - remove unused struct fields from shader src to save mem

we use a bit more memory than we need by having unused fields for
shaders. the old binary data ptrs and size fields we just have not
used for years now as we dont compile in shader binaries anymore as no
living drivers need this anymore. so this removes that with no actual
side-effects.
This commit is contained in:
Carsten Haitzler 2015-10-19 17:06:06 +09:00
parent 548addbb02
commit 2eaf33d9cf
4 changed files with 945 additions and 1891 deletions

View File

@ -108,8 +108,6 @@ struct _Evas_GL_Program
struct _Evas_GL_Program_Source
{
const char *src;
const unsigned int *bin;
int bin_size;
};
struct _Evas_GL_Shared

File diff suppressed because it is too large Load Diff

View File

@ -149,7 +149,7 @@ for (( i = 0; i < ${#SHADERS[@]} ; i++ )) ; do
printf ";\n" >> ${OUTPUT}
IFS=${OIFS}
printf "Evas_GL_Program_Source shader_${shdname}_src =\n{\n ${shdname}_glsl,\n NULL, 0\n};\n\n" >> ${OUTPUT}
printf "Evas_GL_Program_Source shader_${shdname}_src =\n{\n ${shdname}_glsl\n};\n\n" >> ${OUTPUT}
done
shaders_source="${shaders_source} { SHADER_${UNAME}, &(shader_${name}_vert_src), &(shader_${name}_frag_src), \"${name}\", SHD_${TYPE}, SHD_${sam}, SHD_${masksam}, ${bgra}, ${mask}, ${nomul}, ${afill} },\n"