diff options
-rw-r--r-- | fontconfig/src/fcfreetype.c | 67 | ||||
-rw-r--r-- | mesalib/src/glsl/link_varyings.cpp | 4 | ||||
-rw-r--r-- | mesalib/src/glsl/loop_analysis.cpp | 13 | ||||
-rw-r--r-- | mesalib/src/glsl/loop_analysis.h | 2 | ||||
-rw-r--r-- | mesalib/src/mesa/main/bufferobj.c | 7 | ||||
-rw-r--r-- | mesalib/src/mesa/main/get_hash_params.py | 4 | ||||
-rwxr-xr-x | updategit.sh | 24 |
7 files changed, 58 insertions, 63 deletions
diff --git a/fontconfig/src/fcfreetype.c b/fontconfig/src/fcfreetype.c index 111f78458..267df8715 100644 --- a/fontconfig/src/fcfreetype.c +++ b/fontconfig/src/fcfreetype.c @@ -775,47 +775,26 @@ FcSfntNameLanguage (FT_SfntName *sname) /* Order is significant. For example, some B&H fonts are hinted by URW++, and both strings appear in the notice. */ -static const char notice_foundry_data[] = - "Bigelow\0b&h\0" - "Adobe\0adobe\0" - "Bitstream\0bitstream\0" - "Monotype\0monotype\0" - "Linotype\0linotype\0" - "LINOTYPE-HELL\0linotype\0" - "IBM\0ibm\0" - "URW\0urw\0" - "International Typeface Corporation\0itc\0" - "Tiro Typeworks\0tiro\0" - "XFree86\0xfree86\0" - "Microsoft\0microsoft\0" - "Omega\0omega\0" - "Font21\0hwan\0" - "HanYang System\0hanyang"; - -struct _notice_foundry { - /* these are the offsets into the - * notice_foundry_data array. - */ - unsigned char notice_offset; - unsigned char foundry_offset; -}; - -static const struct _notice_foundry FcNoticeFoundries[] = { - { 0, 8 }, - { 12, 18 }, - { 24, 34 }, - { 44, 53 }, - { 62, 71 }, - { 80, 94 }, - { 103, 107 }, - { 111, 115 }, - { 119, 154 }, - { 158, 173 }, - { 178, 186 }, - { 194, 204 }, - { 214, 220 }, - { 226, 233 }, - { 238, 253 } +static const char *FcNoticeFoundries[][2] = + { + {"Adobe", "adobe"}, + {"Bigelow", "b&h"}, + {"Bitstream", "bitstream"}, + {"Gnat", "culmus"}, + {"Iorsh", "culmus"}, + {"HanYang System", "hanyang"}, + {"Font21", "hwan"}, + {"IBM", "ibm"}, + {"International Typeface Corporation", "itc"}, + {"Linotype", "linotype"}, + {"LINOTYPE-HELL", "linotype"}, + {"Microsoft", "microsoft"}, + {"Monotype", "monotype"}, + {"Omega", "omega"}, + {"Tiro Typeworks", "tiro"}, + {"URW", "urw"}, + {"XFree86", "xfree86"}, + {"Xorg", "xorg"}, }; #define NUM_NOTICE_FOUNDRIES (int) (sizeof (FcNoticeFoundries) / sizeof (FcNoticeFoundries[0])) @@ -828,9 +807,8 @@ FcNoticeFoundry(const FT_String *notice) if (notice) for(i = 0; i < NUM_NOTICE_FOUNDRIES; i++) { - const struct _notice_foundry *nf = &FcNoticeFoundries[i]; - const char *n = notice_foundry_data + nf->notice_offset; - const char *f = notice_foundry_data + nf->foundry_offset; + const char *n = FcNoticeFoundries[i][0]; + const char *f = FcNoticeFoundries[i][1]; if (strstr ((const char *) notice, n)) return (const FcChar8 *) f; @@ -871,6 +849,7 @@ static const struct { { "B&H", "b&h"}, { "BITS", "bitstream"}, { "CANO", "cannon"}, + { "CLM", "culmus"}, { "DYNA", "dynalab"}, { "EPSN", "epson"}, { "FJ", "fujitsu"}, diff --git a/mesalib/src/glsl/link_varyings.cpp b/mesalib/src/glsl/link_varyings.cpp index e2cb46e8c..b1317c832 100644 --- a/mesalib/src/glsl/link_varyings.cpp +++ b/mesalib/src/glsl/link_varyings.cpp @@ -868,7 +868,9 @@ public: tfeedback_candidate_generator(void *mem_ctx, hash_table *tfeedback_candidates) : mem_ctx(mem_ctx), - tfeedback_candidates(tfeedback_candidates) + tfeedback_candidates(tfeedback_candidates), + toplevel_var(NULL), + varying_floats(0) { } diff --git a/mesalib/src/glsl/loop_analysis.cpp b/mesalib/src/glsl/loop_analysis.cpp index 6a0e4da51..191e92de7 100644 --- a/mesalib/src/glsl/loop_analysis.cpp +++ b/mesalib/src/glsl/loop_analysis.cpp @@ -105,7 +105,7 @@ loop_variable_state::insert(ir_if *if_stmt) class loop_analysis : public ir_hierarchical_visitor { public: - loop_analysis(); + loop_analysis(loop_state *loops); virtual ir_visitor_status visit(ir_loop_jump *); virtual ir_visitor_status visit(ir_dereference_variable *); @@ -129,12 +129,10 @@ public: }; -loop_analysis::loop_analysis() +loop_analysis::loop_analysis(loop_state *loops) + : loops(loops), if_statement_depth(0), current_assignment(NULL) { - this->loops = new loop_state; - - this->if_statement_depth = 0; - this->current_assignment = NULL; + /* empty */ } @@ -521,7 +519,8 @@ is_loop_terminator(ir_if *ir) loop_state * analyze_loop_variables(exec_list *instructions) { - loop_analysis v; + loop_state *loops = new loop_state; + loop_analysis v(loops); v.run(instructions); return v.loops; diff --git a/mesalib/src/glsl/loop_analysis.h b/mesalib/src/glsl/loop_analysis.h index 05c982fc1..769d62661 100644 --- a/mesalib/src/glsl/loop_analysis.h +++ b/mesalib/src/glsl/loop_analysis.h @@ -249,7 +249,7 @@ private: void *mem_ctx; - friend class loop_analysis; + friend loop_state *analyze_loop_variables(exec_list *instructions); }; #endif /* LOOP_ANALYSIS_H */ diff --git a/mesalib/src/mesa/main/bufferobj.c b/mesalib/src/mesa/main/bufferobj.c index 7c069386c..b82ba7b4c 100644 --- a/mesalib/src/mesa/main/bufferobj.c +++ b/mesalib/src/mesa/main/bufferobj.c @@ -2152,13 +2152,6 @@ _mesa_BindBufferRange(GLenum target, GLuint index, (int) size); return; } - - if (offset + size > bufObj->Size) { - _mesa_error(ctx, GL_INVALID_VALUE, - "glBindBufferRange(offset + size %d > buffer size %d)", - (int) (offset + size), (int) (bufObj->Size)); - return; - } } switch (target) { diff --git a/mesalib/src/mesa/main/get_hash_params.py b/mesalib/src/mesa/main/get_hash_params.py index b6bed809c..1b7d6ad8e 100644 --- a/mesalib/src/mesa/main/get_hash_params.py +++ b/mesalib/src/mesa/main/get_hash_params.py @@ -225,9 +225,6 @@ descriptor=[ # GL_OES_point_sprite [ "POINT_SPRITE_NV", "CONTEXT_BOOL(Point.PointSprite), extra_NV_point_sprite_ARB_point_sprite" ], - -# GL_ARB_vertex_shader - [ "MAX_VARYING_FLOATS_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_vertex_shader" ], ]}, @@ -362,6 +359,7 @@ descriptor=[ # GL_ARB_vertex_shader [ "MAX_VERTEX_UNIFORM_COMPONENTS_ARB", "CONTEXT_INT(Const.VertexProgram.MaxUniformComponents), extra_ARB_vertex_shader" ], + [ "MAX_VARYING_FLOATS_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_vertex_shader" ], # GL_EXT_framebuffer_blit # NOTE: GL_DRAW_FRAMEBUFFER_BINDING_EXT == GL_FRAMEBUFFER_BINDING_EXT diff --git a/updategit.sh b/updategit.sh index e6fed4fbf..838c8ea82 100755 --- a/updategit.sh +++ b/updategit.sh @@ -66,3 +66,27 @@ if [ -d mesa ]; then echo Updating mesa ; pushd mesa ../vcxsrv.released/synchronise.py -e libxtrans ../vcxsrv.released/X11/xtrans ../vcxsrv.released/synchronise.py -e mesa ../vcxsrv.released/mesalib --skip-dir=tests --skip-dir=gtest --skip-dir=x86-64 --skip-dir=tnl_dd --skip-dir=sparc --skip-dir=tools --skip-dir=libdricore --skip-dir=x11 --skip-dir=osmesa --skip-dir=radeon --skip-dir=r200 --skip-dir=nouveau --skip-dir=intel --skip-dir=i965 --skip-dir=i915 --skip-dir=vgapi --skip-dir=shared-glapi --skip-dir=es1api --skip-dir=es2api --skip-dir=gtest --skip-dir=glx --skip-dir=builtins --skip-dir=vl --skip-dir=gallium/docs --skip-dir=gallium/drivers --skip-dir=gallium/include --skip-dir=gallium/state_trackers --skip-dir=gallium/targets --skip-dir=gallium/winsys --skip-dir=gbm --skip-dir=getopt --skip-dir=egl --skip-dir=cso_cache --skip-dir=target-helpers --skip-dir=tgsi --skip-dir=translate --skip-dir=rtasm --skip-dir=pipebuffer --skip-dir=postprocess --skip-dir=rbug --skip-dir=pipe-loader --skip-dir=os --skip-dir=indices --skip-dir=gallivm --skip-dir=draw --skip-dir=pci_ids --skip-dir=doxygen --skip-dir=OLD --skip-dir=CL --skip-dir=c99 +# show all latest commit hashes +if [ -d xserver ]; then pushd xserver > /dev/null ; echo "xserver " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libxcb ]; then pushd libxcb > /dev/null ; echo "libxcb " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libxcb/xcb-proto ]; then pushd libxcb/xcb-proto> /dev/null ; echo "libxcb/xcb-proto" `git log | head -n1`; popd > /dev/null ; fi +if [ -d xkeyboard-config ]; then pushd xkeyboard-config> /dev/null ; echo "xkeyboard-config" `git log | head -n1`; popd > /dev/null ; fi +if [ -d libX11 ]; then pushd libX11 > /dev/null ; echo "libX11 " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libXdmcp ]; then pushd libXdmcp > /dev/null ; echo "libXdmcp " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libXext ]; then pushd libXext > /dev/null ; echo "libXext " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libfontenc ]; then pushd libfontenc > /dev/null ; echo "libfontenc " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libXinerama ]; then pushd libXinerama > /dev/null ; echo "libXinerama " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libXau ]; then pushd libXau > /dev/null ; echo "libXau " `git log | head -n1`; popd > /dev/null ; fi +if [ -d xkbcomp ]; then pushd xkbcomp > /dev/null ; echo "xkbcomp " `git log | head -n1`; popd > /dev/null ; fi +if [ -d pixman ]; then pushd pixman > /dev/null ; echo "pixman " `git log | head -n1`; popd > /dev/null ; fi +if [ -d xextproto ]; then pushd xextproto > /dev/null ; echo "xextproto " `git log | head -n1`; popd > /dev/null ; fi +if [ -d randrproto ]; then pushd randrproto > /dev/null ; echo "randrproto " `git log | head -n1`; popd > /dev/null ; fi +if [ -d glproto ]; then pushd glproto > /dev/null ; echo "glproto " `git log | head -n1`; popd > /dev/null ; fi +if [ -d mkfontscale ]; then pushd mkfontscale > /dev/null ; echo "mkfontscale " `git log | head -n1`; popd > /dev/null ; fi +if [ -d xwininfo ]; then pushd xwininfo > /dev/null ; echo "xwininfo " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libXft ]; then pushd libXft > /dev/null ; echo "libXft " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libXmu ]; then pushd libXmu > /dev/null ; echo "libXmu " `git log | head -n1`; popd > /dev/null ; fi +if [ -d libxtrans ]; then pushd libxtrans > /dev/null ; echo "libxtrans " `git log | head -n1`; popd > /dev/null ; fi +if [ -d fontconfig ]; then pushd fontconfig > /dev/null ; echo "fontconfig " `git log | head -n1`; popd > /dev/null ; fi +if [ -d mesa ]; then pushd mesa > /dev/null ; echo "mesa " `git log | head -n1`; popd > /dev/null ; fi + |