1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/angle-build-ttype.patch Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +From: Jeff Gilbert <jgilbert@mozilla.com> 1.5 + 1.6 +diff --git a/gfx/angle/src/compiler/Types.h b/gfx/angle/src/compiler/Types.h 1.7 +--- a/gfx/angle/src/compiler/Types.h 1.8 ++++ b/gfx/angle/src/compiler/Types.h 1.9 +@@ -90,17 +90,17 @@ private: 1.10 + // 1.11 + // Base class for things that have a type. 1.12 + // 1.13 + class TType 1.14 + { 1.15 + public: 1.16 + POOL_ALLOCATOR_NEW_DELETE(); 1.17 + TType() {} 1.18 +- TType(TBasicType t, TPrecision p, TQualifier q = EvqTemporary, int s = 1, bool m = false, bool a = false) : 1.19 ++ TType(TBasicType t, TPrecision p, TQualifier q = EvqTemporary, char s = 1, bool m = false, bool a = false) : 1.20 + type(t), precision(p), qualifier(q), size(s), matrix(m), array(a), arraySize(0), structure(0) 1.21 + { 1.22 + } 1.23 + explicit TType(const TPublicType &p); 1.24 + TType(TStructure* userDef, TPrecision p = EbpUndefined) : 1.25 + type(EbtStruct), precision(p), qualifier(EvqTemporary), size(1), matrix(false), array(false), arraySize(0), structure(userDef) 1.26 + { 1.27 + } 1.28 +@@ -229,22 +229,22 @@ public: 1.29 + 1.30 + bool isStructureContainingArrays() const { 1.31 + return structure ? structure->containsArrays() : false; 1.32 + } 1.33 + 1.34 + private: 1.35 + TString buildMangledName() const; 1.36 + 1.37 +- TBasicType type : 6; 1.38 ++ TBasicType type; 1.39 + TPrecision precision; 1.40 +- TQualifier qualifier : 7; 1.41 +- int size : 8; // size of vector or matrix, not size of array 1.42 +- unsigned int matrix : 1; 1.43 +- unsigned int array : 1; 1.44 ++ TQualifier qualifier; 1.45 ++ char size; // size of vector or matrix, not size of array 1.46 ++ bool matrix; 1.47 ++ bool array; 1.48 + int arraySize; 1.49 + 1.50 + TStructure* structure; // 0 unless this is a struct 1.51 + 1.52 + mutable TString mangled; 1.53 + }; 1.54 + 1.55 + //