ChangeLog 189 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945
  1. 2013-04-18 Krzysztof Wolanski <k.wolanski@samsung.com>
  2. Add checking whether the compiler allows to use #pragma directive.
  3. https://bugs.webkit.org/show_bug.cgi?id=114740
  4. Reviewed by Andreas Kling.
  5. Some compilers may complain that #pragma warning is an undefined macro.
  6. * src/compiler/depgraph/DependencyGraph.cpp:
  7. 2013-04-11 Andras Becsi <andras.becsi@digia.com>
  8. [Qt][Mac] Linking fails with Qt 5.1
  9. https://bugs.webkit.org/show_bug.cgi?id=114435
  10. Reviewed by Tor Arne Vestbø.
  11. Qt 5.1 enables C++11 by default when using clang on Mac
  12. and links against the libc++ standard library. As a result
  13. building the QtWebKit shared library fails when linking
  14. agains the ANGLE intermediate static library because libc++
  15. misses some symbols needed by ANGLE.
  16. Disable C++11 for the ANGLE intermediate library to fix the build.
  17. * ANGLE.pri:
  18. 2013-04-10 Benjamin Poulain <bpoulain@apple.com>
  19. Mass remove all the empty directories
  20. Rubberstamped by Ryosuke Niwa.
  21. * src/libGLESv2/geometry: Removed.
  22. 2013-04-08 Ryosuke Niwa <rniwa@webkit.org>
  23. Remove ANGLE.gyp
  24. https://bugs.webkit.org/show_bug.cgi?id=114245
  25. Unreviewed. Just removing an empty directory.
  26. * ANGLE.gyp: Removed.
  27. 2013-04-04 Martin Robinson <mrobinson@igalia.com>
  28. [GTK] Remove the gyp build
  29. https://bugs.webkit.org/show_bug.cgi?id=113942
  30. Reviewed by Gustavo Noronha Silva.
  31. * ANGLE.gyp/ANGLE.gyp: Removed.
  32. * ANGLE.gypi: Removed.
  33. 2013-03-20 Zan Dobersek <zdobersek@igalia.com>
  34. [GTK] Build ANGLE sources into a separate library from libWebCore.la
  35. https://bugs.webkit.org/show_bug.cgi?id=112778
  36. Reviewed by Martin Robinson.
  37. * GNUmakefile.am: Added, sets up the libANGLE.la library.
  38. 2013-03-05 Kenneth Russell <kbr@google.com>
  39. Upgrade ANGLE to r1987
  40. https://bugs.webkit.org/show_bug.cgi?id=111381
  41. Reviewed by Dean Jackson.
  42. * include/GLSLANG/ShaderLang.h:
  43. * src/common/version.h:
  44. * src/compiler/Compiler.cpp:
  45. (TCompiler::TCompiler):
  46. (TCompiler::Init):
  47. (TCompiler::compile):
  48. * src/compiler/ParseHelper.h:
  49. (TParseContext):
  50. * src/compiler/ShHandle.h:
  51. (TCompiler):
  52. * src/compiler/ShaderLang.cpp:
  53. (ShInitBuiltInResources):
  54. * src/compiler/UnfoldShortCircuit.cpp:
  55. (sh::UnfoldShortCircuit::visitSelection):
  56. * src/compiler/glslang.l:
  57. * src/compiler/glslang.y:
  58. * src/compiler/glslang_lex.cpp:
  59. (glslang_scan):
  60. * src/compiler/glslang_tab.cpp:
  61. Updated ANGLE to r1987.
  62. 2013-03-01 Martin Robinson <mrobinson@igalia.com>
  63. [GTK] Add ANGLE to the GTK+ gyp build
  64. https://bugs.webkit.org/show_bug.cgi?id=111128
  65. Reviewed by Dirk Pranke.
  66. Add files that build an ANGLE static library for GTK+ using gyp.
  67. * ANGLE.gyp/ANGLE.gyp: Added.
  68. * ANGLE.gypi: Added.
  69. 2013-02-22 Kenneth Russell <kbr@google.com>
  70. Mac OS build broken by new ExpressionParser.cpp
  71. https://bugs.webkit.org/show_bug.cgi?id=110629
  72. Unreviewed build fix. Regenerated ExpressionParser with Bison 2.3.
  73. * src/compiler/preprocessor/ExpressionParser.cpp:
  74. 2013-02-21 Zhenyao Mo <zmo@google.com>
  75. Roll ANGLE to r1833
  76. https://bugs.webkit.org/show_bug.cgi?id=110513
  77. Reviewed by Kenneth Russell.
  78. Upstream ANGLE r1833 includes webkit side local fixes
  79. 1) r139758 build fix for -Wshorten-64-to-32
  80. 2) r139665 build fix for uninitialized variables
  81. After this roll, WebKit side ANGLE is the same as upstream ANGLE r1833, except:
  82. 1) include/GLSLANG/ShaderLang.h, where "KHR" is removed from include path.
  83. With this roll, we have EXT_draw_buffers support.
  84. * ANGLE.xcodeproj/project.pbxproj:
  85. * Target.pri:
  86. * include/GLSLANG/ShaderLang.h:
  87. * src/common/debug.cpp:
  88. * src/common/system.h: Added.
  89. * src/common/version.h:
  90. * src/compiler/ArrayBoundsClamper.cpp: Removed.
  91. * src/compiler/ArrayBoundsClamper.h: Removed.
  92. * src/compiler/Compiler.cpp:
  93. (TCompiler::TCompiler):
  94. (TCompiler::Init):
  95. (TCompiler::compile):
  96. (TCompiler::getArrayBoundsClamper):
  97. (TCompiler::getArrayIndexClampingStrategy):
  98. (TCompiler::getBuiltInFunctionEmulator):
  99. * src/compiler/DetectDiscontinuity.cpp:
  100. (sh::DetectLoopDiscontinuity::traverse):
  101. (sh::DetectLoopDiscontinuity::visitLoop):
  102. (sh):
  103. (sh::DetectLoopDiscontinuity::visitBranch):
  104. * src/compiler/DetectDiscontinuity.h:
  105. (DetectLoopDiscontinuity):
  106. * src/compiler/Initialize.cpp:
  107. (InitExtensionBehavior):
  108. * src/compiler/Intermediate.cpp:
  109. (TIntermConstantUnion::fold):
  110. (TIntermTraverser::hash):
  111. * src/compiler/MapLongVariableNames.cpp:
  112. (LongNameMap::Size):
  113. (MapLongVariableNames::mapGlobalLongName):
  114. * src/compiler/MapLongVariableNames.h:
  115. (LongNameMap):
  116. * src/compiler/OutputESSL.cpp:
  117. (TOutputESSL::TOutputESSL):
  118. * src/compiler/OutputESSL.h:
  119. (TOutputESSL):
  120. * src/compiler/OutputGLSL.cpp:
  121. (TOutputGLSL::TOutputGLSL):
  122. * src/compiler/OutputGLSL.h:
  123. (TOutputGLSL):
  124. * src/compiler/OutputGLSLBase.cpp:
  125. (TOutputGLSLBase::TOutputGLSLBase):
  126. (TOutputGLSLBase::writeConstantUnion):
  127. (TOutputGLSLBase::visitBinary):
  128. * src/compiler/OutputGLSLBase.h:
  129. (TOutputGLSLBase):
  130. * src/compiler/OutputHLSL.cpp:
  131. (sh::OutputHLSL::output):
  132. (sh::OutputHLSL::visitLoop):
  133. (sh::OutputHLSL::writeConstantUnion):
  134. * src/compiler/ParseHelper.cpp:
  135. (TParseContext::constructorErrorCheck):
  136. (PaParseStrings):
  137. * src/compiler/ParseHelper.h:
  138. * src/compiler/ShHandle.h:
  139. (TCompiler):
  140. * src/compiler/ShaderLang.cpp:
  141. (checkActiveUniformAndAttribMaxLengths):
  142. (checkMappedNameMaxLength):
  143. (getVariableInfo):
  144. (ShInitBuiltInResources):
  145. (ShCompile):
  146. (ShGetInfo):
  147. (ShGetActiveAttrib):
  148. (ShGetActiveUniform):
  149. (ShGetNameHashingEntry):
  150. * src/compiler/SymbolTable.h:
  151. (TFunction::getParamCount):
  152. (TFunction::getParam):
  153. (TSymbolTable::setDefaultPrecision):
  154. * src/compiler/TranslatorESSL.cpp:
  155. (TranslatorESSL::translate):
  156. * src/compiler/TranslatorGLSL.cpp:
  157. (TranslatorGLSL::translate):
  158. * src/compiler/ValidateLimitations.cpp:
  159. (ValidateLimitations::validateFunctionCall):
  160. * src/compiler/VariablePacker.cpp:
  161. (VariablePacker::GetNumRows):
  162. * src/compiler/glslang.h:
  163. * src/compiler/glslang.l:
  164. * src/compiler/glslang.y:
  165. * src/compiler/glslang_lex.cpp:
  166. (string_input):
  167. (glslang_scan):
  168. * src/compiler/glslang_tab.cpp:
  169. * src/compiler/preprocessor/ExpressionParser.cpp:
  170. * src/compiler/preprocessor/ExpressionParser.y:
  171. * src/compiler/preprocessor/Input.cpp:
  172. (pp::Input::Input):
  173. (pp::Input::read):
  174. * src/compiler/preprocessor/Input.h:
  175. (Input):
  176. (pp::Input::count):
  177. (pp::Input::string):
  178. (pp::Input::length):
  179. (Location):
  180. * src/compiler/preprocessor/Preprocessor.cpp:
  181. (pp::Preprocessor::init):
  182. * src/compiler/preprocessor/Preprocessor.h:
  183. (Preprocessor):
  184. * src/compiler/preprocessor/Tokenizer.cpp:
  185. (pp::Tokenizer::init):
  186. * src/compiler/preprocessor/Tokenizer.h:
  187. (Tokenizer):
  188. * src/compiler/preprocessor/Tokenizer.l:
  189. * src/third_party: Added.
  190. * src/third_party/compiler: Added.
  191. * src/third_party/compiler/ArrayBoundsClamper.cpp: Added.
  192. (ArrayBoundsClamper::ArrayBoundsClamper):
  193. (ArrayBoundsClamper::SetClampingStrategy):
  194. (ArrayBoundsClamper::MarkIndirectArrayBoundsForClamping):
  195. (ArrayBoundsClamper::OutputClampingFunctionDefinition):
  196. * src/third_party/compiler/ArrayBoundsClamper.h: Added.
  197. (ArrayBoundsClamper):
  198. (ArrayBoundsClamper::Cleanup):
  199. (ArrayBoundsClamper::GetArrayBoundsClampDefinitionNeeded):
  200. (ArrayBoundsClamper::SetArrayBoundsClampDefinitionNeeded):
  201. * src/third_party/compiler/LICENSE: Added.
  202. * src/third_party/compiler/README.angle: Added.
  203. 2013-02-04 David Kilzer <ddkilzer@apple.com>
  204. Sort ANGLE Xcode project file.
  205. * ANGLE.xcodeproj/project.pbxproj:
  206. 2013-01-30 David Kilzer <ddkilzer@apple.com>
  207. Remove useless comment from Base.xcconfig
  208. Rubber-stamped by Mark Rowe.
  209. * Configurations/Base.xcconfig: Remove comment.
  210. 2013-01-16 Allan Sandfeld Jensen <allan.jensen@digia.com>
  211. Doesn't build with GCC 4.7+
  212. https://bugs.webkit.org/show_bug.cgi?id=106999
  213. Reviewed by Csaba Osztrogonác.
  214. Correct __GNU_C_MINOR__ macro to __GNUC_MINOR__.
  215. * src/compiler/preprocessor/ExpressionParser.y:
  216. 2013-01-15 David Kilzer <ddkilzer@apple.com>
  217. BUILD FIX: Add SUPPORTED_PLATFORMS to Base.xcconfig
  218. * Configurations/Base.xcconfig: Add SUPPORTED_PLATFORMS so that
  219. Xcode knows we can build this project for all three platforms.
  220. Previously the Mac OS X SDKs were missing in the scheme picker.
  221. 2013-01-15 David Kilzer <ddkilzer@apple.com>
  222. Upstream iOS changes for ANGLE project
  223. <http://webkit.org/b/106913>
  224. Reviewed by Joseph Pecoraro.
  225. * ANGLE.xcodeproj/project.pbxproj:
  226. - Use $(INSTALL_PATH_PREFIX) with CopyFiles build phase paths.
  227. - Add iOS.xcconfig to project.
  228. * Configurations/ANGLE.xcconfig:
  229. - Use INSTALL_PATH_ACTUAL instead of INSTALL_PATH. (See below.)
  230. - Use $(INSTALL_PATH_PREFIX) with PUBLIC_HEADERS_FOLDER_PATH.
  231. * Configurations/Base.xcconfig:
  232. - Include iOS.xcconfig.
  233. - Add per-platform values for GCC_ENABLE_OBJC_GC and
  234. GCC_MODEL_TUNING.
  235. - Define INSTALL_PATH when building for macosx SDK.
  236. * Configurations/iOS.xcconfig: Add. Note that missing include
  237. files are simply ignored without an error by Xcode.
  238. 2013-01-15 David Kilzer <ddkilzer@apple.com>
  239. ANGLE should build with -Wshorten-64-to-32
  240. <http://webkit.org/b/106798>
  241. <http://code.google.com/p/angleproject/issues/detail?id=396>
  242. Reviewed by Kenneth Russell.
  243. Most changes below are simply to document issues with #pragma
  244. statements per request by upstream. The change to osinclude.h
  245. is the only bug fix, which defines OS_TLSIndex in terms of
  246. pthread_key_t instead of unsigned int since pthread_key_t is a
  247. 64-bit value on 64-bit Mac OS X.
  248. * Configurations/Base.xcconfig: Enable -Wshorten-64-to-32 by
  249. setting GCC_WARN_64_TO_32_BIT_CONVERSION to YES.
  250. * src/compiler/Intermediate.cpp:
  251. (TIntermTraverser::hash): Add #pragmas for clang to ignore
  252. -Wshorten-64-to-32 warning.
  253. * src/compiler/MapLongVariableNames.cpp:
  254. (LongNameMap::Size): Ditto.
  255. * src/compiler/ShaderLang.cpp:
  256. (getVariableInfo): Ditto.
  257. (ShGetInfo): Ditto.
  258. * src/compiler/ValidateLimitations.cpp:
  259. (ValidateLimitations::validateFunctionCall): Ditto.
  260. * src/compiler/glslang.l: Ditto.
  261. * src/compiler/glslang_lex.cpp: Ditto.
  262. * src/compiler/osinclude.h: Change type of OS_TLSIndex to
  263. pthread_key_t. Define OS_INVALID_TLS_INDEX by using
  264. static_cast<OS_TLSIndex>(-1).
  265. * src/compiler/preprocessor/Input.cpp:
  266. (pp::Input::Input): Add #pragmas for clang to ignore
  267. -Wshorten-64-to-32 warning.
  268. * src/compiler/preprocessor/Tokenizer.cpp: Ditto.
  269. * src/compiler/preprocessor/Tokenizer.l: Ditto.
  270. 2013-01-14 David Kilzer <ddkilzer@apple.com>
  271. Remove nonexistent file in ANGLE Xcode project
  272. * ANGLE.xcodeproj/project.pbxproj: Remove references to
  273. ossource_nspr.cpp which was removed in r139665.
  274. 2013-01-14 Dean Jackson <dino@apple.com>
  275. Unreviewed QT build fix.
  276. * ANGLE.pri:
  277. 2013-01-14 Dean Jackson <dino@apple.com>
  278. [ANGLE] Update ANGLE in WebKit
  279. https://bugs.webkit.org/show_bug.cgi?id=106274
  280. Unreviewed attempted build fix.
  281. Remove the copy files stage. Make khrplatform.h a public header.
  282. * ANGLE.xcodeproj/project.pbxproj:
  283. * include/GLSLANG/ShaderLang.h:
  284. 2013-01-14 Max Vujovic <mvujovic@adobe.com>
  285. [ANGLE] Update ANGLE in WebKit
  286. https://bugs.webkit.org/show_bug.cgi?id=106274
  287. Reviewed by Dean Jackson.
  288. Update ANGLE to r1641.
  289. ANGLE parsers were generated with Bison 2.3.
  290. Additionally, perform the following changes to WebKit's ANGLE build system. Note that these
  291. changes only apply to WebKit's copy of ANGLE, and do not need to be upstreamed to ANGLE.
  292. (a) Remove all files in the libEGL and libGLESv2 directories because nobody is using them.
  293. Add a README in each directory to explain why their contents are not copied over from
  294. ANGLE. This simplifies updating ANGLE in the future.
  295. (b) Remove the build_angle.xcodeproj file that no-one is using. It appears it was copied
  296. over from a gyp build of ANGLE. The Mac build uses ANGLE.xcodeproj.
  297. (c) Remove duplicate file entries in ANGLE.xcodeproj. Change its Xcode group structure to
  298. match ANGLE's directory structure.
  299. (d) Add a Copy Files task to ANGLE.xcodeproj to put the khrplatform.h header in the right
  300. place so ShaderLang.h can find it. ShaderLang.h is copied to
  301. <BuildDir>/usr/local/include/ANGLE/ShaderLang.h during the Copy Headers task, and it
  302. includes "KHR/khrplatform.h". Thus, we need to copy khrplatform.h to
  303. <BuildDir>/usr/local/include/ANGLE/KHR/khrplatform.h.
  304. Additionally, make one build fix in ANGLE source that should be upstreamed to ANGLE:
  305. (1) Before this patch in ExpressionParser.y, we toggled the "-Wpragmas" flag so compilers
  306. could ignore the pragmas that they didn't understand instead of generating an error.
  307. However, clang does not understand "-Wpragmas" itself. Instead, tt understands
  308. "-Wunknown-pragmas". Now, instead of trying to temporarily ignore pragmas, we apply the
  309. right flags to the right compiler versions. The new code in ExpressionParser.y looks
  310. like:
  311. """
  312. // Turn off uninitialized variable warnings triggered by the auto-generated pplval variable.
  313. // On gcc 4.7+, The flag is called "-Wmaybe-uninitialized".
  314. // On clang and gcc < 4.7, the flag is called "-Wuninitialized".
  315. #if !defined(__clang__) && ((__GNUC__ == 4 && __GNU_C_MINOR__ >= 7) || __GNUC__ >= 5)
  316. #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  317. #else
  318. #pragma GCC diagnostic ignored "-Wuninitialized"
  319. #endif
  320. """
  321. * ANGLE.plist:
  322. * ANGLE.pri:
  323. * ANGLE.xcodeproj/project.pbxproj:
  324. * DerivedSources.pri:
  325. * Target.pri:
  326. * include/GLSLANG/ShaderLang.h:
  327. * src/build_angle.xcodeproj/project.pbxproj: Removed.
  328. * src/common/angleutils.h:
  329. * src/common/debug.cpp:
  330. (gl::ScopedPerfEventHelper::ScopedPerfEventHelper):
  331. * src/common/debug.h:
  332. * src/common/version.h:
  333. * src/compiler/Compiler.cpp:
  334. (TCompiler::Init):
  335. (TCompiler::compile):
  336. (TCompiler::clearResults):
  337. (TCompiler::collectAttribsUniforms):
  338. (TCompiler::enforcePackingRestrictions):
  339. * src/compiler/Diagnostics.cpp:
  340. (TDiagnostics::TDiagnostics):
  341. (TDiagnostics::writeInfo):
  342. (TDiagnostics::print):
  343. * src/compiler/Diagnostics.h:
  344. (TDiagnostics::numErrors):
  345. (TDiagnostics::numWarnings):
  346. (TDiagnostics):
  347. * src/compiler/DirectiveHandler.h:
  348. * src/compiler/HashNames.h: Added.
  349. * src/compiler/Intermediate.cpp:
  350. (TIntermTraverser::hash):
  351. * src/compiler/OutputESSL.cpp:
  352. (TOutputESSL::TOutputESSL):
  353. * src/compiler/OutputESSL.h:
  354. (TOutputESSL):
  355. * src/compiler/OutputGLSL.cpp:
  356. (TOutputGLSL::TOutputGLSL):
  357. * src/compiler/OutputGLSL.h:
  358. (TOutputGLSL):
  359. * src/compiler/OutputGLSLBase.cpp:
  360. (TOutputGLSLBase::TOutputGLSLBase):
  361. (TOutputGLSLBase::writeVariableType):
  362. (TOutputGLSLBase::writeFunctionParameters):
  363. (TOutputGLSLBase::writeConstantUnion):
  364. (TOutputGLSLBase::visitSymbol):
  365. (TOutputGLSLBase::visitBinary):
  366. (TOutputGLSLBase::visitAggregate):
  367. (TOutputGLSLBase::getTypeName):
  368. (TOutputGLSLBase::hashName):
  369. (TOutputGLSLBase::hashVariableName):
  370. (TOutputGLSLBase::hashFunctionName):
  371. * src/compiler/OutputGLSLBase.h:
  372. (TOutputGLSLBase):
  373. * src/compiler/OutputHLSL.cpp:
  374. (sh::OutputHLSL::OutputHLSL):
  375. (sh::OutputHLSL::header):
  376. (sh::OutputHLSL::visitAggregate):
  377. (sh::OutputHLSL::visitBranch):
  378. (sh::OutputHLSL::handleExcessiveLoop):
  379. * src/compiler/OutputHLSL.h:
  380. (OutputHLSL):
  381. * src/compiler/ParseHelper.cpp:
  382. (TParseContext::error):
  383. (TParseContext::nonInitConstErrorCheck):
  384. (PaParseStrings):
  385. * src/compiler/ParseHelper.h:
  386. (TParseContext::TParseContext):
  387. (TParseContext):
  388. (TParseContext::numErrors):
  389. * src/compiler/RenameFunction.h:
  390. (RenameFunction::visitAggregate):
  391. * src/compiler/ShHandle.h:
  392. (TCompiler::getHashFunction):
  393. (TCompiler::getNameMap):
  394. (TCompiler::getSymbolTable):
  395. (TCompiler):
  396. * src/compiler/ShaderLang.cpp:
  397. (ShInitBuiltInResources):
  398. (ShGetInfo):
  399. (ShGetNameHashingEntry):
  400. * src/compiler/SymbolTable.cpp:
  401. (TType::TType):
  402. (TType::isStructureContainingArrays):
  403. * src/compiler/SymbolTable.h:
  404. (TSymbolTable::findBuiltIn):
  405. (TSymbolTable):
  406. * src/compiler/TranslatorESSL.cpp:
  407. (TranslatorESSL::translate):
  408. * src/compiler/TranslatorGLSL.cpp:
  409. (TranslatorGLSL::translate):
  410. * src/compiler/Types.h:
  411. (TType):
  412. (TPublicType):
  413. (TPublicType::setBasic):
  414. (TPublicType::setAggregate):
  415. (TPublicType::setArray):
  416. (TPublicType::isStructureContainingArrays):
  417. * src/compiler/UnfoldShortCircuit.cpp:
  418. (sh::UnfoldShortCircuit::visitBinary):
  419. * src/compiler/VariableInfo.cpp:
  420. (getVariableInfo):
  421. (getUserDefinedVariableInfo):
  422. (TVariableInfo::TVariableInfo):
  423. (CollectAttribsUniforms::CollectAttribsUniforms):
  424. (CollectAttribsUniforms::visitAggregate):
  425. * src/compiler/VariableInfo.h:
  426. (TVariableInfo):
  427. (CollectAttribsUniforms):
  428. * src/compiler/VariablePacker.cpp: Added.
  429. (VariablePacker::GetNumComponentsPerRow):
  430. (VariablePacker::GetNumRows):
  431. (TVariableInfoComparer::operator()):
  432. (VariablePacker::makeColumnFlags):
  433. (VariablePacker::fillColumns):
  434. (VariablePacker::searchColumn):
  435. (VariablePacker::CheckVariablesWithinPackingLimits):
  436. * src/compiler/VariablePacker.h: Added.
  437. (VariablePacker):
  438. * src/compiler/VersionGLSL.cpp:
  439. (TVersionGLSL::visitAggregate):
  440. * src/compiler/VersionGLSL.h:
  441. (TVersionGLSL):
  442. * src/compiler/glslang.l:
  443. * src/compiler/glslang.y:
  444. * src/compiler/glslang_lex.cpp:
  445. (string_input):
  446. (glslang_finalize):
  447. (glslang_scan):
  448. * src/compiler/glslang_tab.cpp:
  449. * src/compiler/intermediate.h:
  450. (TIntermTraverser):
  451. * src/compiler/osinclude.h:
  452. (OS_GetTLSValue):
  453. * src/compiler/ossource_nspr.cpp:
  454. * src/compiler/preprocessor/DiagnosticsBase.cpp: Added.
  455. (pp):
  456. (pp::Diagnostics::~Diagnostics):
  457. (pp::Diagnostics::report):
  458. (pp::Diagnostics::severity):
  459. (pp::Diagnostics::message):
  460. * src/compiler/preprocessor/DiagnosticsBase.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Diagnostics.h.
  461. (pp):
  462. (Diagnostics):
  463. * src/compiler/preprocessor/DirectiveHandlerBase.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/DirectiveHandlerBase.cpp.
  464. (pp):
  465. (pp::DirectiveHandler::~DirectiveHandler):
  466. * src/compiler/preprocessor/DirectiveHandlerBase.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/DirectiveHandler.h.
  467. (pp):
  468. (DirectiveHandler):
  469. * src/compiler/preprocessor/DirectiveParser.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/DirectiveParser.cpp.
  470. (getDirective):
  471. (isConditionalDirective):
  472. (isEOD):
  473. (skipUntilEOD):
  474. (isMacroNameReserved):
  475. (isMacroPredefined):
  476. (pp):
  477. (DefinedParser):
  478. (pp::DefinedParser::DefinedParser):
  479. (pp::DefinedParser::lex):
  480. (pp::DirectiveParser::DirectiveParser):
  481. (pp::DirectiveParser::lex):
  482. (pp::DirectiveParser::parseDirective):
  483. (pp::DirectiveParser::parseDefine):
  484. (pp::DirectiveParser::parseUndef):
  485. (pp::DirectiveParser::parseIf):
  486. (pp::DirectiveParser::parseIfdef):
  487. (pp::DirectiveParser::parseIfndef):
  488. (pp::DirectiveParser::parseElse):
  489. (pp::DirectiveParser::parseElif):
  490. (pp::DirectiveParser::parseEndif):
  491. (pp::DirectiveParser::parseError):
  492. (pp::DirectiveParser::parsePragma):
  493. (pp::DirectiveParser::parseExtension):
  494. (pp::DirectiveParser::parseVersion):
  495. (pp::DirectiveParser::parseLine):
  496. (pp::DirectiveParser::skipping):
  497. (pp::DirectiveParser::parseConditionalIf):
  498. (pp::DirectiveParser::parseExpressionIf):
  499. (pp::DirectiveParser::parseExpressionIfdef):
  500. * src/compiler/preprocessor/DirectiveParser.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/DirectiveParser.h.
  501. (pp):
  502. (DirectiveParser):
  503. (ConditionalBlock):
  504. (pp::DirectiveParser::ConditionalBlock::ConditionalBlock):
  505. * src/compiler/preprocessor/ExpressionParser.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/ExpressionParser.cpp.
  506. (yysyntax_error):
  507. (yylex):
  508. (yyerror):
  509. (pp):
  510. (pp::ExpressionParser::ExpressionParser):
  511. (pp::ExpressionParser::parse):
  512. * src/compiler/preprocessor/ExpressionParser.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/ExpressionParser.h.
  513. (pp):
  514. (ExpressionParser):
  515. * src/compiler/preprocessor/ExpressionParser.y: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/ExpressionParser.y.
  516. * src/compiler/preprocessor/Input.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Input.cpp.
  517. (pp):
  518. (pp::Input::Input):
  519. (pp::Input::read):
  520. * src/compiler/preprocessor/Input.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Input.h.
  521. (pp):
  522. (Input):
  523. (pp::Input::count):
  524. (pp::Input::string):
  525. (pp::Input::length):
  526. (Location):
  527. (pp::Input::Location::Location):
  528. (pp::Input::readLoc):
  529. * src/compiler/preprocessor/Lexer.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Lexer.cpp.
  530. (pp):
  531. (pp::Lexer::~Lexer):
  532. * src/compiler/preprocessor/Lexer.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Lexer.h.
  533. (pp):
  534. (Lexer):
  535. * src/compiler/preprocessor/Macro.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Macro.cpp.
  536. (pp):
  537. (pp::Macro::equals):
  538. * src/compiler/preprocessor/Macro.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Macro.h.
  539. (pp):
  540. (pp::Macro::Macro):
  541. (Macro):
  542. * src/compiler/preprocessor/MacroExpander.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/MacroExpander.cpp.
  543. (pp):
  544. (TokenLexer):
  545. (pp::TokenLexer::TokenLexer):
  546. (pp::TokenLexer::lex):
  547. (pp::MacroExpander::MacroExpander):
  548. (pp::MacroExpander::~MacroExpander):
  549. (pp::MacroExpander::lex):
  550. (pp::MacroExpander::getToken):
  551. (pp::MacroExpander::ungetToken):
  552. (pp::MacroExpander::isNextTokenLeftParen):
  553. (pp::MacroExpander::pushMacro):
  554. (pp::MacroExpander::popMacro):
  555. (pp::MacroExpander::expandMacro):
  556. (pp::MacroExpander::collectMacroArgs):
  557. (pp::MacroExpander::replaceMacroParams):
  558. * src/compiler/preprocessor/MacroExpander.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/MacroExpander.h.
  559. (pp):
  560. (MacroExpander):
  561. (MacroContext):
  562. (pp::MacroExpander::MacroContext::MacroContext):
  563. (pp::MacroExpander::MacroContext::empty):
  564. (pp::MacroExpander::MacroContext::get):
  565. (pp::MacroExpander::MacroContext::unget):
  566. * src/compiler/preprocessor/Preprocessor.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Preprocessor.cpp.
  567. (pp):
  568. (PreprocessorImpl):
  569. (pp::PreprocessorImpl::PreprocessorImpl):
  570. (pp::Preprocessor::Preprocessor):
  571. (pp::Preprocessor::~Preprocessor):
  572. (pp::Preprocessor::init):
  573. (pp::Preprocessor::predefineMacro):
  574. (pp::Preprocessor::lex):
  575. * src/compiler/preprocessor/Preprocessor.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Preprocessor.h.
  576. (pp):
  577. (Preprocessor):
  578. * src/compiler/preprocessor/SourceLocation.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/SourceLocation.h.
  579. (pp):
  580. (pp::SourceLocation::SourceLocation):
  581. (SourceLocation):
  582. (pp::SourceLocation::equals):
  583. (pp::operator==):
  584. (pp::operator!=):
  585. * src/compiler/preprocessor/Token.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Token.cpp.
  586. (pp):
  587. (pp::Token::reset):
  588. (pp::Token::equals):
  589. (pp::Token::setAtStartOfLine):
  590. (pp::Token::setHasLeadingSpace):
  591. (pp::Token::setExpansionDisabled):
  592. (pp::Token::iValue):
  593. (pp::Token::uValue):
  594. (pp::Token::fValue):
  595. (pp::operator<<):
  596. * src/compiler/preprocessor/Token.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Token.h.
  597. (pp):
  598. (pp::Token::Token):
  599. (Token):
  600. (pp::Token::atStartOfLine):
  601. (pp::Token::hasLeadingSpace):
  602. (pp::Token::expansionDisabled):
  603. (pp::operator==):
  604. (pp::operator!=):
  605. * src/compiler/preprocessor/Tokenizer.cpp: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Tokenizer.cpp.
  606. (yy_buffer_state):
  607. (yy_trans_info):
  608. (yyguts_t):
  609. (yy_get_previous_state):
  610. (yy_try_NUL_trans):
  611. (input):
  612. (pprestart):
  613. (pp_switch_to_buffer):
  614. (pp_load_buffer_state):
  615. (pp_create_buffer):
  616. (pp_delete_buffer):
  617. (pp_init_buffer):
  618. (pp_flush_buffer):
  619. (pppush_buffer_state):
  620. (pppop_buffer_state):
  621. (ppensure_buffer_stack):
  622. (pp_scan_buffer):
  623. (pp_scan_string):
  624. (pp_scan_bytes):
  625. (yy_fatal_error):
  626. (ppget_extra):
  627. (ppget_lineno):
  628. (ppget_column):
  629. (ppget_in):
  630. (ppget_out):
  631. (ppget_leng):
  632. (ppget_text):
  633. (ppset_extra):
  634. (ppset_lineno):
  635. (ppset_column):
  636. (ppset_in):
  637. (ppset_out):
  638. (ppget_debug):
  639. (ppset_debug):
  640. (ppget_lval):
  641. (ppset_lval):
  642. (ppget_lloc):
  643. (ppset_lloc):
  644. (pplex_init):
  645. (pplex_init_extra):
  646. (yy_init_globals):
  647. (pplex_destroy):
  648. (yy_flex_strncpy):
  649. (yy_flex_strlen):
  650. (ppalloc):
  651. (pprealloc):
  652. (ppfree):
  653. (pp):
  654. (pp::Tokenizer::Tokenizer):
  655. (pp::Tokenizer::~Tokenizer):
  656. (pp::Tokenizer::init):
  657. (pp::Tokenizer::setFileNumber):
  658. (pp::Tokenizer::setLineNumber):
  659. (pp::Tokenizer::lex):
  660. (pp::Tokenizer::initScanner):
  661. (pp::Tokenizer::destroyScanner):
  662. * src/compiler/preprocessor/Tokenizer.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Tokenizer.h.
  663. (pp):
  664. (Tokenizer):
  665. (Context):
  666. * src/compiler/preprocessor/Tokenizer.l: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/Tokenizer.l.
  667. * src/compiler/preprocessor/atom.c: Removed.
  668. * src/compiler/preprocessor/atom.h: Removed.
  669. * src/compiler/preprocessor/compile.h: Removed.
  670. * src/compiler/preprocessor/cpp.c: Removed.
  671. * src/compiler/preprocessor/cpp.h: Removed.
  672. * src/compiler/preprocessor/cppstruct.c: Removed.
  673. * src/compiler/preprocessor/generate_parser.sh: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/generate_parser.sh.
  674. * src/compiler/preprocessor/memory.c: Removed.
  675. * src/compiler/preprocessor/memory.h: Removed.
  676. * src/compiler/preprocessor/new/DiagnosticsBase.cpp: Removed.
  677. * src/compiler/preprocessor/new/new_file.cpp: Removed.
  678. * src/compiler/preprocessor/new/new_file2.cpp: Removed.
  679. * src/compiler/preprocessor/new/preprocessor.vcproj: Removed.
  680. * src/compiler/preprocessor/numeric_lex.h: Added.
  681. (pp):
  682. (pp::numeric_base_int):
  683. (pp::numeric_lex_int):
  684. (pp::numeric_lex_float):
  685. * src/compiler/preprocessor/parser.h: Removed.
  686. * src/compiler/preprocessor/pp_utils.h: Renamed from Source/ThirdParty/ANGLE/src/compiler/preprocessor/new/pp_utils.h.
  687. * src/compiler/preprocessor/preprocess.h: Removed.
  688. * src/compiler/preprocessor/scanner.c: Removed.
  689. * src/compiler/preprocessor/scanner.h: Removed.
  690. * src/compiler/preprocessor/slglobals.h: Removed.
  691. * src/compiler/preprocessor/symbols.c: Removed.
  692. * src/compiler/preprocessor/symbols.h: Removed.
  693. * src/compiler/preprocessor/tokens.c: Removed.
  694. * src/compiler/preprocessor/tokens.h: Removed.
  695. * src/libEGL/Config.cpp: Removed.
  696. * src/libEGL/Config.h: Removed.
  697. * src/libEGL/Display.cpp: Removed.
  698. * src/libEGL/Display.h: Removed.
  699. * src/libEGL/README: Added.
  700. * src/libEGL/Surface.cpp: Removed.
  701. * src/libEGL/Surface.h: Removed.
  702. * src/libEGL/libEGL.cpp: Removed.
  703. * src/libEGL/libEGL.def: Removed.
  704. * src/libEGL/libEGL.rc: Removed.
  705. * src/libEGL/libEGL.vcproj: Removed.
  706. * src/libEGL/main.cpp: Removed.
  707. * src/libEGL/main.h: Removed.
  708. * src/libEGL/resource.h: Removed.
  709. * src/libGLESv2/Blit.cpp: Removed.
  710. * src/libGLESv2/Blit.h: Removed.
  711. * src/libGLESv2/Buffer.cpp: Removed.
  712. * src/libGLESv2/Buffer.h: Removed.
  713. * src/libGLESv2/Context.cpp: Removed.
  714. * src/libGLESv2/Context.h: Removed.
  715. * src/libGLESv2/Fence.cpp: Removed.
  716. * src/libGLESv2/Fence.h: Removed.
  717. * src/libGLESv2/Framebuffer.cpp: Removed.
  718. * src/libGLESv2/Framebuffer.h: Removed.
  719. * src/libGLESv2/HandleAllocator.cpp: Removed.
  720. * src/libGLESv2/HandleAllocator.h: Removed.
  721. * src/libGLESv2/IndexDataManager.cpp: Removed.
  722. * src/libGLESv2/IndexDataManager.h: Removed.
  723. * src/libGLESv2/Program.cpp: Removed.
  724. * src/libGLESv2/Program.h: Removed.
  725. * src/libGLESv2/ProgramBinary.cpp: Removed.
  726. * src/libGLESv2/ProgramBinary.h: Removed.
  727. * src/libGLESv2/Query.cpp: Removed.
  728. * src/libGLESv2/Query.h: Removed.
  729. * src/libGLESv2/README: Added.
  730. * src/libGLESv2/Renderbuffer.cpp: Removed.
  731. * src/libGLESv2/Renderbuffer.h: Removed.
  732. * src/libGLESv2/ResourceManager.cpp: Removed.
  733. * src/libGLESv2/ResourceManager.h: Removed.
  734. * src/libGLESv2/Shader.cpp: Removed.
  735. * src/libGLESv2/Shader.h: Removed.
  736. * src/libGLESv2/Texture.cpp: Removed.
  737. * src/libGLESv2/Texture.h: Removed.
  738. * src/libGLESv2/VertexDataManager.cpp: Removed.
  739. * src/libGLESv2/VertexDataManager.h: Removed.
  740. * src/libGLESv2/libGLESv2.cpp: Removed.
  741. * src/libGLESv2/libGLESv2.def: Removed.
  742. * src/libGLESv2/libGLESv2.rc: Removed.
  743. * src/libGLESv2/libGLESv2.vcproj: Removed.
  744. * src/libGLESv2/main.cpp: Removed.
  745. * src/libGLESv2/main.h: Removed.
  746. * src/libGLESv2/mathutil.h: Removed.
  747. * src/libGLESv2/resource.h: Removed.
  748. * src/libGLESv2/utilities.cpp: Removed.
  749. * src/libGLESv2/utilities.h: Removed.
  750. * src/libGLESv2/vertexconversion.h: Removed.
  751. 2012-12-18 Max Vujovic <mvujovic@adobe.com>
  752. [ANGLE] Use of uninitialized memory in ArrayBoundsClamper
  753. https://bugs.webkit.org/show_bug.cgi?id=105218
  754. Reviewed by Dean Jackson.
  755. TIntermBinary::addIndexClamp is uninitialized when the compile flag
  756. SH_CLAMP_INDIRECT_ARRAY_BOUNDS is not set. Then, addIndexClamp is used in OutputGLSLBase.
  757. CSS Shaders needs to do a first validation pass without the SH_CLAMP_INDIRECT_ARRAY_BOUNDS
  758. flag and its effects. However, sometimes addIndexClamp is true, which inserts clamping code
  759. that causes a shader to fail compilation at the WebGL level.
  760. * src/compiler/intermediate.h:
  761. (TIntermBinary::TIntermBinary):
  762. 2012-10-29 Anders Carlsson <andersca@apple.com>
  763. Build WebKit as C++11 on Mac
  764. https://bugs.webkit.org/show_bug.cgi?id=100720
  765. Reviewed by Daniel Bates.
  766. * Configurations/Base.xcconfig:
  767. Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x.
  768. 2012-10-28 Mark Rowe <mrowe@apple.com>
  769. Simplify Xcode configuration settings that used to vary between OS versions.
  770. Reviewed by Dan Bernstein.
  771. * Configurations/Base.xcconfig:
  772. * Configurations/DebugRelease.xcconfig:
  773. 2012-10-28 Mark Rowe <mrowe@apple.com>
  774. Remove references to unsupported OS and Xcode versions.
  775. Reviewed by Anders Carlsson.
  776. * Configurations/Base.xcconfig:
  777. * Configurations/CompilerVersion.xcconfig: Removed.
  778. * Configurations/DebugRelease.xcconfig:
  779. 2012-10-27 Dan Bernstein <mitz@apple.com>
  780. REAL_PLATFORM_NAME build setting is no longer needed
  781. https://bugs.webkit.org/show_bug.cgi?id=100587
  782. Reviewed by Mark Rowe.
  783. Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references
  784. to PLATFORM_NAME.
  785. * Configurations/Base.xcconfig:
  786. * Configurations/CompilerVersion.xcconfig:
  787. 2012-10-18 Dean Jackson <dino@apple.com>
  788. Shader translator needs option to clamp uniform array accesses in vertex shaders
  789. https://bugs.webkit.org/show_bug.cgi?id=98977
  790. https://code.google.com/p/angleproject/issues/detail?id=49
  791. Reviewed by Alok Priyadarshi and Ken Russell.
  792. WebGL does not allow GLSL code to index a uniform array outside its bounds. Add a
  793. flag to the ANGLE compiler to insert clamp statements around such indexing.
  794. Since it is possible to access vec2/3/4 and mat2/3/4 components by array indexing,
  795. they must be similarly clamped.
  796. Unfortunately, it is currently not possible to always determine that the indexing is
  797. operating on a uniform variable. For example, suppose we have "uniform mat4 a". ANGLE
  798. is currently not able to tell us that the rvalue of "a[0]" is a uniform, just that
  799. it has a size of 4. Therefore, the clamping is done on all indirect array indexing.
  800. This will have a performance impact. Future enhancements may be able to determine
  801. cases where the clamping is not necessary. Currently only direct indexing is skipped
  802. (i.e. looking up a value using a constant index).
  803. The clamp insertion is only performed on the GLSL output. Direct3D already guarantees
  804. that out-of-bounds uniform array access returns a zero value.
  805. * ANGLE.xcodeproj/project.pbxproj:
  806. * Target.pri:
  807. * include/GLSLANG/ShaderLang.h: New compiler option.
  808. * src/compiler/ArrayBoundsClamper.cpp: Added.
  809. (ArrayBoundsClamper::ArrayBoundsClamper):
  810. (ArrayBoundsClamper::OutputClampingFunctionDefinition): Injects a clamping function for integers into GLSL source.
  811. (ArrayBoundsClamper::MarkIndirectArrayBoundsForClamping): Examines the AST looking for non-direct array indexing.
  812. * src/compiler/ArrayBoundsClamper.h: Added.
  813. (ArrayBoundsClamper):
  814. (ArrayBoundsClamper::GetArrayBoundsClampDefinitionNeeded):
  815. (ArrayBoundsClamper::SetArrayBoundsClampDefinitionNeeded): Marks the object as needing to output the clamping function.
  816. (ArrayBoundsClamper::Cleanup): Resets the state so that subsequent runs start fresh.
  817. * src/compiler/Compiler.cpp:
  818. (TCompiler::compile): Run the clamping code if the compile option was set.
  819. (TCompiler::clearResults):
  820. (TCompiler::getArrayBoundsClamper):
  821. * src/compiler/OutputGLSLBase.cpp:
  822. (TOutputGLSLBase::visitBinary): If the expression has been flagged, insert an appropriate "clamp" statement.
  823. * src/compiler/ShHandle.h:
  824. (TCompiler):
  825. * src/compiler/TranslatorESSL.cpp:
  826. (TranslatorESSL::translate):
  827. * src/compiler/TranslatorGLSL.cpp:
  828. (TranslatorGLSL::translate):
  829. * src/compiler/intermOut.cpp:
  830. (TType::getCompleteString): Add array size to intermediate tree output.
  831. * src/compiler/intermediate.h:
  832. (TIntermBinary::setAddIndexClamp): New flag for indicating a binary expression needs clamping.
  833. (TIntermBinary::getAddIndexClamp):
  834. (TIntermBinary):
  835. 2012-09-13 Mark Rowe <mrowe@apple.com>
  836. <rdar://problem/12255720> Fix the build with newer Clang
  837. Reviewed by Sam Weinig.
  838. Clang generates a warning about the inclusion of trailing commas on the final enum item as it's apparently
  839. a C++11 extension. Remove them.
  840. * src/compiler/BaseTypes.h:
  841. * src/compiler/ExtensionBehavior.h:
  842. * src/compiler/ParseHelper.cpp:
  843. (TParseContext::parseVectorFields):
  844. * src/compiler/intermediate.h:
  845. 2012-09-13 Simon Hausmann <simon.hausmann@nokia.com>
  846. [Qt] The ANGLE build on Windows breaks with GnuWin32's flex because it is too old
  847. https://bugs.webkit.org/show_bug.cgi?id=96359
  848. Reviewed by Tor Arne Vestbø.
  849. GnuWin32's flex is 2.5.4 and that is too old for ANGLE's preprocessor
  850. lexer. The only viable alternative I could find on Windows that provides
  851. binaries is the winflexbison distribution (http://sourceforge.net/projects/winflexbison/),
  852. so let's use that one instead.
  853. * DerivedSources.pri:
  854. 2012-09-12 Simon Hausmann <simon.hausmann@nokia.com>
  855. [Qt] Build on Windows requires bison/flex in PATH
  856. https://bugs.webkit.org/show_bug.cgi?id=96358
  857. Reviewed by Tor Arne Vestbø.
  858. Use MAKEFILE_NOOP_COMMAND instead of the \n\t trick to generate a dummy command. Otherwise
  859. the PATH prepend trick will break because it generates a command line along the lines of
  860. (set PATH="...") && with just that trailing ampersand pair.
  861. * DerivedSources.pri:
  862. 2012-09-10 Dean Jackson <dino@apple.com>
  863. [Apple] Install plist for Apple Open Source build system
  864. https://bugs.webkit.org/show_bug.cgi?id=96345
  865. Reviewed by Mark Rowe.
  866. Apple's build system requires a couple of files that describe where
  867. the 3rd party Open Source library came from, and what license it
  868. uses. These files are copied into /usr/local when the project is
  869. being installed.
  870. * ANGLE.plist: Added.
  871. * ANGLE.txt: Added.
  872. * ANGLE.xcodeproj/project.pbxproj:
  873. 2012-09-06 Andras Becsi <andras.becsi@nokia.com>
  874. [ANGLE] Fix the build with gcc 4.7
  875. https://bugs.webkit.org/show_bug.cgi?id=95989
  876. Reviewed by Csaba Osztrogonác.
  877. The build fails because of a bogus warning about the auto-generated
  878. pplval variable. Unfortunately the warning is called -Wuninitialized
  879. in gcc 4.6 and -Wmaybe-uninitialized in gcc 4.7 thus we also need to
  880. ignore unknown pragmas not to break the build with compilers that do
  881. not recognize these options.
  882. * src/compiler/preprocessor/new/ExpressionParser.y:
  883. 2012-09-06 Simon Hausmann <simon.hausmann@nokia.com>
  884. [Qt] Fix build with ANGLE on platforms that provide EGL/GLESv2
  885. https://bugs.webkit.org/show_bug.cgi?id=95965
  886. Reviewed by Tor Arne Vestbø.
  887. Add build rules to build ANGLE as a static library for the Qt port.
  888. * ANGLE.pri: Added.
  889. * ANGLE.pro: Added.
  890. * DerivedSources.pri: Added.
  891. * Target.pri: Added.
  892. 2012-08-24 Joshua Netterfield <jnetterfield@rim.com>
  893. [CSS Shaders] [ANGLE] RenameFunction::RenameFunction may store references to temporary string
  894. https://bugs.webkit.org/show_bug.cgi?id=94736
  895. http://code.google.com/p/angleproject/issues/detail?id=360
  896. Reviewed by George Staikos.
  897. When RenameFunction::RenameFunction(const TString& oldFunctionName, const TString&
  898. newFunctionName) is called from TCompiler::rewriteCSSShader(TIntermNode*), references to
  899. the temporaries oldFunctionName and newFunctionName are stored as mOldFunctionName and
  900. mNewFunctionName. This results in undefined behaviour in visitAggregate.
  901. This same patch is being applied in upstream ANGLE, and is needed for CSS Shader
  902. sanitization.
  903. * src/compiler/RenameFunction.h:
  904. (RenameFunction::visitAggregate):
  905. (RenameFunction):
  906. 2012-07-18 Kristóf Kosztyó <kkristof@inf.u-szeged.hu>
  907. [Qt] Buildfix after r122870.
  908. https://bugs.webkit.org/show_bug.cgi?id=89039
  909. Reviewed by Csaba Osztrogonác
  910. * src/compiler/preprocessor/new/MacroExpander.cpp:
  911. (pp::MacroExpander::ungetToken):
  912. 2012-07-17 Max Vujovic <mvujovic@adobe.com>
  913. Update ANGLE in WebKit
  914. https://bugs.webkit.org/show_bug.cgi?id=89039
  915. Reviewed by Dean Jackson and Mark Rowe.
  916. Update ANGLE to r1170, with the following modifications:
  917. (1) Use Bison 2.3 instead of Bison 2.4.2 to generate ExpressionParser.cpp and
  918. glslang_tab.cpp. I had to modify ExpressionParser.y to make it compatible with Bison
  919. 2.3. The changes have been contributed back to ANGLE in r1224.
  920. (2) Continue to recognize QNX as POSIX in ANGLE. This has been contributed back to ANGLE
  921. in r1223.
  922. (3) Rename ANGLE/src/compiler/preprocessor/new/Diagnostic.cpp to DiagnosticBase.cpp.
  923. Rename ANGLE/src/compiler/preprocessor/new/DirectiveHandler.cpp to DirectiveHandlerBase.cpp.
  924. With the introduction of ANGLE's new preprocessor, there were two files named Diagnostic.cpp
  925. in ANGLE under different folders. This caused problems on the QT build when their object
  926. files, both named Diagnostic.o, tried to go in the same folder. Renaming one of them to
  927. DiagnosticBase.cpp avoids this conflict. The same situation occurred with
  928. DirectiveHandler.cpp. I will work on contributing this change back to ANGLE for future
  929. updates.
  930. (4) Add the following lines to glslang.y and ExpressionParser.y:
  931. #define YYENABLE_NLS 0
  932. #define YYLTYPE_IS_TRIVIAL 1
  933. Bison 2.3 doesn't first check that these macros are defined before reading their value,
  934. which causes the QT build to fail.
  935. We work around this issue in the same way in CSSGrammar.y.
  936. I will work on contributing this change back to ANGLE.
  937. * ANGLE.xcodeproj/project.pbxproj:
  938. * include/GLES2/gl2ext.h:
  939. * include/GLSLANG/ShaderLang.h:
  940. * src/build_angle.xcodeproj/project.pbxproj:
  941. * src/common/angleutils.h:
  942. * src/common/debug.cpp:
  943. (gl):
  944. (gl::output):
  945. (gl::trace):
  946. (gl::perfActive):
  947. (gl::ScopedPerfEventHelper::ScopedPerfEventHelper):
  948. (gl::ScopedPerfEventHelper::~ScopedPerfEventHelper):
  949. * src/common/version.h:
  950. * src/compiler/BuiltInFunctionEmulator.cpp:
  951. (BuiltInFunctionEmulator::IdentifyFunction):
  952. * src/compiler/BuiltInFunctionEmulator.h:
  953. * src/compiler/Compiler.cpp:
  954. (isWebGLBasedSpec):
  955. (TCompiler::compile):
  956. (TCompiler::rewriteCSSShader):
  957. (TCompiler::enforceTimingRestrictions):
  958. (TCompiler::enforceFragmentShaderTimingRestrictions):
  959. (TCompiler::enforceVertexShaderTimingRestrictions):
  960. * src/compiler/DetectDiscontinuity.cpp: Added.
  961. (sh::DetectLoopDiscontinuity::traverse):
  962. (sh):
  963. (sh::DetectLoopDiscontinuity::visitBranch):
  964. (sh::DetectLoopDiscontinuity::visitAggregate):
  965. (sh::containsLoopDiscontinuity):
  966. (sh::DetectGradientOperation::traverse):
  967. (sh::DetectGradientOperation::visitUnary):
  968. (sh::DetectGradientOperation::visitAggregate):
  969. (sh::containsGradientOperation):
  970. * src/compiler/DetectDiscontinuity.h: Added.
  971. (sh):
  972. (DetectLoopDiscontinuity):
  973. (DetectGradientOperation):
  974. * src/compiler/Diagnostics.cpp: Added.
  975. (TDiagnostics::TDiagnostics):
  976. (TDiagnostics::~TDiagnostics):
  977. (TDiagnostics::writeInfo):
  978. (TDiagnostics::writeDebug):
  979. (TDiagnostics::print):
  980. * src/compiler/Diagnostics.h: Added.
  981. (TDiagnostics):
  982. (TDiagnostics::infoSink):
  983. * src/compiler/DirectiveHandler.cpp: Added.
  984. (getBehavior):
  985. (TDirectiveHandler::TDirectiveHandler):
  986. (TDirectiveHandler::~TDirectiveHandler):
  987. (TDirectiveHandler::handleError):
  988. (TDirectiveHandler::handlePragma):
  989. (TDirectiveHandler::handleExtension):
  990. (TDirectiveHandler::handleVersion):
  991. * src/compiler/DirectiveHandler.h: Added.
  992. (TDirectiveHandler):
  993. (TDirectiveHandler::pragma):
  994. (TDirectiveHandler::extensionBehavior):
  995. * src/compiler/ExtensionBehavior.h:
  996. (getBehaviorString):
  997. * src/compiler/Initialize.cpp:
  998. (BuiltInConstants):
  999. (TBuiltIns::initialize):
  1000. (IdentifyBuiltIns):
  1001. * src/compiler/InitializeParseContext.cpp: Added.
  1002. (InitializeParseContextIndex):
  1003. (FreeParseContextIndex):
  1004. (InitializeGlobalParseContext):
  1005. (FreeParseContext):
  1006. (GetGlobalParseContext):
  1007. * src/compiler/InitializeParseContext.h:
  1008. (TThreadParseContextRec):
  1009. * src/compiler/Intermediate.cpp:
  1010. (TIntermediate::addSelection):
  1011. * src/compiler/MapLongVariableNames.cpp:
  1012. * src/compiler/OutputHLSL.cpp:
  1013. (sh::str):
  1014. (sh::OutputHLSL::OutputHLSL):
  1015. (sh::OutputHLSL::~OutputHLSL):
  1016. (sh::OutputHLSL::output):
  1017. (sh::OutputHLSL::header):
  1018. (sh::OutputHLSL::visitBinary):
  1019. (sh::OutputHLSL::visitUnary):
  1020. (sh::OutputHLSL::visitAggregate):
  1021. (sh::OutputHLSL::visitSelection):
  1022. (sh::OutputHLSL::visitLoop):
  1023. (sh::OutputHLSL::traverseStatements):
  1024. (sh):
  1025. (sh::OutputHLSL::handleExcessiveLoop):
  1026. (sh::OutputHLSL::typeString):
  1027. (sh::OutputHLSL::addConstructor):
  1028. (sh::OutputHLSL::decorateField):
  1029. * src/compiler/OutputHLSL.h:
  1030. (sh):
  1031. (OutputHLSL):
  1032. * src/compiler/ParseHelper.cpp:
  1033. (TParseContext::parseVectorFields):
  1034. (TParseContext::parseMatrixFields):
  1035. (TParseContext::error):
  1036. (TParseContext::warning):
  1037. (TParseContext::trace):
  1038. (TParseContext::assignError):
  1039. (TParseContext::unaryOpError):
  1040. (TParseContext::binaryOpError):
  1041. (TParseContext::precisionErrorCheck):
  1042. (TParseContext::lValueErrorCheck):
  1043. (TParseContext::constErrorCheck):
  1044. (TParseContext::integerErrorCheck):
  1045. (TParseContext::globalErrorCheck):
  1046. (TParseContext::reservedErrorCheck):
  1047. (TParseContext::constructorErrorCheck):
  1048. (TParseContext::voidErrorCheck):
  1049. (TParseContext::boolErrorCheck):
  1050. (TParseContext::samplerErrorCheck):
  1051. (TParseContext::structQualifierErrorCheck):
  1052. (TParseContext::parameterSamplerErrorCheck):
  1053. (TParseContext::arraySizeErrorCheck):
  1054. (TParseContext::arrayQualifierErrorCheck):
  1055. (TParseContext::arrayTypeErrorCheck):
  1056. (TParseContext::arrayErrorCheck):
  1057. (TParseContext::arraySetMaxSize):
  1058. (TParseContext::nonInitConstErrorCheck):
  1059. (TParseContext::nonInitErrorCheck):
  1060. (TParseContext::paramErrorCheck):
  1061. (TParseContext::extensionErrorCheck):
  1062. (TParseContext::supportsExtension):
  1063. (TParseContext::handleExtensionDirective):
  1064. (TParseContext::handlePragmaDirective):
  1065. (TParseContext::findFunction):
  1066. (TParseContext::executeInitializer):
  1067. (TParseContext::constructBuiltIn):
  1068. (TParseContext::constructStruct):
  1069. (TParseContext::addConstVectorNode):
  1070. (TParseContext::addConstMatrixNode):
  1071. (TParseContext::addConstArrayNode):
  1072. (TParseContext::addConstStruct):
  1073. (TParseContext::enterStructDeclaration):
  1074. (TParseContext::structNestingErrorCheck):
  1075. (PaParseStrings):
  1076. * src/compiler/ParseHelper.h:
  1077. (TParseContext::TParseContext):
  1078. (TParseContext):
  1079. (TParseContext::infoSink):
  1080. (TParseContext::extensionBehavior):
  1081. (TParseContext::pragma):
  1082. * src/compiler/PoolAlloc.cpp:
  1083. (TAllocation::checkGuardBlock):
  1084. * src/compiler/Pragma.h: Added.
  1085. (TPragma):
  1086. (TPragma::TPragma):
  1087. * src/compiler/RenameFunction.h: Added.
  1088. (RenameFunction):
  1089. (RenameFunction::RenameFunction):
  1090. (RenameFunction::visitAggregate):
  1091. * src/compiler/ShHandle.h:
  1092. (TCompiler):
  1093. * src/compiler/ShaderLang.cpp:
  1094. (getVariableInfo):
  1095. * src/compiler/SymbolTable.cpp:
  1096. (TType::buildMangledName):
  1097. * src/compiler/TranslatorHLSL.cpp:
  1098. * src/compiler/UnfoldSelect.cpp: Removed.
  1099. * src/compiler/UnfoldSelect.h: Removed.
  1100. * src/compiler/UnfoldShortCircuit.cpp: Added.
  1101. (sh::UnfoldShortCircuit::UnfoldShortCircuit):
  1102. (sh):
  1103. (sh::UnfoldShortCircuit::traverse):
  1104. (sh::UnfoldShortCircuit::visitBinary):
  1105. (sh::UnfoldShortCircuit::visitSelection):
  1106. (sh::UnfoldShortCircuit::visitLoop):
  1107. (sh::UnfoldShortCircuit::getNextTemporaryIndex):
  1108. * src/compiler/UnfoldShortCircuit.h: Added.
  1109. (sh):
  1110. (UnfoldShortCircuit):
  1111. * src/compiler/ValidateLimitations.cpp:
  1112. * src/compiler/debug.cpp:
  1113. * src/compiler/depgraph: Added.
  1114. * src/compiler/depgraph/DependencyGraph.cpp: Added.
  1115. (TDependencyGraph::TDependencyGraph):
  1116. (TDependencyGraph::~TDependencyGraph):
  1117. (TDependencyGraph::createArgument):
  1118. (TDependencyGraph::createFunctionCall):
  1119. (TDependencyGraph::getOrCreateSymbol):
  1120. (TDependencyGraph::createSelection):
  1121. (TDependencyGraph::createLoop):
  1122. (TDependencyGraph::createLogicalOp):
  1123. (TGraphLogicalOp::getOpString):
  1124. * src/compiler/depgraph/DependencyGraph.h: Added.
  1125. (TGraphNode):
  1126. (TGraphNode::TGraphNode):
  1127. (TGraphNode::~TGraphNode):
  1128. (TGraphParentNode):
  1129. (TGraphParentNode::TGraphParentNode):
  1130. (TGraphParentNode::~TGraphParentNode):
  1131. (TGraphParentNode::addDependentNode):
  1132. (TGraphArgument):
  1133. (TGraphArgument::TGraphArgument):
  1134. (TGraphArgument::~TGraphArgument):
  1135. (TGraphArgument::getIntermFunctionCall):
  1136. (TGraphArgument::getArgumentNumber):
  1137. (TGraphFunctionCall):
  1138. (TGraphFunctionCall::TGraphFunctionCall):
  1139. (TGraphFunctionCall::~TGraphFunctionCall):
  1140. (TGraphFunctionCall::getIntermFunctionCall):
  1141. (TGraphSymbol):
  1142. (TGraphSymbol::TGraphSymbol):
  1143. (TGraphSymbol::~TGraphSymbol):
  1144. (TGraphSymbol::getIntermSymbol):
  1145. (TGraphSelection):
  1146. (TGraphSelection::TGraphSelection):
  1147. (TGraphSelection::~TGraphSelection):
  1148. (TGraphSelection::getIntermSelection):
  1149. (TGraphLoop):
  1150. (TGraphLoop::TGraphLoop):
  1151. (TGraphLoop::~TGraphLoop):
  1152. (TGraphLoop::getIntermLoop):
  1153. (TGraphLogicalOp):
  1154. (TGraphLogicalOp::TGraphLogicalOp):
  1155. (TGraphLogicalOp::~TGraphLogicalOp):
  1156. (TGraphLogicalOp::getIntermLogicalOp):
  1157. (TDependencyGraph):
  1158. (TDependencyGraph::begin):
  1159. (TDependencyGraph::end):
  1160. (TDependencyGraph::beginSamplerSymbols):
  1161. (TDependencyGraph::endSamplerSymbols):
  1162. (TDependencyGraph::beginUserDefinedFunctionCalls):
  1163. (TDependencyGraph::endUserDefinedFunctionCalls):
  1164. (TDependencyGraphTraverser):
  1165. (TDependencyGraphTraverser::TDependencyGraphTraverser):
  1166. (TDependencyGraphTraverser::visitSymbol):
  1167. (TDependencyGraphTraverser::visitArgument):
  1168. (TDependencyGraphTraverser::visitFunctionCall):
  1169. (TDependencyGraphTraverser::visitSelection):
  1170. (TDependencyGraphTraverser::visitLoop):
  1171. (TDependencyGraphTraverser::visitLogicalOp):
  1172. (TDependencyGraphTraverser::getDepth):
  1173. (TDependencyGraphTraverser::incrementDepth):
  1174. (TDependencyGraphTraverser::decrementDepth):
  1175. (TDependencyGraphTraverser::clearVisited):
  1176. (TDependencyGraphTraverser::markVisited):
  1177. (TDependencyGraphTraverser::isVisited):
  1178. * src/compiler/depgraph/DependencyGraphBuilder.cpp: Added.
  1179. (TDependencyGraphBuilder::build):
  1180. (TDependencyGraphBuilder::visitAggregate):
  1181. (TDependencyGraphBuilder::visitFunctionDefinition):
  1182. (TDependencyGraphBuilder::visitFunctionCall):
  1183. (TDependencyGraphBuilder::visitAggregateChildren):
  1184. (TDependencyGraphBuilder::visitSymbol):
  1185. (TDependencyGraphBuilder::visitBinary):
  1186. (TDependencyGraphBuilder::visitAssignment):
  1187. (TDependencyGraphBuilder::visitLogicalOp):
  1188. (TDependencyGraphBuilder::visitBinaryChildren):
  1189. (TDependencyGraphBuilder::visitSelection):
  1190. (TDependencyGraphBuilder::visitLoop):
  1191. (TDependencyGraphBuilder::connectMultipleNodesToSingleNode):
  1192. * src/compiler/depgraph/DependencyGraphBuilder.h: Added.
  1193. (TDependencyGraphBuilder):
  1194. (TNodeSetStack):
  1195. (TDependencyGraphBuilder::TNodeSetStack::TNodeSetStack):
  1196. (TDependencyGraphBuilder::TNodeSetStack::~TNodeSetStack):
  1197. (TDependencyGraphBuilder::TNodeSetStack::getTopSet):
  1198. (TDependencyGraphBuilder::TNodeSetStack::pushSet):
  1199. (TDependencyGraphBuilder::TNodeSetStack::popSet):
  1200. (TDependencyGraphBuilder::TNodeSetStack::popSetIntoNext):
  1201. (TDependencyGraphBuilder::TNodeSetStack::insertIntoTopSet):
  1202. (TDependencyGraphBuilder::TNodeSetStack::clear):
  1203. (TNodeSetMaintainer):
  1204. (TDependencyGraphBuilder::TNodeSetMaintainer::TNodeSetMaintainer):
  1205. (TDependencyGraphBuilder::TNodeSetMaintainer::~TNodeSetMaintainer):
  1206. (TNodeSetPropagatingMaintainer):
  1207. (TDependencyGraphBuilder::TNodeSetPropagatingMaintainer::TNodeSetPropagatingMaintainer):
  1208. (TDependencyGraphBuilder::TNodeSetPropagatingMaintainer::~TNodeSetPropagatingMaintainer):
  1209. (TLeftmostSymbolMaintainer):
  1210. (TDependencyGraphBuilder::TLeftmostSymbolMaintainer::TLeftmostSymbolMaintainer):
  1211. (TDependencyGraphBuilder::TLeftmostSymbolMaintainer::~TLeftmostSymbolMaintainer):
  1212. (TDependencyGraphBuilder::TDependencyGraphBuilder):
  1213. (TDependencyGraphBuilder::build):
  1214. * src/compiler/depgraph/DependencyGraphOutput.cpp: Added.
  1215. (TDependencyGraphOutput::outputIndentation):
  1216. (TDependencyGraphOutput::visitArgument):
  1217. (TDependencyGraphOutput::visitFunctionCall):
  1218. (TDependencyGraphOutput::visitSymbol):
  1219. (TDependencyGraphOutput::visitSelection):
  1220. (TDependencyGraphOutput::visitLoop):
  1221. (TDependencyGraphOutput::visitLogicalOp):
  1222. (TDependencyGraphOutput::outputAllSpanningTrees):
  1223. * src/compiler/depgraph/DependencyGraphOutput.h: Added.
  1224. (TDependencyGraphOutput):
  1225. (TDependencyGraphOutput::TDependencyGraphOutput):
  1226. * src/compiler/depgraph/DependencyGraphTraverse.cpp: Added.
  1227. (TGraphNode::traverse):
  1228. (TGraphParentNode::traverse):
  1229. (TGraphArgument::traverse):
  1230. (TGraphFunctionCall::traverse):
  1231. (TGraphSymbol::traverse):
  1232. (TGraphSelection::traverse):
  1233. (TGraphLoop::traverse):
  1234. (TGraphLogicalOp::traverse):
  1235. * src/compiler/glslang.h:
  1236. * src/compiler/glslang.l:
  1237. * src/compiler/glslang.y:
  1238. * src/compiler/glslang_lex.cpp:
  1239. (yy_buffer_state):
  1240. (yyguts_t):
  1241. (yy_get_previous_state):
  1242. (yy_try_NUL_trans):
  1243. (input):
  1244. (yyensure_buffer_stack):
  1245. (yy_scan_bytes):
  1246. (yyget_leng):
  1247. (string_input):
  1248. (yyerror):
  1249. (glslang_finalize):
  1250. (glslang_scan):
  1251. * src/compiler/glslang_tab.cpp:
  1252. * src/compiler/intermediate.h:
  1253. (TIntermAggregate::TIntermAggregate):
  1254. (TIntermAggregate::~TIntermAggregate):
  1255. (TIntermAggregate::isUserDefined):
  1256. (TIntermAggregate):
  1257. (TIntermTraverser::~TIntermTraverser):
  1258. * src/compiler/osinclude.h:
  1259. * src/compiler/preprocessor/atom.c:
  1260. (FindHashLoc):
  1261. (PrintAtomTable):
  1262. * src/compiler/preprocessor/cpp.c:
  1263. (CPPpragma):
  1264. (readCPPline):
  1265. (PredefineIntMacro):
  1266. (MacroExpand):
  1267. * src/compiler/preprocessor/cpp.h:
  1268. * src/compiler/preprocessor/memory.h:
  1269. * src/compiler/preprocessor/new: Added properties allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs, allow-tabs and allow-tabs.
  1270. * src/compiler/preprocessor/new/Context.cpp: Removed.
  1271. * src/compiler/preprocessor/new/Context.h: Removed.
  1272. * src/compiler/preprocessor/new/Diagnostics.h: Added.
  1273. (pp):
  1274. (Diagnostics):
  1275. * src/compiler/preprocessor/new/DiagnosticsBase.cpp: Added.
  1276. (pp):
  1277. (pp::Diagnostics::~Diagnostics):
  1278. (pp::Diagnostics::report):
  1279. (pp::Diagnostics::severity):
  1280. * src/compiler/preprocessor/new/DirectiveHandler.h: Added.
  1281. (pp):
  1282. (DirectiveHandler):
  1283. * src/compiler/preprocessor/new/DirectiveHandlerBase.cpp: Added.
  1284. (pp):
  1285. (pp::DirectiveHandler::~DirectiveHandler):
  1286. * src/compiler/preprocessor/new/DirectiveParser.cpp: Added.
  1287. (getDirective):
  1288. (isConditionalDirective):
  1289. (isEOD):
  1290. (skipUntilEOD):
  1291. (isMacroNameReserved):
  1292. (isMacroPredefined):
  1293. (pp):
  1294. (DefinedParser):
  1295. (pp::DefinedParser::DefinedParser):
  1296. (pp::DefinedParser::lex):
  1297. (pp::DirectiveParser::DirectiveParser):
  1298. (pp::DirectiveParser::lex):
  1299. (pp::DirectiveParser::parseDirective):
  1300. (pp::DirectiveParser::parseDefine):
  1301. (pp::DirectiveParser::parseUndef):
  1302. (pp::DirectiveParser::parseIf):
  1303. (pp::DirectiveParser::parseIfdef):
  1304. (pp::DirectiveParser::parseIfndef):
  1305. (pp::DirectiveParser::parseElse):
  1306. (pp::DirectiveParser::parseElif):
  1307. (pp::DirectiveParser::parseEndif):
  1308. (pp::DirectiveParser::parseError):
  1309. (pp::DirectiveParser::parsePragma):
  1310. (pp::DirectiveParser::parseExtension):
  1311. (pp::DirectiveParser::parseVersion):
  1312. (pp::DirectiveParser::parseLine):
  1313. (pp::DirectiveParser::skipping):
  1314. (pp::DirectiveParser::parseConditionalIf):
  1315. (pp::DirectiveParser::parseExpressionIf):
  1316. (pp::DirectiveParser::parseExpressionIfdef):
  1317. * src/compiler/preprocessor/new/DirectiveParser.h: Added.
  1318. (pp):
  1319. (DirectiveParser):
  1320. (ConditionalBlock):
  1321. (pp::DirectiveParser::ConditionalBlock::ConditionalBlock):
  1322. * src/compiler/preprocessor/new/ExpressionParser.cpp: Added.
  1323. (yysyntax_error):
  1324. (yylex):
  1325. (yyerror):
  1326. (pp):
  1327. (pp::ExpressionParser::ExpressionParser):
  1328. (pp::ExpressionParser::parse):
  1329. * src/compiler/preprocessor/new/ExpressionParser.h: Added.
  1330. (pp):
  1331. (ExpressionParser):
  1332. * src/compiler/preprocessor/new/ExpressionParser.y: Added.
  1333. * src/compiler/preprocessor/new/Input.cpp: Added property allow-tabs.
  1334. (pp::Input::Input):
  1335. (pp::Input::read):
  1336. * src/compiler/preprocessor/new/Input.h: Added property allow-tabs.
  1337. (pp):
  1338. (Input):
  1339. (pp::Input::count):
  1340. (pp::Input::string):
  1341. (pp::Input::length):
  1342. (Location):
  1343. (pp::Input::Location::Location):
  1344. (pp::Input::readLoc):
  1345. * src/compiler/preprocessor/new/Lexer.cpp: Added.
  1346. (pp):
  1347. (pp::Lexer::~Lexer):
  1348. * src/compiler/preprocessor/new/Lexer.h: Added.
  1349. (pp):
  1350. (Lexer):
  1351. * src/compiler/preprocessor/new/Macro.cpp: Added property allow-tabs.
  1352. (pp::Macro::equals):
  1353. * src/compiler/preprocessor/new/Macro.h: Added property allow-tabs.
  1354. (pp):
  1355. (pp::Macro::Macro):
  1356. (Macro):
  1357. * src/compiler/preprocessor/new/MacroExpander.cpp: Added.
  1358. (pp):
  1359. (TokenLexer):
  1360. (pp::TokenLexer::TokenLexer):
  1361. (pp::TokenLexer::lex):
  1362. (pp::MacroExpander::MacroExpander):
  1363. (pp::MacroExpander::~MacroExpander):
  1364. (pp::MacroExpander::lex):
  1365. (pp::MacroExpander::getToken):
  1366. (pp::MacroExpander::ungetToken):
  1367. (pp::MacroExpander::isNextTokenLeftParen):
  1368. (pp::MacroExpander::pushMacro):
  1369. (pp::MacroExpander::popMacro):
  1370. (pp::MacroExpander::expandMacro):
  1371. (pp::MacroExpander::collectMacroArgs):
  1372. (pp::MacroExpander::replaceMacroParams):
  1373. * src/compiler/preprocessor/new/MacroExpander.h: Added.
  1374. (pp):
  1375. (MacroExpander):
  1376. (MacroContext):
  1377. (pp::MacroExpander::MacroContext::MacroContext):
  1378. (pp::MacroExpander::MacroContext::empty):
  1379. (pp::MacroExpander::MacroContext::get):
  1380. (pp::MacroExpander::MacroContext::unget):
  1381. * src/compiler/preprocessor/new/Preprocessor.cpp: Added property allow-tabs.
  1382. (PreprocessorImpl):
  1383. (pp::PreprocessorImpl::PreprocessorImpl):
  1384. (pp):
  1385. (pp::Preprocessor::Preprocessor):
  1386. (pp::Preprocessor::~Preprocessor):
  1387. (pp::Preprocessor::init):
  1388. (pp::Preprocessor::predefineMacro):
  1389. (pp::Preprocessor::lex):
  1390. * src/compiler/preprocessor/new/Preprocessor.h: Added property allow-tabs.
  1391. (pp):
  1392. (Preprocessor):
  1393. * src/compiler/preprocessor/new/SourceLocation.h: Added.
  1394. (pp):
  1395. (pp::SourceLocation::SourceLocation):
  1396. (SourceLocation):
  1397. (pp::SourceLocation::equals):
  1398. (pp::operator==):
  1399. (pp::operator!=):
  1400. * src/compiler/preprocessor/new/Token.cpp: Added property allow-tabs.
  1401. (pp::Token::reset):
  1402. (pp::Token::equals):
  1403. (pp::Token::setAtStartOfLine):
  1404. (pp::Token::setHasLeadingSpace):
  1405. (pp):
  1406. (pp::Token::setExpansionDisabled):
  1407. (pp::operator<<):
  1408. * src/compiler/preprocessor/new/Token.h: Added property allow-tabs.
  1409. (pp::Token::Token):
  1410. (Token):
  1411. (pp::Token::atStartOfLine):
  1412. (pp::Token::hasLeadingSpace):
  1413. (pp::Token::expansionDisabled):
  1414. (pp::operator==):
  1415. (pp):
  1416. (pp::operator!=):
  1417. * src/compiler/preprocessor/new/Tokenizer.cpp: Added.
  1418. (yy_buffer_state):
  1419. (yy_trans_info):
  1420. (yyguts_t):
  1421. (yy_get_previous_state):
  1422. (yy_try_NUL_trans):
  1423. (input):
  1424. (pprestart):
  1425. (pp_switch_to_buffer):
  1426. (pp_load_buffer_state):
  1427. (pp_create_buffer):
  1428. (pp_delete_buffer):
  1429. (pp_init_buffer):
  1430. (pp_flush_buffer):
  1431. (pppush_buffer_state):
  1432. (pppop_buffer_state):
  1433. (ppensure_buffer_stack):
  1434. (pp_scan_buffer):
  1435. (pp_scan_string):
  1436. (pp_scan_bytes):
  1437. (yy_fatal_error):
  1438. (ppget_extra):
  1439. (ppget_lineno):
  1440. (ppget_column):
  1441. (ppget_in):
  1442. (ppget_out):
  1443. (ppget_leng):
  1444. (ppget_text):
  1445. (ppset_extra):
  1446. (ppset_lineno):
  1447. (ppset_column):
  1448. (ppset_in):
  1449. (ppset_out):
  1450. (ppget_debug):
  1451. (ppset_debug):
  1452. (ppget_lval):
  1453. (ppset_lval):
  1454. (ppget_lloc):
  1455. (ppset_lloc):
  1456. (pplex_init):
  1457. (pplex_init_extra):
  1458. (yy_init_globals):
  1459. (pplex_destroy):
  1460. (yy_flex_strncpy):
  1461. (yy_flex_strlen):
  1462. (ppalloc):
  1463. (pprealloc):
  1464. (ppfree):
  1465. (pp):
  1466. (pp::Tokenizer::Tokenizer):
  1467. (pp::Tokenizer::~Tokenizer):
  1468. (pp::Tokenizer::init):
  1469. (pp::Tokenizer::setFileNumber):
  1470. (pp::Tokenizer::setLineNumber):
  1471. (pp::Tokenizer::lex):
  1472. (pp::Tokenizer::initScanner):
  1473. (pp::Tokenizer::destroyScanner):
  1474. * src/compiler/preprocessor/new/Tokenizer.h: Added.
  1475. (pp):
  1476. (Tokenizer):
  1477. (Context):
  1478. * src/compiler/preprocessor/new/Tokenizer.l: Added.
  1479. * src/compiler/preprocessor/new/generate_parser.sh: Added property allow-tabs.
  1480. * src/compiler/preprocessor/new/pp.l: Removed.
  1481. * src/compiler/preprocessor/new/pp.y: Removed.
  1482. * src/compiler/preprocessor/new/pp_lex.cpp: Removed.
  1483. * src/compiler/preprocessor/new/pp_tab.cpp: Removed.
  1484. * src/compiler/preprocessor/new/pp_tab.h: Removed.
  1485. * src/compiler/preprocessor/new/pp_utils.h: Added.
  1486. * src/compiler/preprocessor/new/preprocessor.vcproj: Added.
  1487. * src/compiler/preprocessor/new/stl_utils.h: Removed.
  1488. * src/compiler/preprocessor/new/token_type.h: Removed.
  1489. * src/compiler/preprocessor/preprocess.h:
  1490. * src/compiler/preprocessor/scanner.c:
  1491. (InitScannerInput):
  1492. * src/compiler/preprocessor/scanner.h:
  1493. * src/compiler/preprocessor/symbols.h:
  1494. * src/compiler/preprocessor/tokens.c:
  1495. (ReadToken):
  1496. (DumpTokenStream):
  1497. * src/compiler/preprocessor/tokens.h:
  1498. * src/compiler/timing: Added.
  1499. * src/compiler/timing/RestrictFragmentShaderTiming.cpp: Added.
  1500. (RestrictFragmentShaderTiming::RestrictFragmentShaderTiming):
  1501. (RestrictFragmentShaderTiming::enforceRestrictions):
  1502. (RestrictFragmentShaderTiming::validateUserDefinedFunctionCallUsage):
  1503. (RestrictFragmentShaderTiming::beginError):
  1504. (RestrictFragmentShaderTiming::isSamplingOp):
  1505. (RestrictFragmentShaderTiming::visitArgument):
  1506. (RestrictFragmentShaderTiming::visitSelection):
  1507. (RestrictFragmentShaderTiming::visitLoop):
  1508. (RestrictFragmentShaderTiming::visitLogicalOp):
  1509. * src/compiler/timing/RestrictFragmentShaderTiming.h: Added.
  1510. (RestrictFragmentShaderTiming):
  1511. (RestrictFragmentShaderTiming::numErrors):
  1512. * src/compiler/timing/RestrictVertexShaderTiming.cpp: Added.
  1513. (RestrictVertexShaderTiming::visitSymbol):
  1514. * src/compiler/timing/RestrictVertexShaderTiming.h: Added.
  1515. (RestrictVertexShaderTiming):
  1516. (RestrictVertexShaderTiming::RestrictVertexShaderTiming):
  1517. (RestrictVertexShaderTiming::enforceRestrictions):
  1518. (RestrictVertexShaderTiming::numErrors):
  1519. * src/libEGL/Display.cpp:
  1520. (egl):
  1521. (egl::Display::getDepthTextureSupport):
  1522. (egl::Display::getTexturePool):
  1523. * src/libEGL/Display.h:
  1524. (Display):
  1525. * src/libEGL/Surface.cpp:
  1526. (egl::Surface::Surface):
  1527. (egl::Surface::release):
  1528. (egl::Surface::resetSwapChain):
  1529. (egl::Surface::swapRect):
  1530. (egl):
  1531. (egl::Surface::swap):
  1532. (egl::Surface::postSubBuffer):
  1533. * src/libEGL/Surface.h:
  1534. (Surface):
  1535. * src/libEGL/libEGL.cpp:
  1536. * src/libGLESv2/Context.cpp:
  1537. (gl::Context::makeCurrent):
  1538. (gl::Context::markDxUniformsDirty):
  1539. (gl):
  1540. (gl::Context::getIntegerv):
  1541. (gl::Context::getQueryParameterInfo):
  1542. (gl::Context::applyRenderTarget):
  1543. (gl::Context::applyState):
  1544. (gl::Context::applyShaders):
  1545. (gl::Context::applyTextures):
  1546. (gl::Context::readPixels):
  1547. (gl::Context::clear):
  1548. (gl::Context::drawArrays):
  1549. (gl::Context::drawElements):
  1550. (gl::Context::supportsDepthTextures):
  1551. (gl::Context::initExtensionString):
  1552. (gl::Context::blitFramebuffer):
  1553. (gl::VertexDeclarationCache::applyDeclaration):
  1554. * src/libGLESv2/Context.h:
  1555. (Context):
  1556. * src/libGLESv2/Framebuffer.cpp:
  1557. (gl::Framebuffer::~Framebuffer):
  1558. (gl):
  1559. (gl::Framebuffer::getNullColorbuffer):
  1560. (gl::Framebuffer::completeness):
  1561. * src/libGLESv2/Framebuffer.h:
  1562. (Framebuffer):
  1563. * src/libGLESv2/Program.cpp:
  1564. (gl):
  1565. (gl::AttributeBindings::AttributeBindings):
  1566. (gl::AttributeBindings::~AttributeBindings):
  1567. (gl::InfoLog::InfoLog):
  1568. (gl::InfoLog::~InfoLog):
  1569. (gl::InfoLog::getLength):
  1570. (gl::InfoLog::getLog):
  1571. (gl::InfoLog::appendSanitized):
  1572. (gl::InfoLog::append):
  1573. (gl::InfoLog::reset):
  1574. (gl::Program::Program):
  1575. (gl::Program::~Program):
  1576. (gl::Program::attachShader):
  1577. (gl::Program::detachShader):
  1578. (gl::Program::getAttachedShadersCount):
  1579. (gl::AttributeBindings::bindAttributeLocation):
  1580. (gl::Program::bindAttributeLocation):
  1581. (gl::Program::link):
  1582. (gl::AttributeBindings::getAttributeBinding):
  1583. (gl::Program::unlink):
  1584. (gl::Program::getProgramBinary):
  1585. (gl::Program::setProgramBinary):
  1586. (gl::Program::getInfoLogLength):
  1587. (gl::Program::getInfoLog):
  1588. (gl::Program::getActiveAttribute):
  1589. (gl::Program::getActiveAttributeCount):
  1590. (gl::Program::getActiveAttributeMaxLength):
  1591. (gl::Program::getActiveUniform):
  1592. (gl::Program::getActiveUniformCount):
  1593. (gl::Program::getActiveUniformMaxLength):
  1594. (gl::Program::validate):
  1595. (gl::Program::isValidated):
  1596. * src/libGLESv2/Program.h:
  1597. (gl):
  1598. (AttributeBindings):
  1599. (InfoLog):
  1600. (Program):
  1601. * src/libGLESv2/ProgramBinary.cpp: Added.
  1602. (gl::str):
  1603. (gl):
  1604. (gl::Uniform::Uniform):
  1605. (gl::Uniform::~Uniform):
  1606. (gl::Uniform::isArray):
  1607. (gl::UniformLocation::UniformLocation):
  1608. (gl::ProgramBinary::ProgramBinary):
  1609. (gl::ProgramBinary::~ProgramBinary):
  1610. (gl::ProgramBinary::getPixelShader):
  1611. (gl::ProgramBinary::getVertexShader):
  1612. (gl::ProgramBinary::getAttributeLocation):
  1613. (gl::ProgramBinary::getSemanticIndex):
  1614. (gl::ProgramBinary::getUsedSamplerRange):
  1615. (gl::ProgramBinary::getSamplerMapping):
  1616. (gl::ProgramBinary::getSamplerTextureType):
  1617. (gl::ProgramBinary::getUniformLocation):
  1618. (gl::ProgramBinary::setUniform1fv):
  1619. (gl::ProgramBinary::setUniform2fv):
  1620. (gl::ProgramBinary::setUniform3fv):
  1621. (gl::ProgramBinary::setUniform4fv):
  1622. (gl::transposeMatrix):
  1623. (gl::ProgramBinary::setUniformMatrix2fv):
  1624. (gl::ProgramBinary::setUniformMatrix3fv):
  1625. (gl::ProgramBinary::setUniformMatrix4fv):
  1626. (gl::ProgramBinary::setUniform1iv):
  1627. (gl::ProgramBinary::setUniform2iv):
  1628. (gl::ProgramBinary::setUniform3iv):
  1629. (gl::ProgramBinary::setUniform4iv):
  1630. (gl::ProgramBinary::getUniformfv):
  1631. (gl::ProgramBinary::getUniformiv):
  1632. (gl::ProgramBinary::dirtyAllUniforms):
  1633. (gl::ProgramBinary::applyUniforms):
  1634. (gl::ProgramBinary::compileToBinary):
  1635. (gl::ProgramBinary::packVaryings):
  1636. (gl::ProgramBinary::linkVaryings):
  1637. (gl::ProgramBinary::link):
  1638. (gl::ProgramBinary::linkAttributes):
  1639. (gl::ProgramBinary::linkUniforms):
  1640. (gl::ProgramBinary::defineUniform):
  1641. (gl::ProgramBinary::createUniform):
  1642. (gl::ProgramBinary::decorateAttribute):
  1643. (gl::ProgramBinary::undecorateUniform):
  1644. (gl::ProgramBinary::applyUniformnbv):
  1645. (gl::ProgramBinary::applyUniformnfv):
  1646. (gl::ProgramBinary::applyUniform1iv):
  1647. (gl::ProgramBinary::applyUniform2iv):
  1648. (gl::ProgramBinary::applyUniform3iv):
  1649. (gl::ProgramBinary::applyUniform4iv):
  1650. (gl::ProgramBinary::applyUniformniv):
  1651. (gl::ProgramBinary::isValidated):
  1652. (gl::ProgramBinary::getActiveAttribute):
  1653. (gl::ProgramBinary::getActiveAttributeCount):
  1654. (gl::ProgramBinary::getActiveAttributeMaxLength):
  1655. (gl::ProgramBinary::getActiveUniform):
  1656. (gl::ProgramBinary::getActiveUniformCount):
  1657. (gl::ProgramBinary::getActiveUniformMaxLength):
  1658. (gl::ProgramBinary::validate):
  1659. (gl::ProgramBinary::validateSamplers):
  1660. (gl::ProgramBinary::getDxDepthRangeLocation):
  1661. (gl::ProgramBinary::getDxDepthLocation):
  1662. (gl::ProgramBinary::getDxCoordLocation):
  1663. (gl::ProgramBinary::getDxHalfPixelSizeLocation):
  1664. (gl::ProgramBinary::getDxFrontCCWLocation):
  1665. (gl::ProgramBinary::getDxPointsOrLinesLocation):
  1666. * src/libGLESv2/ProgramBinary.h: Added.
  1667. (gl):
  1668. (Uniform):
  1669. (gl::Uniform::RegisterInfo::RegisterInfo):
  1670. (RegisterInfo):
  1671. (gl::Uniform::RegisterInfo::set):
  1672. (UniformLocation):
  1673. (ProgramBinary):
  1674. (Sampler):
  1675. * src/libGLESv2/Renderbuffer.cpp:
  1676. (gl):
  1677. (gl::RenderbufferTexture2D::RenderbufferTexture2D):
  1678. (gl::RenderbufferTexture2D::~RenderbufferTexture2D):
  1679. (gl::RenderbufferTexture2D::addProxyRef):
  1680. (gl::RenderbufferTexture2D::releaseProxy):
  1681. (gl::RenderbufferTexture2D::getRenderTarget):
  1682. (gl::RenderbufferTexture2D::getDepthStencil):
  1683. (gl::RenderbufferTexture2D::getWidth):
  1684. (gl::RenderbufferTexture2D::getHeight):
  1685. (gl::RenderbufferTexture2D::getInternalFormat):
  1686. (gl::RenderbufferTexture2D::getD3DFormat):
  1687. (gl::RenderbufferTexture2D::getSamples):
  1688. (gl::RenderbufferTexture2D::getSerial):
  1689. (gl::RenderbufferTextureCubeMap::RenderbufferTextureCubeMap):
  1690. (gl::RenderbufferTextureCubeMap::~RenderbufferTextureCubeMap):
  1691. (gl::RenderbufferTextureCubeMap::addProxyRef):
  1692. (gl::RenderbufferTextureCubeMap::releaseProxy):
  1693. (gl::RenderbufferTextureCubeMap::getRenderTarget):
  1694. (gl::RenderbufferTextureCubeMap::getDepthStencil):
  1695. (gl::RenderbufferTextureCubeMap::getWidth):
  1696. (gl::RenderbufferTextureCubeMap::getHeight):
  1697. (gl::RenderbufferTextureCubeMap::getInternalFormat):
  1698. (gl::RenderbufferTextureCubeMap::getD3DFormat):
  1699. (gl::RenderbufferTextureCubeMap::getSamples):
  1700. (gl::RenderbufferTextureCubeMap::getSerial):
  1701. (gl::DepthStencilbuffer::getDepthStencil):
  1702. * src/libGLESv2/Renderbuffer.h:
  1703. (gl):
  1704. (RenderbufferTexture2D):
  1705. (RenderbufferTextureCubeMap):
  1706. * src/libGLESv2/Shader.cpp:
  1707. (gl::Shader::getInfoLog):
  1708. (gl::Shader::getSourceImpl):
  1709. * src/libGLESv2/Shader.h:
  1710. (Shader):
  1711. (VertexShader):
  1712. * src/libGLESv2/Texture.cpp:
  1713. (gl::ConvertTextureFormatType):
  1714. (gl::IsTextureFormatRenderable):
  1715. (gl::GetTextureUsage):
  1716. (gl):
  1717. (gl::Image::createSurface):
  1718. (gl::Image::updateSurface):
  1719. (gl::Image::loadData):
  1720. (gl::Image::loadAlphaData):
  1721. (gl::Image::loadAlphaDataSSE2):
  1722. (gl::Image::loadAlphaFloatData):
  1723. (gl::Image::loadAlphaHalfFloatData):
  1724. (gl::Image::loadLuminanceData):
  1725. (gl::Image::loadLuminanceFloatData):
  1726. (gl::Image::loadLuminanceHalfFloatData):
  1727. (gl::Image::loadLuminanceAlphaData):
  1728. (gl::Image::loadLuminanceAlphaFloatData):
  1729. (gl::Image::loadLuminanceAlphaHalfFloatData):
  1730. (gl::Image::loadRGBUByteData):
  1731. (gl::Image::loadRGB565Data):
  1732. (gl::Image::loadRGBFloatData):
  1733. (gl::Image::loadRGBHalfFloatData):
  1734. (gl::Image::loadRGBAUByteDataSSE2):
  1735. (gl::Image::loadRGBAUByteData):
  1736. (gl::Image::loadRGBA4444Data):
  1737. (gl::Image::loadRGBA5551Data):
  1738. (gl::Image::loadRGBAFloatData):
  1739. (gl::Image::loadRGBAHalfFloatData):
  1740. (gl::Image::loadBGRAData):
  1741. (gl::Image::loadCompressedData):
  1742. (gl::Image::copy):
  1743. (gl::TextureStorage::TextureStorage):
  1744. (gl::TextureStorage::isRenderTarget):
  1745. (gl::TextureStorage::getUsage):
  1746. (gl::Texture::setImage):
  1747. (gl::Texture::setCompressedImage):
  1748. (gl::Texture::subImage):
  1749. (gl::Texture::subImageCompressed):
  1750. (gl::TextureStorage2D::TextureStorage2D):
  1751. (gl::Texture2D::getInternalFormat):
  1752. (gl::Texture2D::getD3DFormat):
  1753. (gl::Texture2D::copyImage):
  1754. (gl::Texture2D::copySubImage):
  1755. (gl::Texture2D::storage):
  1756. (gl::Texture2D::isSamplerComplete):
  1757. (gl::Texture2D::isCompressed):
  1758. (gl::Texture2D::isDepth):
  1759. (gl::Texture2D::createTexture):
  1760. (gl::Texture2D::convertToRenderTarget):
  1761. (gl::Texture2D::getRenderbuffer):
  1762. (gl::Texture2D::getRenderTarget):
  1763. (gl::Texture2D::getDepthStencil):
  1764. (gl::TextureStorageCubeMap::TextureStorageCubeMap):
  1765. (gl::TextureCubeMap::getWidth):
  1766. (gl::TextureCubeMap::getHeight):
  1767. (gl::TextureCubeMap::getInternalFormat):
  1768. (gl::TextureCubeMap::getD3DFormat):
  1769. (gl::TextureCubeMap::isSamplerComplete):
  1770. (gl::TextureCubeMap::isCompressed):
  1771. (gl::TextureCubeMap::createTexture):
  1772. (gl::TextureCubeMap::convertToRenderTarget):
  1773. (gl::TextureCubeMap::copyImage):
  1774. (gl::TextureCubeMap::copySubImage):
  1775. (gl::TextureCubeMap::storage):
  1776. (gl::TextureCubeMap::getRenderbuffer):
  1777. * src/libGLESv2/Texture.h:
  1778. (Image):
  1779. (TextureStorage):
  1780. (Texture):
  1781. (TextureStorage2D):
  1782. (Texture2D):
  1783. (TextureStorageCubeMap):
  1784. (TextureCubeMap):
  1785. * src/libGLESv2/VertexDataManager.cpp:
  1786. (gl::VertexDataManager::prepareVertexData):
  1787. * src/libGLESv2/libGLESv2.cpp:
  1788. (checkTextureFormatType):
  1789. (validateSubImageParams2D):
  1790. (validateSubImageParamsCube):
  1791. * src/libGLESv2/libGLESv2.vcproj:
  1792. * src/libGLESv2/mathutil.h:
  1793. (gl):
  1794. * src/libGLESv2/utilities.cpp:
  1795. (gl::IsDepthTexture):
  1796. (gl):
  1797. (gl::ComputePixelSize):
  1798. (gl::ExtractFormat):
  1799. (gl::ExtractType):
  1800. (es2dx::ConvertCubeFace):
  1801. (es2dx::ConvertRenderbufferFormat):
  1802. (dx2es::GetStencilSize):
  1803. (dx2es::GetDepthSize):
  1804. (dx2es::IsDepthTextureFormat):
  1805. (dx2es):
  1806. (dx2es::IsStencilTextureFormat):
  1807. (dx2es::ConvertDepthStencilFormat):
  1808. * src/libGLESv2/utilities.h:
  1809. (gl):
  1810. (dx2es):
  1811. 2012-07-11 Mark Rowe <mrowe@apple.com>
  1812. <http://webkit.org/b/91024> Build against the latest SDK when targeting older OS X versions.
  1813. Reviewed by Dan Bernstein.
  1814. The deployment target is already set to the version that we're targeting, and it's that setting
  1815. which determines which functionality from the SDK is available to us.
  1816. * Configurations/Base.xcconfig:
  1817. 2012-06-22 Joshua Netterfield <jnetterfield@rim.com>
  1818. [BlackBerry] Sanitize GLSL code using ANGLE.
  1819. BlackBerry port does not sanitize GLSL code with ANGLE
  1820. https://bugs.webkit.org/show_bug.cgi?id=89583
  1821. Reviewed by Rob Buis.
  1822. * src/compiler/osinclude.h: Recognises QNX as POSIX
  1823. 2012-03-26 Dean Jackson <dino@apple.com>
  1824. Update ANGLE in WebKit
  1825. https://bugs.webkit.org/show_bug.cgi?id=81717
  1826. Reviewed by Kenneth Russell.
  1827. Update angleproject to r1009. Synced the source directory
  1828. between the angle repository and WebKit. Ran the OS X Lion
  1829. version of Bison over the glslang.l input which generates
  1830. a slightly different output than angle provided.
  1831. * include/EGL/eglext.h:
  1832. * include/GLES2/gl2ext.h:
  1833. * include/GLSLANG/ShaderLang.h:
  1834. * src/common/RefCountObject.cpp: Renamed from Source/ThirdParty/ANGLE/src/libGLESv2/RefCountObject.cpp.
  1835. (RefCountObject::RefCountObject):
  1836. (RefCountObject::~RefCountObject):
  1837. (RefCountObject::addRef):
  1838. (RefCountObject::release):
  1839. (RefCountObjectBindingPointer::set):
  1840. * src/common/RefCountObject.h: Renamed from Source/ThirdParty/ANGLE/src/libGLESv2/RefCountObject.h.
  1841. (RefCountObject):
  1842. (RefCountObject::id):
  1843. (RefCountObjectBindingPointer):
  1844. (RefCountObjectBindingPointer::RefCountObjectBindingPointer):
  1845. (RefCountObjectBindingPointer::~RefCountObjectBindingPointer):
  1846. (RefCountObjectBindingPointer::get):
  1847. (RefCountObjectBindingPointer::id):
  1848. (RefCountObjectBindingPointer::operator ! ):
  1849. (BindingPointer):
  1850. (BindingPointer::set):
  1851. (BindingPointer::get):
  1852. (BindingPointer::operator -> ):
  1853. * src/common/debug.cpp:
  1854. (gl::output):
  1855. * src/common/version.h:
  1856. * src/compiler/BaseTypes.h:
  1857. * src/compiler/Compiler.cpp:
  1858. (TCompiler::TCompiler):
  1859. (TCompiler::~TCompiler):
  1860. (TCompiler::mapLongVariableNames):
  1861. * src/compiler/ConstantUnion.h:
  1862. (ConstantUnion::ConstantUnion):
  1863. (ConstantUnion::operator==):
  1864. (ConstantUnion::operator>):
  1865. (ConstantUnion::operator<):
  1866. * src/compiler/Intermediate.cpp:
  1867. (TIntermConstantUnion::fold):
  1868. * src/compiler/MapLongVariableNames.cpp:
  1869. (LongNameMap::LongNameMap):
  1870. (LongNameMap::~LongNameMap):
  1871. (LongNameMap::GetInstance):
  1872. (LongNameMap::Release):
  1873. (LongNameMap::Find):
  1874. (LongNameMap::Insert):
  1875. (LongNameMap::Size):
  1876. (MapLongVariableNames::MapLongVariableNames):
  1877. (MapLongVariableNames::visitSymbol):
  1878. (MapLongVariableNames::mapGlobalLongName):
  1879. * src/compiler/MapLongVariableNames.h:
  1880. (LongNameMap):
  1881. (MapLongVariableNames):
  1882. * src/compiler/OutputHLSL.cpp:
  1883. (sh::OutputHLSL::OutputHLSL):
  1884. (sh::OutputHLSL::header):
  1885. (sh::OutputHLSL::visitSymbol):
  1886. (sh::OutputHLSL::visitUnary):
  1887. (sh::OutputHLSL::visitAggregate):
  1888. (sh::OutputHLSL::visitLoop):
  1889. (sh::OutputHLSL::handleExcessiveLoop):
  1890. (sh::OutputHLSL::typeString):
  1891. (sh::OutputHLSL::addConstructor):
  1892. (sh::OutputHLSL::decorateUniform):
  1893. * src/compiler/OutputHLSL.h:
  1894. (OutputHLSL):
  1895. * src/compiler/PoolAlloc.cpp:
  1896. (TAllocation::checkGuardBlock):
  1897. * src/compiler/ShHandle.h:
  1898. (TCompiler):
  1899. * src/compiler/SymbolTable.cpp:
  1900. * src/compiler/SymbolTable.h:
  1901. (TSymbolTable):
  1902. (TSymbolTable::getOuterLevel):
  1903. * src/compiler/VariableInfo.cpp:
  1904. (getVariableDataType):
  1905. * src/compiler/glslang.l:
  1906. * src/compiler/glslang.y:
  1907. * src/compiler/glslang_lex.cpp:
  1908. (yy_buffer_state):
  1909. (yyguts_t):
  1910. (input):
  1911. (yyensure_buffer_stack):
  1912. (yy_scan_bytes):
  1913. (yyget_leng):
  1914. * src/compiler/glslang_tab.cpp:
  1915. * src/compiler/osinclude.h:
  1916. * src/compiler/preprocessor/cpp.c:
  1917. * src/compiler/preprocessor/memory.c:
  1918. * src/compiler/preprocessor/new/Context.cpp: Added.
  1919. (isMacroNameReserved):
  1920. (pp):
  1921. (pp::Context::Context):
  1922. (pp::Context::~Context):
  1923. (pp::Context::init):
  1924. (pp::Context::process):
  1925. (pp::Context::defineMacro):
  1926. (pp::Context::undefineMacro):
  1927. (pp::Context::isMacroDefined):
  1928. (pp::Context::reset):
  1929. (pp::Context::defineBuiltInMacro):
  1930. * src/compiler/preprocessor/new/Context.h: Added.
  1931. (pp):
  1932. (Context):
  1933. (pp::Context::lexer):
  1934. (pp::Context::output):
  1935. * src/compiler/preprocessor/new/Input.cpp: Added.
  1936. (pp):
  1937. (pp::Input::Input):
  1938. (pp::Input::eof):
  1939. (pp::Input::read):
  1940. (pp::Input::getChar):
  1941. (pp::Input::peekChar):
  1942. (pp::Input::switchToNextString):
  1943. (pp::Input::isStringEmpty):
  1944. (pp::Input::stringLength):
  1945. * src/compiler/preprocessor/new/Input.h: Added.
  1946. (pp):
  1947. (Input):
  1948. (pp::Input::error):
  1949. (pp::Input::stringIndex):
  1950. * src/compiler/preprocessor/new/Macro.cpp: Added.
  1951. (pp):
  1952. (pp::Macro::Macro):
  1953. (pp::Macro::~Macro):
  1954. * src/compiler/preprocessor/new/Macro.h: Added.
  1955. (pp):
  1956. (Macro):
  1957. (pp::Macro::type):
  1958. (pp::Macro::identifier):
  1959. (pp::Macro::parameters):
  1960. (pp::Macro::replacements):
  1961. * src/compiler/preprocessor/new/Preprocessor.cpp: Added.
  1962. (pp):
  1963. (pp::Preprocessor::Preprocessor):
  1964. (pp::Preprocessor::~Preprocessor):
  1965. (pp::Preprocessor::init):
  1966. (pp::Preprocessor::process):
  1967. (pp::Preprocessor::reset):
  1968. * src/compiler/preprocessor/new/Preprocessor.h: Added.
  1969. (pp):
  1970. (Preprocessor):
  1971. (pp::Preprocessor::begin):
  1972. (pp::Preprocessor::end):
  1973. * src/compiler/preprocessor/new/Token.cpp: Added.
  1974. (pp):
  1975. (pp::Token::encodeLocation):
  1976. (pp::Token::decodeLocation):
  1977. (pp::Token::Token):
  1978. (pp::Token::~Token):
  1979. (pp::operator<<):
  1980. * src/compiler/preprocessor/new/Token.h: Added.
  1981. (pp):
  1982. (Token):
  1983. (pp::Token::location):
  1984. (pp::Token::type):
  1985. (pp::Token::value):
  1986. * src/compiler/preprocessor/new/generate_parser.sh: Added.
  1987. * src/compiler/preprocessor/new/pp.l: Added.
  1988. * src/compiler/preprocessor/new/pp.y: Added.
  1989. * src/compiler/preprocessor/new/pp_lex.cpp: Added.
  1990. (yy_buffer_state):
  1991. (yy_trans_info):
  1992. (yyguts_t):
  1993. (yy_get_previous_state):
  1994. (yy_try_NUL_trans):
  1995. (input):
  1996. (pprestart):
  1997. (pp_switch_to_buffer):
  1998. (pp_load_buffer_state):
  1999. (pp_create_buffer):
  2000. (pp_delete_buffer):
  2001. (pp_init_buffer):
  2002. (pp_flush_buffer):
  2003. (pppush_buffer_state):
  2004. (pppop_buffer_state):
  2005. (ppensure_buffer_stack):
  2006. (pp_scan_buffer):
  2007. (pp_scan_string):
  2008. (pp_scan_bytes):
  2009. (yy_push_state):
  2010. (yy_pop_state):
  2011. (yy_top_state):
  2012. (yy_fatal_error):
  2013. (ppget_extra):
  2014. (ppget_lineno):
  2015. (ppget_column):
  2016. (ppget_in):
  2017. (ppget_out):
  2018. (ppget_leng):
  2019. (ppget_text):
  2020. (ppset_extra):
  2021. (ppset_lineno):
  2022. (ppset_column):
  2023. (ppset_in):
  2024. (ppset_out):
  2025. (ppget_debug):
  2026. (ppset_debug):
  2027. (ppget_lval):
  2028. (ppset_lval):
  2029. (ppget_lloc):
  2030. (ppset_lloc):
  2031. (pplex_init):
  2032. (pplex_init_extra):
  2033. (yy_init_globals):
  2034. (pplex_destroy):
  2035. (yy_flex_strncpy):
  2036. (yy_flex_strlen):
  2037. (ppalloc):
  2038. (pprealloc):
  2039. (ppfree):
  2040. (extractMacroName):
  2041. (pp):
  2042. (pp::Context::readInput):
  2043. (pp::Context::initLexer):
  2044. (pp::Context::destroyLexer):
  2045. * src/compiler/preprocessor/new/pp_tab.cpp: Added.
  2046. (YYLTYPE):
  2047. (yysyntax_error):
  2048. (yyerror):
  2049. (pushConditionalBlock):
  2050. (popConditionalBlock):
  2051. (pp::Context::parse):
  2052. * src/compiler/preprocessor/new/pp_tab.h: Added.
  2053. (YYLTYPE):
  2054. * src/compiler/preprocessor/new/stl_utils.h: Added.
  2055. (pp):
  2056. (Delete):
  2057. (pp::Delete::operator()):
  2058. (DeleteSecond):
  2059. (pp::DeleteSecond::operator()):
  2060. * src/compiler/preprocessor/new/token_type.h: Added.
  2061. * src/compiler/preprocessor/scanner.c:
  2062. (yylex_CPP):
  2063. * src/compiler/preprocessor/symbols.c:
  2064. * src/compiler/preprocessor/tokens.c:
  2065. * src/libEGL/Config.cpp:
  2066. (egl::ConfigSet::getConfigs):
  2067. * src/libEGL/Display.cpp:
  2068. (egl::Display::initialize):
  2069. (egl::Display::terminate):
  2070. (egl::Display::restoreLostDevice):
  2071. (egl::Display::sync):
  2072. (egl):
  2073. (egl::Display::allocateEventQuery):
  2074. (egl::Display::freeEventQuery):
  2075. (egl::Display::getFloat32TextureSupport):
  2076. (egl::Display::getFloat16TextureSupport):
  2077. (egl::Display::getEventQuerySupport):
  2078. (egl::Display::initExtensionString):
  2079. (egl::Display::shareHandleSupported):
  2080. (egl::Display::getOcclusionQuerySupport):
  2081. (egl::Display::getInstancingSupport):
  2082. * src/libEGL/Display.h:
  2083. (Display):
  2084. (egl::Display::isD3d9ExDevice):
  2085. * src/libEGL/Surface.cpp:
  2086. (egl::Surface::resetSwapChain):
  2087. * src/libEGL/libEGL.cpp:
  2088. * src/libEGL/libEGL.vcproj:
  2089. * src/libGLESv2/Blit.cpp:
  2090. (gl::Blit::setCommonBlitState):
  2091. * src/libGLESv2/Buffer.h:
  2092. (Buffer):
  2093. * src/libGLESv2/Context.cpp:
  2094. (gl::Context::Context):
  2095. (gl::Context::~Context):
  2096. (gl::Context::makeCurrent):
  2097. (gl::Context::getActiveQuery):
  2098. (gl):
  2099. (gl::Context::createFence):
  2100. (gl::Context::createQuery):
  2101. (gl::Context::deleteQuery):
  2102. (gl::Context::beginQuery):
  2103. (gl::Context::endQuery):
  2104. (gl::Context::getQuery):
  2105. (gl::Context::applyVertexBuffer):
  2106. (gl::Context::applyIndexBuffer):
  2107. (gl::Context::readPixels):
  2108. (gl::Context::clear):
  2109. (gl::Context::drawArrays):
  2110. (gl::Context::drawElements):
  2111. (gl::Context::sync):
  2112. (gl::Context::drawLineLoop):
  2113. (gl::Context::supportsOcclusionQueries):
  2114. (gl::Context::supportsInstancing):
  2115. (gl::Context::setVertexAttribDivisor):
  2116. (gl::Context::initExtensionString):
  2117. (gl::VertexDeclarationCache::applyDeclaration):
  2118. (gl::VertexDeclarationCache::markStateDirty):
  2119. * src/libGLESv2/Context.h:
  2120. (gl):
  2121. (gl::VertexAttribute::VertexAttribute):
  2122. (State):
  2123. (VertexDeclarationCache):
  2124. (Context):
  2125. * src/libGLESv2/Fence.cpp:
  2126. (gl::Fence::Fence):
  2127. (gl::Fence::~Fence):
  2128. (gl::Fence::setFence):
  2129. * src/libGLESv2/Fence.h:
  2130. (egl):
  2131. (Fence):
  2132. * src/libGLESv2/Framebuffer.cpp:
  2133. (gl::Framebuffer::lookupRenderbuffer):
  2134. (gl::Framebuffer::detachTexture):
  2135. (gl::Framebuffer::completeness):
  2136. * src/libGLESv2/Framebuffer.h:
  2137. * src/libGLESv2/IndexDataManager.cpp:
  2138. (gl::IndexDataManager::IndexDataManager):
  2139. (gl::IndexDataManager::~IndexDataManager):
  2140. (gl::computeRange):
  2141. (gl::IndexDataManager::prepareIndexData):
  2142. (gl::IndexDataManager::getCountingIndices):
  2143. (gl):
  2144. * src/libGLESv2/IndexDataManager.h:
  2145. (IndexDataManager):
  2146. * src/libGLESv2/Program.cpp:
  2147. (gl::Program::getUniformLocation):
  2148. (gl::Program::setUniform1fv):
  2149. (gl::Program::setUniform2fv):
  2150. (gl::Program::setUniform3fv):
  2151. (gl::Program::setUniform4fv):
  2152. (gl::Program::setUniform1iv):
  2153. (gl::Program::setUniform2iv):
  2154. (gl::Program::setUniform3iv):
  2155. (gl::Program::setUniform4iv):
  2156. (gl::Program::packVaryings):
  2157. (gl::Program::linkVaryings):
  2158. (gl::Program::defineUniform):
  2159. (gl::Program::createUniform):
  2160. (gl::Program::applyUniformnbv):
  2161. (gl::Program::applyUniform1iv):
  2162. (gl::Program::applyUniform2iv):
  2163. (gl::Program::applyUniform3iv):
  2164. (gl::Program::applyUniform4iv):
  2165. (gl::Program::getInfoLog):
  2166. * src/libGLESv2/Program.h:
  2167. (Program):
  2168. * src/libGLESv2/Query.cpp: Added.
  2169. (gl):
  2170. (gl::Query::Query):
  2171. (gl::Query::~Query):
  2172. (gl::Query::begin):
  2173. (gl::Query::end):
  2174. (gl::Query::getResult):
  2175. (gl::Query::isResultAvailable):
  2176. (gl::Query::getType):
  2177. (gl::Query::testQuery):
  2178. * src/libGLESv2/Query.h: Added.
  2179. (gl):
  2180. (Query):
  2181. * src/libGLESv2/Renderbuffer.cpp:
  2182. (gl):
  2183. (gl::RenderbufferInterface::addProxyRef):
  2184. (gl::RenderbufferInterface::releaseProxy):
  2185. (gl::RenderbufferTexture::RenderbufferTexture):
  2186. (gl::RenderbufferTexture::~RenderbufferTexture):
  2187. (gl::RenderbufferTexture::addProxyRef):
  2188. (gl::RenderbufferTexture::releaseProxy):
  2189. (gl::Renderbuffer::addRef):
  2190. (gl::Renderbuffer::release):
  2191. * src/libGLESv2/Renderbuffer.h:
  2192. (gl):
  2193. (RenderbufferInterface):
  2194. (RenderbufferTexture):
  2195. (Renderbuffer):
  2196. * src/libGLESv2/Shader.cpp:
  2197. (gl::Shader::Shader):
  2198. (gl::Shader::getInfoLog):
  2199. (gl::Shader::getSourceImpl):
  2200. (gl):
  2201. (gl::Shader::initializeCompiler):
  2202. (gl::Shader::parseVaryings):
  2203. (gl::Shader::uncompile):
  2204. (gl::Shader::compileToHLSL):
  2205. (gl::VertexShader::uncompile):
  2206. (gl::VertexShader::compile):
  2207. (gl::VertexShader::parseAttributes):
  2208. (gl::FragmentShader::compile):
  2209. * src/libGLESv2/Shader.h:
  2210. (Shader):
  2211. (VertexShader):
  2212. * src/libGLESv2/Texture.cpp:
  2213. (gl::Texture2D::Texture2D):
  2214. (gl::Texture2D::~Texture2D):
  2215. (gl):
  2216. (gl::Texture2D::addProxyRef):
  2217. (gl::Texture2D::releaseProxy):
  2218. (gl::Texture2D::getRenderbuffer):
  2219. (gl::TextureCubeMap::TextureCubeMap):
  2220. (gl::TextureCubeMap::~TextureCubeMap):
  2221. (gl::TextureCubeMap::addProxyRef):
  2222. (gl::TextureCubeMap::releaseProxy):
  2223. (gl::TextureCubeMap::isSamplerComplete):
  2224. (gl::TextureCubeMap::convertToRenderTarget):
  2225. (gl::TextureCubeMap::getRenderbuffer):
  2226. * src/libGLESv2/Texture.h:
  2227. (Texture):
  2228. (Texture2D):
  2229. (TextureCubeMap):
  2230. * src/libGLESv2/VertexDataManager.cpp:
  2231. (gl::VertexDataManager::writeAttributeData):
  2232. (gl::VertexDataManager::prepareVertexData):
  2233. (gl::VertexDataManager::spaceRequired):
  2234. (gl):
  2235. * src/libGLESv2/VertexDataManager.h:
  2236. (TranslatedAttribute):
  2237. (VertexDataManager):
  2238. * src/libGLESv2/libGLESv2.cpp:
  2239. * src/libGLESv2/libGLESv2.def:
  2240. * src/libGLESv2/libGLESv2.vcproj:
  2241. * src/libGLESv2/utilities.cpp:
  2242. (gl::IsInternalTextureTarget):
  2243. * src/libGLESv2/utilities.h:
  2244. (gl):
  2245. 2012-03-09 Ashod Nakashian <ashodnakashian@yahoo.com>
  2246. Bash scripts should support LF endings only
  2247. https://bugs.webkit.org/show_bug.cgi?id=79509
  2248. Reviewed by David Kilzer.
  2249. * src/compiler/generate_parser.sh: Added property svn:eol-style.
  2250. 2012-02-21 Sam Weinig <sam@webkit.org>
  2251. Attempt to fix the Snow Leopard build.
  2252. * Configurations/Base.xcconfig:
  2253. 2012-02-21 Sam Weinig <sam@webkit.org>
  2254. Use libc++ when building with Clang on Mac
  2255. https://bugs.webkit.org/show_bug.cgi?id=78981
  2256. Reviewed by Dan Bernstein.
  2257. * Configurations/Base.xcconfig:
  2258. 2012-01-07 Chris Marrin <cmarrin@apple.com>
  2259. Fixed a warning in GTK build of ANGLE
  2260. Unreviewed.
  2261. * src/compiler/DetectRecursion.cpp:
  2262. (DetectRecursion::~DetectRecursion):
  2263. 2012-01-06 Mark Rowe <mrowe@apple.com>
  2264. Regenerate a few files with a more appropriate version of bison.
  2265. Rubber-stamped by Dan Bernstein.
  2266. * src/compiler/glslang.l: Tweak the input so that it generates code that compiles without warnings.
  2267. * src/compiler/glslang_lex.cpp:
  2268. * src/compiler/glslang_tab.cpp:
  2269. * src/compiler/glslang_tab.h:
  2270. 2012-01-06 Chris Marrin <cmarrin@apple.com>
  2271. Update ANGLE in WebKit tree
  2272. https://bugs.webkit.org/show_bug.cgi?id=75753
  2273. Reviewed by Simon Fraser.
  2274. Updated ANGLE to r939. Fixed a compiler error (missing case in switch statement)
  2275. and added 5 new files to xcodeproj. Other than that it is a straight copy of
  2276. the files from the ANGLE repository.
  2277. * ANGLE.xcodeproj/project.pbxproj:
  2278. * include/EGL/eglext.h:
  2279. * include/EGL/eglplatform.h:
  2280. * include/GLES2/gl2ext.h:
  2281. * include/GLSLANG/ShaderLang.h:
  2282. * src/common/debug.cpp:
  2283. (gl::output):
  2284. (gl::trace):
  2285. (gl::perfActive):
  2286. (gl::ScopedPerfEventHelper::ScopedPerfEventHelper):
  2287. (gl::ScopedPerfEventHelper::~ScopedPerfEventHelper):
  2288. * src/common/version.h:
  2289. * src/compiler/BaseTypes.h:
  2290. (getBasicString):
  2291. * src/compiler/BuiltInFunctionEmulator.cpp: Added.
  2292. (BuiltInFunctionEmulator::BuiltInFunctionEmulator):
  2293. (BuiltInFunctionEmulator::SetFunctionCalled):
  2294. (BuiltInFunctionEmulator::OutputEmulatedFunctionDefinition):
  2295. (BuiltInFunctionEmulator::IdentifyFunction):
  2296. (BuiltInFunctionEmulator::MarkBuiltInFunctionsForEmulation):
  2297. (BuiltInFunctionEmulator::Cleanup):
  2298. (BuiltInFunctionEmulator::GetEmulatedFunctionName):
  2299. * src/compiler/BuiltInFunctionEmulator.h: Added.
  2300. * src/compiler/Compiler.cpp:
  2301. (TCompiler::TCompiler):
  2302. (TCompiler::compile):
  2303. (TCompiler::clearResults):
  2304. (TCompiler::detectRecursion):
  2305. (TCompiler::getMappedNameMaxLength):
  2306. (TCompiler::getBuiltInFunctionEmulator):
  2307. * src/compiler/DetectRecursion.cpp: Added.
  2308. (DetectRecursion::FunctionNode::FunctionNode):
  2309. (DetectRecursion::FunctionNode::getName):
  2310. (DetectRecursion::FunctionNode::addCallee):
  2311. (DetectRecursion::FunctionNode::detectRecursion):
  2312. (DetectRecursion::DetectRecursion):
  2313. (DetectRecursion::~DetectRecursion):
  2314. (DetectRecursion::visitAggregate):
  2315. (DetectRecursion::detectRecursion):
  2316. (DetectRecursion::findFunctionByName):
  2317. * src/compiler/DetectRecursion.h: Added.
  2318. * src/compiler/ExtensionBehavior.h:
  2319. * src/compiler/ForLoopUnroll.cpp:
  2320. (ForLoopUnroll::MarkForLoopsWithIntegerIndicesForUnrolling):
  2321. * src/compiler/ForLoopUnroll.h:
  2322. * src/compiler/Initialize.cpp:
  2323. (BuiltInFunctionsCommon):
  2324. (BuiltInFunctionsVertex):
  2325. (BuiltInFunctionsFragment):
  2326. (TBuiltIns::initialize):
  2327. (IdentifyBuiltIns):
  2328. (InitExtensionBehavior):
  2329. * src/compiler/MapLongVariableNames.cpp:
  2330. (MapLongVariableNames::MapLongVariableNames):
  2331. (MapLongVariableNames::visitSymbol):
  2332. (MapLongVariableNames::mapVaryingLongName):
  2333. * src/compiler/MapLongVariableNames.h:
  2334. * src/compiler/OutputGLSLBase.cpp:
  2335. (TOutputGLSLBase::visitUnary):
  2336. (TOutputGLSLBase::visitAggregate):
  2337. * src/compiler/OutputHLSL.cpp:
  2338. (sh::OutputHLSL::OutputHLSL):
  2339. (sh::OutputHLSL::header):
  2340. (sh::OutputHLSL::visitSymbol):
  2341. (sh::OutputHLSL::visitAggregate):
  2342. (sh::OutputHLSL::visitSelection):
  2343. (sh::OutputHLSL::visitLoop):
  2344. (sh::OutputHLSL::handleExcessiveLoop):
  2345. (sh::OutputHLSL::addConstructor):
  2346. (sh::OutputHLSL::decorate):
  2347. (sh::OutputHLSL::decorateUniform):
  2348. * src/compiler/OutputHLSL.h:
  2349. * src/compiler/ParseHelper.cpp:
  2350. (TParseContext::recover):
  2351. (TParseContext::reservedErrorCheck):
  2352. (TParseContext::constructorErrorCheck):
  2353. (TParseContext::extensionErrorCheck):
  2354. (TParseContext::supportsExtension):
  2355. (TParseContext::enterStructDeclaration):
  2356. (TParseContext::exitStructDeclaration):
  2357. (TParseContext::structNestingErrorCheck):
  2358. * src/compiler/ParseHelper.h:
  2359. (TParseContext::TParseContext):
  2360. * src/compiler/PoolAlloc.h:
  2361. (pool_allocator::pool_allocator):
  2362. (pool_allocator::operator=):
  2363. (pool_allocator::setAllocator):
  2364. (pool_allocator::getAllocator):
  2365. * src/compiler/ShHandle.h:
  2366. * src/compiler/ShaderLang.cpp:
  2367. (checkActiveUniformAndAttribMaxLengths):
  2368. (checkMappedNameMaxLength):
  2369. (getVariableInfo):
  2370. (ShInitBuiltInResources):
  2371. (ShGetInfo):
  2372. * src/compiler/SymbolTable.cpp:
  2373. (TType::computeDeepestStructNesting):
  2374. * src/compiler/TranslatorESSL.cpp:
  2375. (TranslatorESSL::translate):
  2376. (TranslatorESSL::writeExtensionBehavior):
  2377. * src/compiler/TranslatorGLSL.cpp:
  2378. (TranslatorGLSL::translate):
  2379. * src/compiler/Types.h:
  2380. (TType::TType):
  2381. (TType::copyType):
  2382. (TType::setStruct):
  2383. (TType::getDeepestStructNesting):
  2384. * src/compiler/UnfoldSelect.cpp:
  2385. (sh::UnfoldSelect::traverse):
  2386. (sh::UnfoldSelect::visitSelection):
  2387. (sh::UnfoldSelect::visitLoop):
  2388. (sh::UnfoldSelect::getNextTemporaryIndex):
  2389. * src/compiler/UnfoldSelect.h:
  2390. * src/compiler/ValidateLimitations.cpp:
  2391. * src/compiler/ValidateLimitations.h:
  2392. * src/compiler/VariableInfo.cpp:
  2393. (getVariableDataType):
  2394. * src/compiler/generate_glslang_lexer.sh: Removed.
  2395. * src/compiler/generate_glslang_parser.sh: Removed.
  2396. * src/compiler/generate_parser.sh: Added.
  2397. * src/compiler/glslang.l:
  2398. * src/compiler/glslang.y:
  2399. * src/compiler/glslang_lex.cpp:
  2400. (yy_get_previous_state):
  2401. (yy_try_NUL_trans):
  2402. * src/compiler/glslang_tab.cpp:
  2403. * src/compiler/glslang_tab.h:
  2404. * src/compiler/intermOut.cpp:
  2405. (TOutputTraverser::visitAggregate):
  2406. * src/compiler/intermediate.h:
  2407. (TIntermUnary::TIntermUnary):
  2408. (TIntermUnary::setUseEmulatedFunction):
  2409. (TIntermUnary::getUseEmulatedFunction):
  2410. (TIntermAggregate::TIntermAggregate):
  2411. (TIntermAggregate::setUseEmulatedFunction):
  2412. (TIntermAggregate::getUseEmulatedFunction):
  2413. * src/compiler/osinclude.h:
  2414. * src/compiler/ossource_posix.cpp:
  2415. (OS_AllocTLSIndex):
  2416. (OS_SetTLSValue):
  2417. (OS_FreeTLSIndex):
  2418. * src/compiler/preprocessor/atom.c:
  2419. (GrowAtomTable):
  2420. * src/compiler/preprocessor/length_limits.h: Added.
  2421. * src/compiler/preprocessor/scanner.h:
  2422. * src/libEGL/Display.cpp:
  2423. (egl::Display::getDisplay):
  2424. (egl::Display::Display):
  2425. (egl::Display::~Display):
  2426. (egl::Display::initialize):
  2427. (egl::Display::terminate):
  2428. (egl::Display::startScene):
  2429. (egl::Display::endScene):
  2430. (egl::Display::createDevice):
  2431. (egl::Display::initializeDevice):
  2432. (egl::Display::resetDevice):
  2433. (egl::Display::createWindowSurface):
  2434. (egl::Display::createOffscreenSurface):
  2435. (egl::Display::createContext):
  2436. (egl::Display::restoreLostDevice):
  2437. (egl::Display::notifyDeviceLost):
  2438. (egl::Display::isDeviceLost):
  2439. (egl::Display::testDeviceLost):
  2440. (egl::Display::testDeviceResettable):
  2441. (egl::Display::getDXT1TextureSupport):
  2442. (egl::Display::getDXT3TextureSupport):
  2443. (egl::Display::getDXT5TextureSupport):
  2444. (egl::Display::getFloat32TextureSupport):
  2445. (egl::Display::getFloat16TextureSupport):
  2446. (egl::Display::getTexturePool):
  2447. (egl::Display::initExtensionString):
  2448. * src/libEGL/Display.h:
  2449. * src/libEGL/Surface.cpp:
  2450. (egl::Surface::Surface):
  2451. (egl::Surface::initialize):
  2452. (egl::Surface::resetSwapChain):
  2453. (egl::Surface::subclassWindow):
  2454. (egl::Surface::unsubclassWindow):
  2455. (egl::Surface::swap):
  2456. (egl::Surface::postSubBuffer):
  2457. (egl::Surface::isPostSubBufferSupported):
  2458. * src/libEGL/Surface.h:
  2459. * src/libEGL/libEGL.cpp:
  2460. * src/libEGL/libEGL.rc:
  2461. * src/libEGL/libEGL.vcproj:
  2462. * src/libGLESv2/Buffer.cpp:
  2463. (gl::Buffer::bufferSubData):
  2464. * src/libGLESv2/Context.cpp:
  2465. (gl::Context::Context):
  2466. (gl::Context::makeCurrent):
  2467. (gl::Context::markAllStateDirty):
  2468. (gl::Context::markContextLost):
  2469. (gl::Context::isContextLost):
  2470. (gl::Context::setPackReverseRowOrder):
  2471. (gl::Context::getPackReverseRowOrder):
  2472. (gl::Context::deleteProgram):
  2473. (gl::Context::getDrawFramebuffer):
  2474. (gl::Context::bindDrawFramebuffer):
  2475. (gl::Context::useProgram):
  2476. (gl::Context::setFramebufferZero):
  2477. (gl::Context::getCurrentProgram):
  2478. (gl::Context::getBooleanv):
  2479. (gl::Context::getIntegerv):
  2480. (gl::Context::getQueryParameterInfo):
  2481. (gl::Context::applyRenderTarget):
  2482. (gl::Context::applyState):
  2483. (gl::Context::applyVertexBuffer):
  2484. (gl::Context::applyIndexBuffer):
  2485. (gl::Context::applyShaders):
  2486. (gl::Context::applyTextures):
  2487. (gl::Context::readPixels):
  2488. (gl::Context::clear):
  2489. (gl::Context::drawArrays):
  2490. (gl::Context::drawElements):
  2491. (gl::Context::sync):
  2492. (gl::Context::drawClosingLine):
  2493. (gl::Context::getResetStatus):
  2494. (gl::Context::isResetNotificationEnabled):
  2495. (gl::Context::supportsDXT1Textures):
  2496. (gl::Context::supportsDXT3Textures):
  2497. (gl::Context::supportsDXT5Textures):
  2498. (gl::Context::supportsFloat32Textures):
  2499. (gl::Context::supportsFloat32LinearFilter):
  2500. (gl::Context::supportsFloat32RenderableTextures):
  2501. (gl::Context::supportsFloat16Textures):
  2502. (gl::Context::supportsFloat16LinearFilter):
  2503. (gl::Context::supportsFloat16RenderableTextures):
  2504. (gl::Context::initExtensionString):
  2505. (gl::Context::initRendererString):
  2506. (gl::Context::getRendererString):
  2507. (gl::Context::blitFramebuffer):
  2508. (gl::VertexDeclarationCache::applyDeclaration):
  2509. (gl::VertexDeclarationCache::markStateDirty):
  2510. * src/libGLESv2/Context.h:
  2511. * src/libGLESv2/Fence.cpp:
  2512. (gl::Fence::testFence):
  2513. (gl::Fence::getFenceiv):
  2514. * src/libGLESv2/Framebuffer.cpp:
  2515. (gl::Framebuffer::setColorbuffer):
  2516. (gl::Framebuffer::setDepthbuffer):
  2517. (gl::Framebuffer::setStencilbuffer):
  2518. (gl::Framebuffer::getColorbuffer):
  2519. (gl::Framebuffer::getDepthbuffer):
  2520. (gl::Framebuffer::getStencilbuffer):
  2521. (gl::Framebuffer::hasStencil):
  2522. (gl::Framebuffer::completeness):
  2523. (gl::DefaultFramebuffer::DefaultFramebuffer):
  2524. * src/libGLESv2/Framebuffer.h:
  2525. * src/libGLESv2/IndexDataManager.cpp:
  2526. (gl::IndexDataManager::prepareIndexData):
  2527. (gl::IndexBuffer::IndexBuffer):
  2528. (gl::IndexBuffer::getSerial):
  2529. (gl::IndexBuffer::issueSerial):
  2530. (gl::StreamingIndexBuffer::reserveSpace):
  2531. (gl::StaticIndexBuffer::reserveSpace):
  2532. (gl::StaticIndexBuffer::lookupRange):
  2533. (gl::StaticIndexBuffer::addRange):
  2534. * src/libGLESv2/IndexDataManager.h:
  2535. (gl::StaticIndexBuffer::IndexRange::operator<):
  2536. * src/libGLESv2/Program.cpp:
  2537. (gl::Uniform::Uniform):
  2538. (gl::Uniform::isArray):
  2539. (gl::UniformLocation::UniformLocation):
  2540. (gl::Program::Program):
  2541. (gl::Program::detachShader):
  2542. (gl::Program::getUsedSamplerRange):
  2543. (gl::Program::getSamplerMapping):
  2544. (gl::Program::getUniformLocation):
  2545. (gl::Program::setUniform1fv):
  2546. (gl::Program::setUniform2fv):
  2547. (gl::Program::setUniform3fv):
  2548. (gl::transposeMatrix):
  2549. (gl::Program::setUniformMatrix2fv):
  2550. (gl::Program::setUniformMatrix3fv):
  2551. (gl::Program::setUniformMatrix4fv):
  2552. (gl::Program::getUniformfv):
  2553. (gl::Program::getUniformiv):
  2554. (gl::Program::applyUniforms):
  2555. (gl::Program::compileToBinary):
  2556. (gl::Program::linkVaryings):
  2557. (gl::Program::link):
  2558. (gl::Program::defineUniform):
  2559. (gl::Program::createUniform):
  2560. (gl::Program::decorateAttribute):
  2561. (gl::Program::undecorateUniform):
  2562. (gl::Program::applyUniformnbv):
  2563. (gl::Program::applyUniformnfv):
  2564. (gl::Program::applyUniform1iv):
  2565. (gl::Program::applyUniform2iv):
  2566. (gl::Program::applyUniform3iv):
  2567. (gl::Program::applyUniform4iv):
  2568. (gl::Program::applyUniformniv):
  2569. (gl::Program::appendToInfoLogSanitized):
  2570. (gl::Program::unlink):
  2571. (gl::Program::getActiveUniform):
  2572. (gl::Program::getActiveUniformCount):
  2573. (gl::Program::getActiveUniformMaxLength):
  2574. (gl::Program::validateSamplers):
  2575. (gl::Program::initializeConstantHandles):
  2576. (gl::Program::getDxCoordLocation):
  2577. * src/libGLESv2/Program.h:
  2578. * src/libGLESv2/Renderbuffer.cpp:
  2579. (gl::RenderbufferInterface::RenderbufferInterface):
  2580. (gl::RenderbufferInterface::getRedSize):
  2581. (gl::RenderbufferInterface::getGreenSize):
  2582. (gl::RenderbufferInterface::getBlueSize):
  2583. (gl::RenderbufferInterface::getAlphaSize):
  2584. (gl::RenderbufferInterface::getDepthSize):
  2585. (gl::RenderbufferInterface::getStencilSize):
  2586. (gl::RenderbufferTexture::RenderbufferTexture):
  2587. (gl::RenderbufferTexture::~RenderbufferTexture):
  2588. (gl::RenderbufferTexture::getRenderTarget):
  2589. (gl::RenderbufferTexture::getDepthStencil):
  2590. (gl::RenderbufferTexture::getWidth):
  2591. (gl::RenderbufferTexture::getHeight):
  2592. (gl::RenderbufferTexture::getInternalFormat):
  2593. (gl::RenderbufferTexture::getD3DFormat):
  2594. (gl::RenderbufferTexture::getSamples):
  2595. (gl::RenderbufferTexture::getSerial):
  2596. (gl::Renderbuffer::Renderbuffer):
  2597. (gl::Renderbuffer::~Renderbuffer):
  2598. (gl::Renderbuffer::getRenderTarget):
  2599. (gl::Renderbuffer::getDepthStencil):
  2600. (gl::Renderbuffer::getWidth):
  2601. (gl::Renderbuffer::getHeight):
  2602. (gl::Renderbuffer::getInternalFormat):
  2603. (gl::Renderbuffer::getD3DFormat):
  2604. (gl::Renderbuffer::getRedSize):
  2605. (gl::Renderbuffer::getGreenSize):
  2606. (gl::Renderbuffer::getBlueSize):
  2607. (gl::Renderbuffer::getAlphaSize):
  2608. (gl::Renderbuffer::getDepthSize):
  2609. (gl::Renderbuffer::getStencilSize):
  2610. (gl::Renderbuffer::getSamples):
  2611. (gl::Renderbuffer::getSerial):
  2612. (gl::Renderbuffer::setStorage):
  2613. (gl::RenderbufferStorage::getD3DFormat):
  2614. (gl::RenderbufferStorage::issueCubeSerials):
  2615. (gl::Colorbuffer::Colorbuffer):
  2616. (gl::Colorbuffer::getRenderTarget):
  2617. (gl::Depthbuffer::Depthbuffer):
  2618. (gl::Stencilbuffer::Stencilbuffer):
  2619. * src/libGLESv2/Renderbuffer.h:
  2620. (gl::RenderbufferInterface::~RenderbufferInterface):
  2621. * src/libGLESv2/Shader.cpp:
  2622. (gl::Shader::getTranslatedSourceLength):
  2623. (gl::Shader::getSourceImpl):
  2624. (gl::Shader::getSource):
  2625. (gl::Shader::getTranslatedSource):
  2626. * src/libGLESv2/Shader.h:
  2627. * src/libGLESv2/Texture.cpp:
  2628. (gl::ConvertTextureFormatType):
  2629. (gl::IsTextureFormatRenderable):
  2630. (gl::Image::Image):
  2631. (gl::Image::~Image):
  2632. (gl::Image::redefine):
  2633. (gl::Image::createSurface):
  2634. (gl::Image::lock):
  2635. (gl::Image::unlock):
  2636. (gl::Image::isRenderableFormat):
  2637. (gl::Image::getD3DFormat):
  2638. (gl::Image::getSurface):
  2639. (gl::Image::setManagedSurface):
  2640. (gl::Image::updateSurface):
  2641. (gl::Image::loadData):
  2642. (gl::Image::loadAlphaData):
  2643. (gl::Image::loadAlphaFloatData):
  2644. (gl::Image::loadAlphaHalfFloatData):
  2645. (gl::Image::loadLuminanceData):
  2646. (gl::Image::loadLuminanceFloatData):
  2647. (gl::Image::loadLuminanceHalfFloatData):
  2648. (gl::Image::loadLuminanceAlphaData):
  2649. (gl::Image::loadLuminanceAlphaFloatData):
  2650. (gl::Image::loadLuminanceAlphaHalfFloatData):
  2651. (gl::Image::loadRGBUByteData):
  2652. (gl::Image::loadRGB565Data):
  2653. (gl::Image::loadRGBFloatData):
  2654. (gl::Image::loadRGBHalfFloatData):
  2655. (gl::Image::loadRGBAUByteDataSSE2):
  2656. (gl::Image::loadRGBAUByteData):
  2657. (gl::Image::loadRGBA4444Data):
  2658. (gl::Image::loadRGBA5551Data):
  2659. (gl::Image::loadRGBAFloatData):
  2660. (gl::Image::loadRGBAHalfFloatData):
  2661. (gl::Image::loadBGRAData):
  2662. (gl::Image::loadCompressedData):
  2663. (gl::FlipCopyDXT1BlockFull):
  2664. (gl::FlipCopyDXT1BlockHalf):
  2665. (gl::FlipCopyDXT3BlockFull):
  2666. (gl::FlipCopyDXT3BlockHalf):
  2667. (gl::FlipCopyDXT5BlockFull):
  2668. (gl::FlipCopyDXT5BlockHalf):
  2669. (gl::Image::loadDXT1Data):
  2670. (gl::Image::loadDXT3Data):
  2671. (gl::Image::loadDXT5Data):
  2672. (gl::Image::copy):
  2673. (gl::TextureStorage::TextureStorage):
  2674. (gl::TextureStorage::~TextureStorage):
  2675. (gl::TextureStorage::isRenderTarget):
  2676. (gl::TextureStorage::isManaged):
  2677. (gl::TextureStorage::getPool):
  2678. (gl::TextureStorage::getTextureSerial):
  2679. (gl::TextureStorage::issueTextureSerial):
  2680. (gl::Texture::Texture):
  2681. (gl::Texture::~Texture):
  2682. (gl::Texture::setMinFilter):
  2683. (gl::Texture::setMagFilter):
  2684. (gl::Texture::setWrapS):
  2685. (gl::Texture::setWrapT):
  2686. (gl::Texture::setUsage):
  2687. (gl::Texture::getMinFilter):
  2688. (gl::Texture::getMagFilter):
  2689. (gl::Texture::getWrapS):
  2690. (gl::Texture::getWrapT):
  2691. (gl::Texture::getUsage):
  2692. (gl::Texture::setImage):
  2693. (gl::Texture::setCompressedImage):
  2694. (gl::Texture::subImage):
  2695. (gl::Texture::subImageCompressed):
  2696. (gl::Texture::getTexture):
  2697. (gl::Texture::hasDirtyParameters):
  2698. (gl::Texture::hasDirtyImages):
  2699. (gl::Texture::resetDirty):
  2700. (gl::Texture::getTextureSerial):
  2701. (gl::Texture::getRenderTargetSerial):
  2702. (gl::Texture::isImmutable):
  2703. (gl::Texture::creationLevels):
  2704. (gl::Texture::getBlitter):
  2705. (gl::Texture::copyToRenderTarget):
  2706. (gl::TextureStorage2D::TextureStorage2D):
  2707. (gl::TextureStorage2D::~TextureStorage2D):
  2708. (gl::TextureStorage2D::getSurfaceLevel):
  2709. (gl::TextureStorage2D::getBaseTexture):
  2710. (gl::TextureStorage2D::getRenderTargetSerial):
  2711. (gl::Texture2D::Texture2D):
  2712. (gl::Texture2D::~Texture2D):
  2713. (gl::Texture2D::getWidth):
  2714. (gl::Texture2D::getHeight):
  2715. (gl::Texture2D::getInternalFormat):
  2716. (gl::Texture2D::getType):
  2717. (gl::Texture2D::redefineImage):
  2718. (gl::Texture2D::setImage):
  2719. (gl::Texture2D::bindTexImage):
  2720. (gl::Texture2D::releaseTexImage):
  2721. (gl::Texture2D::setCompressedImage):
  2722. (gl::Texture2D::commitRect):
  2723. (gl::Texture2D::copyImage):
  2724. (gl::Texture2D::copySubImage):
  2725. (gl::Texture2D::storage):
  2726. (gl::Texture2D::isSamplerComplete):
  2727. (gl::Texture2D::isMipmapComplete):
  2728. (gl::Texture2D::getBaseTexture):
  2729. (gl::Texture2D::createTexture):
  2730. (gl::Texture2D::updateTexture):
  2731. (gl::Texture2D::convertToRenderTarget):
  2732. (gl::Texture2D::generateMipmaps):
  2733. (gl::Texture2D::getRenderbuffer):
  2734. (gl::Texture2D::getRenderTarget):
  2735. (gl::Texture2D::getStorage):
  2736. (gl::TextureStorageCubeMap::TextureStorageCubeMap):
  2737. (gl::TextureStorageCubeMap::~TextureStorageCubeMap):
  2738. (gl::TextureStorageCubeMap::getCubeMapSurface):
  2739. (gl::TextureStorageCubeMap::getBaseTexture):
  2740. (gl::TextureStorageCubeMap::getRenderTargetSerial):
  2741. (gl::TextureCubeMap::TextureCubeMap):
  2742. (gl::TextureCubeMap::~TextureCubeMap):
  2743. (gl::TextureCubeMap::getWidth):
  2744. (gl::TextureCubeMap::getHeight):
  2745. (gl::TextureCubeMap::getInternalFormat):
  2746. (gl::TextureCubeMap::getType):
  2747. (gl::TextureCubeMap::setCompressedImage):
  2748. (gl::TextureCubeMap::commitRect):
  2749. (gl::TextureCubeMap::subImage):
  2750. (gl::TextureCubeMap::subImageCompressed):
  2751. (gl::TextureCubeMap::isSamplerComplete):
  2752. (gl::TextureCubeMap::isCubeComplete):
  2753. (gl::TextureCubeMap::isMipmapCubeComplete):
  2754. (gl::TextureCubeMap::getBaseTexture):
  2755. (gl::TextureCubeMap::createTexture):
  2756. (gl::TextureCubeMap::updateTexture):
  2757. (gl::TextureCubeMap::convertToRenderTarget):
  2758. (gl::TextureCubeMap::setImage):
  2759. (gl::TextureCubeMap::redefineImage):
  2760. (gl::TextureCubeMap::copyImage):
  2761. (gl::TextureCubeMap::copySubImage):
  2762. (gl::TextureCubeMap::storage):
  2763. (gl::TextureCubeMap::generateMipmaps):
  2764. (gl::TextureCubeMap::getRenderbuffer):
  2765. (gl::TextureCubeMap::getRenderTarget):
  2766. (gl::TextureCubeMap::getStorage):
  2767. * src/libGLESv2/Texture.h:
  2768. (gl::Image::markDirty):
  2769. (gl::Image::markClean):
  2770. (gl::Image::getWidth):
  2771. (gl::Image::getHeight):
  2772. (gl::Image::getFormat):
  2773. (gl::Image::getType):
  2774. (gl::Image::isDirty):
  2775. * src/libGLESv2/VertexDataManager.cpp:
  2776. (gl::elementsInBuffer):
  2777. (gl::VertexDataManager::VertexDataManager):
  2778. (gl::VertexDataManager::writeAttributeData):
  2779. (gl::VertexDataManager::prepareVertexData):
  2780. (gl::VertexBuffer::VertexBuffer):
  2781. (gl::VertexBuffer::getSerial):
  2782. (gl::VertexBuffer::issueSerial):
  2783. (gl::StreamingVertexBuffer::reserveRequiredSpace):
  2784. (gl::StaticVertexBuffer::map):
  2785. (gl::StaticVertexBuffer::reserveRequiredSpace):
  2786. (gl::StaticVertexBuffer::lookupAttribute):
  2787. * src/libGLESv2/VertexDataManager.h:
  2788. (gl::ArrayVertexBuffer::size):
  2789. * src/libGLESv2/geometry/IndexDataManager.cpp: Removed.
  2790. * src/libGLESv2/geometry/IndexDataManager.h: Removed.
  2791. * src/libGLESv2/geometry/VertexDataManager.cpp: Removed.
  2792. * src/libGLESv2/geometry/VertexDataManager.h: Removed.
  2793. * src/libGLESv2/geometry/vertexconversion.h: Removed.
  2794. * src/libGLESv2/libGLESv2.cpp:
  2795. (validateSubImageParams):
  2796. (validReadFormatType):
  2797. (Extension::glBindTexImage):
  2798. * src/libGLESv2/libGLESv2.def:
  2799. * src/libGLESv2/libGLESv2.rc:
  2800. * src/libGLESv2/libGLESv2.vcproj:
  2801. * src/libGLESv2/main.cpp:
  2802. (gl::getNonLostContext):
  2803. (gl::checkDeviceLost):
  2804. * src/libGLESv2/main.h:
  2805. * src/libGLESv2/utilities.cpp:
  2806. (gl::UniformExternalComponentCount):
  2807. (gl::UniformInternalComponentCount):
  2808. (gl::UniformComponentSize):
  2809. (gl::UniformInternalSize):
  2810. (gl::UniformExternalSize):
  2811. (gl::ComputeCompressedSize):
  2812. (gl::IsCompressed):
  2813. (gl::ExtractFormat):
  2814. (gl::ExtractType):
  2815. (dx2es::IsFloat32Format):
  2816. (dx2es::IsFloat16Format):
  2817. * src/libGLESv2/utilities.h:
  2818. (isDeviceLostError):
  2819. 2011-11-11 Darin Adler <darin@apple.com>
  2820. * ANGLE.xcodeproj/project.pbxproj: Let a newer Xcode update this file.
  2821. If an older Xcode downgrades this file and we have a risk of some kind of
  2822. oscillating commit situation, please contact me so I know not to do this again.
  2823. 2011-09-19 Adam Roben <aroben@apple.com>
  2824. Let Xcode 4 do its thang with ANGLE.xcodeproj
  2825. * ANGLE.xcodeproj/project.pbxproj:
  2826. 2011-09-13 Anders Carlsson <andersca@apple.com>
  2827. Disable C++ exceptions when building with clang
  2828. https://bugs.webkit.org/show_bug.cgi?id=68031
  2829. <rdar://problem/9556880>
  2830. Reviewed by Mark Rowe.
  2831. * Configurations/Base.xcconfig:
  2832. 2011-09-08 Andras Becsi <andras.becsi@nokia.com>
  2833. [Qt] Build fails with strict compiler
  2834. https://bugs.webkit.org/show_bug.cgi?id=67778
  2835. Reviewed by Csaba Osztrogonác.
  2836. * src/compiler/glslang_lex.cpp: Regenerate with generate_glslang_lexer.sh using a newer flex
  2837. to suppress warning and fix the build when using [-Werror=unused-result]
  2838. 2011-08-12 Mark Rowe <mrowe@apple.com>
  2839. Be more forward-looking in the choice of compiler.
  2840. Rubber-stamped by Jon Honeycutt.
  2841. * Configurations/CompilerVersion.xcconfig:
  2842. 2011-08-11 Renata Hodovan <reni@webkit.org>
  2843. [Qt]Fix warnings after r92805.
  2844. Reviewed by Csaba Osztrogonác.
  2845. Control reached the end non-void functions.
  2846. * src/compiler/ossource_posix.cpp:
  2847. (OS_AllocTLSIndex):
  2848. (OS_SetTLSValue):
  2849. 2011-08-11 Renata Hodovan <reni@webkit.org>
  2850. Build fix on Qt Windows 32-bit Release/Debug after r92805.
  2851. Unreviewed.
  2852. * src/compiler/ossource_posix.cpp:
  2853. (OS_FreeTLSIndex):
  2854. 2011-08-04 Mark Rowe <mrowe@apple.com>
  2855. Future-proof Xcode configuration settings.
  2856. * Configurations/Base.xcconfig:
  2857. * Configurations/CompilerVersion.xcconfig:
  2858. * Configurations/DebugRelease.xcconfig:
  2859. 2011-06-30 Mark Rowe <mrowe@apple.com>
  2860. Rubber-stamped by Dan Bernstein.
  2861. ANGLE shouldn't try to use internal SDKs. It doesn't need them!
  2862. * Configurations/Base.xcconfig:
  2863. 2011-06-20 Zhenyao Mo <zmo@google.com>
  2864. Reviewed by Kenneth Russell.
  2865. Update ANGLE to r696
  2866. https://bugs.webkit.org/show_bug.cgi?id=56396
  2867. * ANGLE.xcodeproj/project.pbxproj:
  2868. * include/EGL/eglext.h:
  2869. * include/GLSLANG/ShaderLang.h:
  2870. * src/build_angle.xcodeproj/project.pbxproj:
  2871. * src/common/debug.cpp:
  2872. (gl::output):
  2873. (gl::trace):
  2874. (gl::perfActive):
  2875. (gl::ScopedPerfEventHelper::ScopedPerfEventHelper):
  2876. (gl::ScopedPerfEventHelper::~ScopedPerfEventHelper):
  2877. * src/common/debug.h:
  2878. * src/common/version.h: Added.
  2879. * src/compiler/CodeGenGLSL.cpp:
  2880. (ConstructCompiler):
  2881. * src/compiler/CodeGenHLSL.cpp:
  2882. (ConstructCompiler):
  2883. * src/compiler/Compiler.cpp:
  2884. (TCompiler::compile):
  2885. (TCompiler::mapLongVariableNames):
  2886. (TCompiler::getMappedNameMaxLength):
  2887. (TCompiler::getExtensionBehavior):
  2888. * src/compiler/ConstantUnion.h:
  2889. (ConstantUnion::operator==):
  2890. (ConstantUnion::operator>):
  2891. (ConstantUnion::operator<):
  2892. * src/compiler/ExtensionBehavior.h:
  2893. (getBehaviorString):
  2894. * src/compiler/ForLoopUnroll.cpp: Added.
  2895. (ForLoopUnroll::FillLoopIndexInfo):
  2896. (ForLoopUnroll::Step):
  2897. (ForLoopUnroll::SatisfiesLoopCondition):
  2898. (ForLoopUnroll::NeedsToReplaceSymbolWithValue):
  2899. (ForLoopUnroll::GetLoopIndexValue):
  2900. (ForLoopUnroll::Push):
  2901. (ForLoopUnroll::Pop):
  2902. (ForLoopUnroll::getLoopIncrement):
  2903. (ForLoopUnroll::evaluateIntConstant):
  2904. * src/compiler/ForLoopUnroll.h: Added.
  2905. (ForLoopUnroll::ForLoopUnroll):
  2906. * src/compiler/Initialize.cpp:
  2907. (BuiltInFunctionsVertex):
  2908. * src/compiler/MapLongVariableNames.cpp: Added.
  2909. (MapLongVariableNames::MapLongVariableNames):
  2910. (MapLongVariableNames::visitSymbol):
  2911. (MapLongVariableNames::visitConstantUnion):
  2912. (MapLongVariableNames::visitBinary):
  2913. (MapLongVariableNames::visitUnary):
  2914. (MapLongVariableNames::visitSelection):
  2915. (MapLongVariableNames::visitAggregate):
  2916. (MapLongVariableNames::visitLoop):
  2917. (MapLongVariableNames::visitBranch):
  2918. (MapLongVariableNames::mapVaryingLongName):
  2919. * src/compiler/MapLongVariableNames.h: Added.
  2920. * src/compiler/OutputESSL.cpp: Added.
  2921. (TOutputESSL::TOutputESSL):
  2922. (TOutputESSL::writeVariablePrecision):
  2923. * src/compiler/OutputESSL.h: Added.
  2924. * src/compiler/OutputGLSL.cpp:
  2925. (TOutputGLSL::TOutputGLSL):
  2926. (TOutputGLSL::writeVariablePrecision):
  2927. * src/compiler/OutputGLSL.h:
  2928. * src/compiler/OutputGLSLBase.cpp: Added.
  2929. (TOutputGLSLBase::TOutputGLSLBase):
  2930. (TOutputGLSLBase::writeTriplet):
  2931. (TOutputGLSLBase::writeVariableType):
  2932. (TOutputGLSLBase::writeFunctionParameters):
  2933. (TOutputGLSLBase::writeConstantUnion):
  2934. (TOutputGLSLBase::visitSymbol):
  2935. (TOutputGLSLBase::visitConstantUnion):
  2936. (TOutputGLSLBase::visitBinary):
  2937. (TOutputGLSLBase::visitUnary):
  2938. (TOutputGLSLBase::visitSelection):
  2939. (TOutputGLSLBase::visitAggregate):
  2940. (TOutputGLSLBase::visitLoop):
  2941. (TOutputGLSLBase::visitBranch):
  2942. (TOutputGLSLBase::visitCodeBlock):
  2943. * src/compiler/OutputGLSLBase.h: Added.
  2944. (TOutputGLSLBase::objSink):
  2945. * src/compiler/OutputHLSL.cpp:
  2946. (sh::OutputHLSL::OutputHLSL):
  2947. (sh::OutputHLSL::header):
  2948. (sh::OutputHLSL::visitUnary):
  2949. (sh::OutputHLSL::visitAggregate):
  2950. (sh::OutputHLSL::visitSelection):
  2951. (sh::OutputHLSL::visitLoop):
  2952. (sh::OutputHLSL::visitBranch):
  2953. (sh::OutputHLSL::handleExcessiveLoop):
  2954. (sh::OutputHLSL::outputLineDirective):
  2955. * src/compiler/OutputHLSL.h:
  2956. * src/compiler/ParseHelper.cpp:
  2957. (TParseContext::precisionErrorCheck):
  2958. (TParseContext::constructorErrorCheck):
  2959. (TParseContext::nonInitErrorCheck):
  2960. * src/compiler/ParseHelper.h:
  2961. (TParseContext::TParseContext):
  2962. * src/compiler/ShHandle.h:
  2963. * src/compiler/ShaderLang.cpp:
  2964. (getVariableInfo):
  2965. (ShConstructCompiler):
  2966. (ShGetInfo):
  2967. (ShGetActiveAttrib):
  2968. (ShGetActiveUniform):
  2969. * src/compiler/TranslatorESSL.cpp: Added.
  2970. (TranslatorESSL::TranslatorESSL):
  2971. (TranslatorESSL::translate):
  2972. (TranslatorESSL::writeExtensionBehavior):
  2973. * src/compiler/TranslatorESSL.h: Added.
  2974. * src/compiler/ValidateLimitations.cpp:
  2975. (ValidateLimitations::visitBinary):
  2976. (ValidateLimitations::visitLoop):
  2977. * src/compiler/ValidateLimitations.h:
  2978. * src/compiler/VariableInfo.cpp:
  2979. (getVariableInfo):
  2980. (getBuiltInVariableInfo):
  2981. (getUserDefinedVariableInfo):
  2982. (CollectAttribsUniforms::visitAggregate):
  2983. * src/compiler/VariableInfo.h:
  2984. * src/compiler/VersionGLSL.cpp:
  2985. (TVersionGLSL::visitSymbol):
  2986. (TVersionGLSL::visitConstantUnion):
  2987. (TVersionGLSL::visitBinary):
  2988. (TVersionGLSL::visitUnary):
  2989. (TVersionGLSL::visitSelection):
  2990. (TVersionGLSL::visitAggregate):
  2991. (TVersionGLSL::visitLoop):
  2992. (TVersionGLSL::visitBranch):
  2993. * src/compiler/VersionGLSL.h:
  2994. * src/compiler/glslang.y:
  2995. * src/compiler/glslang_tab.cpp:
  2996. * src/compiler/glslang_tab.h:
  2997. * src/compiler/intermediate.h:
  2998. (TIntermLoop::TIntermLoop):
  2999. (TIntermLoop::setUnrollFlag):
  3000. (TIntermLoop::getUnrollFlag):
  3001. (TIntermSymbol::TIntermSymbol):
  3002. (TIntermSymbol::setId):
  3003. (TIntermSymbol::setSymbol):
  3004. (TIntermSymbol::getOriginalSymbol):
  3005. (TIntermAggregate::TIntermAggregate):
  3006. (TIntermAggregate::setEndLine):
  3007. (TIntermAggregate::getEndLine):
  3008. * src/compiler/preprocessor/atom.c:
  3009. (AddString):
  3010. * src/compiler/preprocessor/compile.h:
  3011. * src/compiler/preprocessor/cpp.c:
  3012. (CPPelse):
  3013. (eval):
  3014. (CPPif):
  3015. (CPPifdef):
  3016. (readCPPline):
  3017. (ChkCorrectElseNesting):
  3018. * src/compiler/preprocessor/cppstruct.c:
  3019. (ResetPreprocessor):
  3020. * src/compiler/preprocessor/scanner.c:
  3021. (byte_scan):
  3022. (yylex_CPP):
  3023. * src/compiler/preprocessor/scanner.h:
  3024. * src/libEGL/Config.cpp:
  3025. (egl::Config::Config):
  3026. (egl::Config::set):
  3027. (egl::ConfigSet::add):
  3028. (egl::ConfigSet::getConfigs):
  3029. * src/libEGL/Config.h:
  3030. * src/libEGL/Display.cpp:
  3031. (egl::Display::Display):
  3032. (egl::Display::initialize):
  3033. (egl::Display::terminate):
  3034. (egl::Display::getConfigAttrib):
  3035. (egl::Display::createDevice):
  3036. (egl::Display::createWindowSurface):
  3037. (egl::Display::createOffscreenSurface):
  3038. (egl::Display::createContext):
  3039. (egl::Display::destroyContext):
  3040. (egl::Display::isInitialized):
  3041. (egl::Display::getAdapterIdentifier):
  3042. (egl::Display::isDeviceLost):
  3043. (egl::Display::getBufferPool):
  3044. (egl::Display::initExtensionString):
  3045. (egl::Display::getExtensionString):
  3046. (egl::Display::getVertexTextureSupport):
  3047. (egl::Display::getNonPower2TextureSupport):
  3048. * src/libEGL/Display.h:
  3049. (egl::Display::isD3d9ExDevice):
  3050. * src/libEGL/Surface.cpp:
  3051. (egl::Surface::Surface):
  3052. (egl::Surface::initialize):
  3053. (egl::Surface::release):
  3054. (egl::Surface::resetSwapChain):
  3055. (egl::SurfaceWindowProc):
  3056. (egl::Surface::subclassWindow):
  3057. (egl::Surface::unsubclassWindow):
  3058. (egl::Surface::swap):
  3059. (egl::Surface::getRenderTarget):
  3060. (egl::Surface::getOffscreenTexture):
  3061. (egl::Surface::getTextureFormat):
  3062. (egl::Surface::getTextureTarget):
  3063. (egl::Surface::setBoundTexture):
  3064. (egl::Surface::getBoundTexture):
  3065. (egl::Surface::getFormat):
  3066. * src/libEGL/Surface.h:
  3067. (egl::Surface::getShareHandle):
  3068. * src/libEGL/libEGL.cpp:
  3069. (validateDisplay):
  3070. (validateConfig):
  3071. (validateContext):
  3072. (validateSurface):
  3073. * src/libEGL/libEGL.rc: Added.
  3074. * src/libEGL/libEGL.vcproj:
  3075. * src/libEGL/main.cpp:
  3076. (DllMain):
  3077. * src/libEGL/main.h:
  3078. * src/libEGL/resource.h: Added.
  3079. * src/libGLESv2/Blit.cpp:
  3080. (gl::Blit::initGeometry):
  3081. (gl::Blit::copy):
  3082. * src/libGLESv2/Blit.h:
  3083. * src/libGLESv2/Buffer.cpp:
  3084. (gl::Buffer::Buffer):
  3085. (gl::Buffer::~Buffer):
  3086. (gl::Buffer::bufferData):
  3087. (gl::Buffer::bufferSubData):
  3088. (gl::Buffer::getStaticVertexBuffer):
  3089. (gl::Buffer::getStaticIndexBuffer):
  3090. (gl::Buffer::invalidateStaticData):
  3091. (gl::Buffer::promoteStaticUsage):
  3092. * src/libGLESv2/Buffer.h:
  3093. * src/libGLESv2/Context.cpp:
  3094. (gl::Context::Context):
  3095. (gl::Context::~Context):
  3096. (gl::Context::makeCurrent):
  3097. (gl::Context::markAllStateDirty):
  3098. (gl::Context::setActiveSampler):
  3099. (gl::Context::createFramebuffer):
  3100. (gl::Context::createFence):
  3101. (gl::Context::deleteFramebuffer):
  3102. (gl::Context::deleteFence):
  3103. (gl::Context::bindTexture2D):
  3104. (gl::Context::bindTextureCubeMap):
  3105. (gl::Context::getTexture2D):
  3106. (gl::Context::getTextureCubeMap):
  3107. (gl::Context::getSamplerTexture):
  3108. (gl::Context::getIntegerv):
  3109. (gl::Context::applyRenderTarget):
  3110. (gl::Context::applyState):
  3111. (gl::Context::applyVertexBuffer):
  3112. (gl::Context::applyShaders):
  3113. (gl::Context::applyTextures):
  3114. (gl::Context::readPixels):
  3115. (gl::Context::clear):
  3116. (gl::Context::drawArrays):
  3117. (gl::Context::drawElements):
  3118. (gl::Context::finish):
  3119. (gl::Context::flush):
  3120. (gl::Context::drawClosingLine):
  3121. (gl::Context::getMaximumVertexTextureImageUnits):
  3122. (gl::Context::getMaximumCombinedTextureImageUnits):
  3123. (gl::Context::supportsNonPower2Texture):
  3124. (gl::Context::detachTexture):
  3125. (gl::Context::getIncompleteTexture):
  3126. (gl::Context::initExtensionString):
  3127. (gl::Context::blitFramebuffer):
  3128. (gl::VertexDeclarationCache::VertexDeclarationCache):
  3129. (gl::VertexDeclarationCache::~VertexDeclarationCache):
  3130. (gl::VertexDeclarationCache::applyDeclaration):
  3131. * src/libGLESv2/Context.h:
  3132. * src/libGLESv2/Framebuffer.cpp:
  3133. (gl::Framebuffer::lookupRenderbuffer):
  3134. (gl::Framebuffer::completeness):
  3135. * src/libGLESv2/Framebuffer.h:
  3136. * src/libGLESv2/HandleAllocator.cpp: Added.
  3137. (gl::HandleAllocator::HandleAllocator):
  3138. (gl::HandleAllocator::~HandleAllocator):
  3139. (gl::HandleAllocator::setBaseHandle):
  3140. (gl::HandleAllocator::allocate):
  3141. (gl::HandleAllocator::release):
  3142. * src/libGLESv2/HandleAllocator.h: Added.
  3143. * src/libGLESv2/IndexDataManager.cpp: Added.
  3144. (gl::IndexDataManager::IndexDataManager):
  3145. (gl::IndexDataManager::~IndexDataManager):
  3146. (gl::convertIndices):
  3147. (gl::computeRange):
  3148. (gl::IndexDataManager::prepareIndexData):
  3149. (gl::IndexDataManager::indexSize):
  3150. (gl::IndexDataManager::typeSize):
  3151. (gl::IndexBuffer::IndexBuffer):
  3152. (gl::IndexBuffer::~IndexBuffer):
  3153. (gl::IndexBuffer::getBuffer):
  3154. (gl::IndexBuffer::unmap):
  3155. (gl::StreamingIndexBuffer::StreamingIndexBuffer):
  3156. (gl::StreamingIndexBuffer::~StreamingIndexBuffer):
  3157. (gl::StreamingIndexBuffer::map):
  3158. (gl::StreamingIndexBuffer::reserveSpace):
  3159. (gl::StaticIndexBuffer::StaticIndexBuffer):
  3160. (gl::StaticIndexBuffer::~StaticIndexBuffer):
  3161. (gl::StaticIndexBuffer::map):
  3162. (gl::StaticIndexBuffer::reserveSpace):
  3163. (gl::StaticIndexBuffer::lookupType):
  3164. (gl::StaticIndexBuffer::lookupRange):
  3165. (gl::StaticIndexBuffer::addRange):
  3166. * src/libGLESv2/IndexDataManager.h: Added.
  3167. (gl::IndexBuffer::size):
  3168. * src/libGLESv2/Program.cpp:
  3169. (gl::Program::getSemanticIndex):
  3170. (gl::Program::getSamplerMapping):
  3171. (gl::Program::getSamplerTextureType):
  3172. (gl::Program::compileToBinary):
  3173. (gl::Program::packVaryings):
  3174. (gl::Program::linkVaryings):
  3175. (gl::Program::link):
  3176. (gl::Program::linkUniforms):
  3177. (gl::Program::defineUniform):
  3178. (gl::Program::applyUniform1iv):
  3179. (gl::Program::appendToInfoLogSanitized):
  3180. (gl::Program::unlink):
  3181. (gl::Program::getActiveUniformMaxLength):
  3182. (gl::Program::validate):
  3183. (gl::Program::validateSamplers):
  3184. * src/libGLESv2/Program.h:
  3185. * src/libGLESv2/Renderbuffer.cpp:
  3186. (gl::Renderbuffer::getWidth):
  3187. (gl::Renderbuffer::getHeight):
  3188. (gl::Renderbuffer::getInternalFormat):
  3189. (gl::Renderbuffer::getRedSize):
  3190. (gl::Renderbuffer::getGreenSize):
  3191. (gl::Renderbuffer::getBlueSize):
  3192. (gl::Renderbuffer::getAlphaSize):
  3193. (gl::Renderbuffer::getDepthSize):
  3194. (gl::Renderbuffer::getStencilSize):
  3195. (gl::Renderbuffer::getSamples):
  3196. (gl::RenderbufferStorage::RenderbufferStorage):
  3197. (gl::RenderbufferStorage::getWidth):
  3198. (gl::RenderbufferStorage::getHeight):
  3199. (gl::RenderbufferStorage::getInternalFormat):
  3200. (gl::RenderbufferStorage::getRedSize):
  3201. (gl::RenderbufferStorage::getGreenSize):
  3202. (gl::RenderbufferStorage::getBlueSize):
  3203. (gl::RenderbufferStorage::getAlphaSize):
  3204. (gl::RenderbufferStorage::getDepthSize):
  3205. (gl::RenderbufferStorage::getStencilSize):
  3206. (gl::RenderbufferStorage::getD3DFormat):
  3207. (gl::Colorbuffer::Colorbuffer):
  3208. (gl::Colorbuffer::getWidth):
  3209. (gl::Colorbuffer::getHeight):
  3210. (gl::Colorbuffer::getInternalFormat):
  3211. (gl::Colorbuffer::getType):
  3212. (gl::Colorbuffer::getD3DFormat):
  3213. (gl::Colorbuffer::isColorbuffer):
  3214. (gl::Colorbuffer::getRenderTarget):
  3215. (gl::DepthStencilbuffer::DepthStencilbuffer):
  3216. (gl::Depthbuffer::Depthbuffer):
  3217. (gl::Stencilbuffer::Stencilbuffer):
  3218. * src/libGLESv2/Renderbuffer.h:
  3219. * src/libGLESv2/ResourceManager.cpp:
  3220. (gl::ResourceManager::createBuffer):
  3221. (gl::ResourceManager::createShader):
  3222. (gl::ResourceManager::createProgram):
  3223. (gl::ResourceManager::createTexture):
  3224. (gl::ResourceManager::createRenderbuffer):
  3225. (gl::ResourceManager::deleteBuffer):
  3226. (gl::ResourceManager::deleteShader):
  3227. (gl::ResourceManager::deleteProgram):
  3228. (gl::ResourceManager::deleteTexture):
  3229. (gl::ResourceManager::deleteRenderbuffer):
  3230. (gl::ResourceManager::checkTextureAllocation):
  3231. * src/libGLESv2/ResourceManager.h:
  3232. * src/libGLESv2/Shader.cpp:
  3233. (gl::Shader::Shader):
  3234. (gl::Shader::compileToHLSL):
  3235. * src/libGLESv2/Shader.h:
  3236. * src/libGLESv2/Texture.cpp:
  3237. (gl::Texture::Image::Image):
  3238. (gl::Texture::Image::~Image):
  3239. (gl::Texture::Image::isRenderable):
  3240. (gl::Texture::Image::getD3DFormat):
  3241. (gl::Texture::Texture):
  3242. (gl::Texture::setMinFilter):
  3243. (gl::Texture::setMagFilter):
  3244. (gl::Texture::setWrapS):
  3245. (gl::Texture::setWrapT):
  3246. (gl::Texture::loadImageData):
  3247. (gl::Texture::loadAlphaImageData):
  3248. (gl::Texture::loadAlphaFloatImageData):
  3249. (gl::Texture::loadAlphaHalfFloatImageData):
  3250. (gl::Texture::loadLuminanceImageData):
  3251. (gl::Texture::loadLuminanceFloatImageData):
  3252. (gl::Texture::loadLuminanceHalfFloatImageData):
  3253. (gl::Texture::loadLuminanceAlphaImageData):
  3254. (gl::Texture::loadLuminanceAlphaFloatImageData):
  3255. (gl::Texture::loadLuminanceAlphaHalfFloatImageData):
  3256. (gl::Texture::loadRGBUByteImageData):
  3257. (gl::Texture::loadRGB565ImageData):
  3258. (gl::Texture::loadRGBFloatImageData):
  3259. (gl::Texture::loadRGBHalfFloatImageData):
  3260. (gl::Texture::loadRGBAUByteImageDataSSE2):
  3261. (gl::Texture::loadRGBAUByteImageData):
  3262. (gl::Texture::loadRGBA4444ImageData):
  3263. (gl::Texture::loadRGBA5551ImageData):
  3264. (gl::Texture::loadRGBAFloatImageData):
  3265. (gl::Texture::loadRGBAHalfFloatImageData):
  3266. (gl::Texture::loadBGRAImageData):
  3267. (gl::Texture::loadCompressedImageData):
  3268. (gl::Texture::createSurface):
  3269. (gl::Texture::setImage):
  3270. (gl::Texture::setCompressedImage):
  3271. (gl::Texture::subImage):
  3272. (gl::Texture::subImageCompressed):
  3273. (gl::Texture::copyToImage):
  3274. (gl::Texture::getTexture):
  3275. (gl::Texture::isDirtyParameter):
  3276. (gl::Texture::isDirtyImage):
  3277. (gl::Texture::resetDirty):
  3278. (gl::Texture::getSerial):
  3279. (gl::Texture::creationLevels):
  3280. (gl::Texture::levelCount):
  3281. (gl::Texture::issueSerial):
  3282. (gl::Texture2D::Texture2D):
  3283. (gl::Texture2D::~Texture2D):
  3284. (gl::Texture2D::getWidth):
  3285. (gl::Texture2D::getHeight):
  3286. (gl::Texture2D::getInternalFormat):
  3287. (gl::Texture2D::getType):
  3288. (gl::Texture2D::getD3DFormat):
  3289. (gl::Texture2D::redefineTexture):
  3290. (gl::Texture2D::setImage):
  3291. (gl::Texture2D::bindTexImage):
  3292. (gl::Texture2D::releaseTexImage):
  3293. (gl::Texture2D::setCompressedImage):
  3294. (gl::Texture2D::commitRect):
  3295. (gl::Texture2D::copyImage):
  3296. (gl::Texture2D::copySubImage):
  3297. (gl::Texture2D::isComplete):
  3298. (gl::Texture2D::isCompressed):
  3299. (gl::Texture2D::getBaseTexture):
  3300. (gl::Texture2D::createTexture):
  3301. (gl::Texture2D::updateTexture):
  3302. (gl::Texture2D::convertToRenderTarget):
  3303. (gl::Texture2D::generateMipmaps):
  3304. (gl::Texture2D::getRenderbuffer):
  3305. (gl::Texture2D::getRenderTarget):
  3306. (gl::TextureCubeMap::getWidth):
  3307. (gl::TextureCubeMap::getHeight):
  3308. (gl::TextureCubeMap::getInternalFormat):
  3309. (gl::TextureCubeMap::getType):
  3310. (gl::TextureCubeMap::getD3DFormat):
  3311. (gl::TextureCubeMap::setImagePosX):
  3312. (gl::TextureCubeMap::setImageNegX):
  3313. (gl::TextureCubeMap::setImagePosY):
  3314. (gl::TextureCubeMap::setImageNegY):
  3315. (gl::TextureCubeMap::setImagePosZ):
  3316. (gl::TextureCubeMap::setImageNegZ):
  3317. (gl::TextureCubeMap::setCompressedImage):
  3318. (gl::TextureCubeMap::commitRect):
  3319. (gl::TextureCubeMap::isComplete):
  3320. (gl::TextureCubeMap::isCompressed):
  3321. (gl::TextureCubeMap::getBaseTexture):
  3322. (gl::TextureCubeMap::createTexture):
  3323. (gl::TextureCubeMap::updateTexture):
  3324. (gl::TextureCubeMap::convertToRenderTarget):
  3325. (gl::TextureCubeMap::setImage):
  3326. (gl::TextureCubeMap::redefineTexture):
  3327. (gl::TextureCubeMap::copyImage):
  3328. (gl::TextureCubeMap::getCubeMapSurface):
  3329. (gl::TextureCubeMap::copySubImage):
  3330. (gl::TextureCubeMap::generateMipmaps):
  3331. (gl::TextureCubeMap::getRenderbuffer):
  3332. (gl::TextureCubeMap::getRenderTarget):
  3333. * src/libGLESv2/Texture.h:
  3334. * src/libGLESv2/VertexDataManager.cpp: Added.
  3335. (gl::VertexDataManager::VertexDataManager):
  3336. (gl::VertexDataManager::~VertexDataManager):
  3337. (gl::VertexDataManager::writeAttributeData):
  3338. (gl::VertexDataManager::prepareVertexData):
  3339. (gl::VertexDataManager::spaceRequired):
  3340. (gl::VertexDataManager::checkVertexCaps):
  3341. (gl::VertexDataManager::typeIndex):
  3342. (gl::VertexBuffer::VertexBuffer):
  3343. (gl::VertexBuffer::~VertexBuffer):
  3344. (gl::VertexBuffer::unmap):
  3345. (gl::VertexBuffer::getBuffer):
  3346. (gl::ConstantVertexBuffer::ConstantVertexBuffer):
  3347. (gl::ConstantVertexBuffer::~ConstantVertexBuffer):
  3348. (gl::ArrayVertexBuffer::ArrayVertexBuffer):
  3349. (gl::ArrayVertexBuffer::~ArrayVertexBuffer):
  3350. (gl::ArrayVertexBuffer::addRequiredSpace):
  3351. (gl::ArrayVertexBuffer::addRequiredSpaceFor):
  3352. (gl::StreamingVertexBuffer::StreamingVertexBuffer):
  3353. (gl::StreamingVertexBuffer::~StreamingVertexBuffer):
  3354. (gl::StreamingVertexBuffer::map):
  3355. (gl::StreamingVertexBuffer::reserveRequiredSpace):
  3356. (gl::StaticVertexBuffer::StaticVertexBuffer):
  3357. (gl::StaticVertexBuffer::~StaticVertexBuffer):
  3358. (gl::StaticVertexBuffer::map):
  3359. (gl::StaticVertexBuffer::reserveRequiredSpace):
  3360. (gl::StaticVertexBuffer::lookupAttribute):
  3361. (gl::VertexDataManager::formatConverter):
  3362. * src/libGLESv2/VertexDataManager.h: Added.
  3363. (gl::ArrayVertexBuffer::size):
  3364. (gl::VertexDataManager::dirtyCurrentValue):
  3365. * src/libGLESv2/libGLESv2.cpp:
  3366. (validImageSize):
  3367. (Extension::glBindTexImage):
  3368. * src/libGLESv2/libGLESv2.def:
  3369. * src/libGLESv2/libGLESv2.rc: Added.
  3370. * src/libGLESv2/libGLESv2.vcproj:
  3371. * src/libGLESv2/main.cpp:
  3372. (error):
  3373. * src/libGLESv2/mathutil.h:
  3374. (gl::clamp):
  3375. (gl::clamp01):
  3376. (gl::transformPixelRect):
  3377. (gl::transformPixelYOffset):
  3378. (gl::adjustWinding):
  3379. (gl::supportsSSE2):
  3380. * src/libGLESv2/resource.h: Added.
  3381. * src/libGLESv2/utilities.cpp:
  3382. (gl::ComputeCompressedPitch):
  3383. (es2dx::ConvertCubeFace):
  3384. (es2dx::ConvertPrimitiveType):
  3385. (es2dx::ConvertRenderbufferFormat):
  3386. (es2dx::GetMultisampleTypeFromSamples):
  3387. (dx2es::GetStencilSize):
  3388. (dx2es::GetAlphaSize):
  3389. (dx2es::GetRedSize):
  3390. (dx2es::GetGreenSize):
  3391. (dx2es::GetBlueSize):
  3392. (dx2es::GetDepthSize):
  3393. (getTempPath):
  3394. (writeFile):
  3395. * src/libGLESv2/utilities.h:
  3396. * src/libGLESv2/vertexconversion.h: Added.
  3397. (gl::Identity::convert):
  3398. (gl::Cast::convert):
  3399. (gl::Normalize::convert):
  3400. (gl::FixedToFloat::convert):
  3401. (gl::SimpleDefaultValues::zero):
  3402. (gl::SimpleDefaultValues::one):
  3403. (gl::NormalizedDefaultValues::zero):
  3404. (gl::NormalizedDefaultValues::one):
  3405. (gl::VertexDataConverter::convertArray):
  3406. (gl::VertexDataConverter::pointerAddBytes):
  3407. (gl::VertexDataConverter::copyComponent):
  3408. 2011-05-24 David Kilzer <ddkilzer@apple.com>
  3409. Part 2 of 2: <http://webkit.org/b/60805> Enable -Wnewline-eof on ANGLE
  3410. Reviewed by Adam Roben.
  3411. * Configurations/Base.xcconfig:
  3412. (GCC_WARN_ABOUT_MISSING_NEWLINE): Added. Set to YES.
  3413. 2011-05-23 David Kilzer <ddkilzer@apple.com>
  3414. Part 1 of 2: <http://webkit.org/b/60805> Enable -Wnewline-eof on ANGLE
  3415. Merge ANGLE upstream commit r653 for Issue 154.
  3416. * src/compiler/PoolAlloc.h: Added newline to end of file.
  3417. * src/compiler/ShHandle.h: Ditto.
  3418. * src/libEGL/Display.cpp: Ditto.
  3419. 2011-05-16 David Kilzer <ddkilzer@apple.com>
  3420. <http://webkit.org/b/60913> C++ exceptions should not be enabled when building with llvm-gcc-4.2
  3421. <rdar://problem/9446430>
  3422. Reviewed by Mark Rowe.
  3423. * Configurations/Base.xcconfig: Fixed typo.
  3424. 2011-05-04 David Kilzer <ddkilzer@apple.com>
  3425. Part 2 of 2: <http://webkit.org/b/56337> Enable -Werror on ANGLE
  3426. Reviewed by Adam Barth.
  3427. * Configurations/Base.xcconfig:
  3428. (GCC_TREAT_WARNINGS_AS_ERRORS): Set to YES.
  3429. 2011-05-04 David Kilzer <ddkilzer@apple.com>
  3430. Part 1 of 2: <http://webkit.org/b/56337> Enable -Werror on ANGLE
  3431. Merge ANGLE upstream commits r572, r573, r574, r575.
  3432. This unblocks enabling -Werror on ANGLE. Since all changes are
  3433. in the upstream repository, they may be safely overwritten
  3434. during the next ANGLE update.
  3435. * src/compiler/ConstantUnion.h:
  3436. (ConstantUnion::operator==): Added a default case.
  3437. * src/compiler/Intermediate.cpp:
  3438. (TIntermBinary::promote): Added parentheses.
  3439. * src/compiler/ParseHelper.cpp:
  3440. (TParseContext::precisionErrorCheck): Added a default case.
  3441. * src/compiler/PoolAlloc.cpp:
  3442. (TAllocation::checkGuardBlock): Changed '%u' to '%lu' for size_t
  3443. variable. Put for loop inside #ifdef GUARD_BLOCKS/#endif macros
  3444. to fix tautological-compare warning.
  3445. (TAllocation::checkAllocList): Added newline to end of file.
  3446. 2011-04-26 Dan Bernstein <mitz@apple.com>
  3447. Build fix.
  3448. * Configurations/CompilerVersion.xcconfig:
  3449. 2011-04-26 Dan Bernstein <mitz@apple.com>
  3450. Reviewed by Mark Rowe.
  3451. Choose the compiler based on the Xcode version for Snow Leopard debug builds.
  3452. * Configurations/Base.xcconfig:
  3453. * Configurations/CompilerVersion.xcconfig: Added.
  3454. 2011-03-17 Jeff Miller <jeffm@apple.com>
  3455. Use a consistent set of file patterns in the svn:ignore property for all .xcodeproj directories, specifically:
  3456. *.mode*
  3457. *.pbxuser
  3458. *.perspective*
  3459. project.xcworkspace
  3460. xcuserdata
  3461. * ANGLE.xcodeproj: Modified property svn:ignore.
  3462. * src/build_angle.xcodeproj: Modified property svn:ignore.
  3463. 2011-01-18 Kenneth Russell <kbr@google.com>
  3464. Unreviewed, Leopard build fix. Remove flex/bison targets for GLSL
  3465. grammar because the generated sources are already checked in.
  3466. * ANGLE.xcodeproj/project.pbxproj:
  3467. * src/build_angle.xcodeproj/project.pbxproj:
  3468. 2011-01-18 Kenneth Russell <kbr@google.com>
  3469. Unreviewed, release build fix. Explicitly cast away const.
  3470. * src/compiler/preprocessor/scanner.c:
  3471. (ScanFromString):
  3472. 2011-01-18 Ben Vanik <ben.vanik@gmail.com>
  3473. Reviewed by Kenneth Russell.
  3474. Updating ANGLE in WebKit to r533.
  3475. https://bugs.webkit.org/show_bug.cgi?id=47194
  3476. * ANGLE.xcodeproj/project.pbxproj:
  3477. * include/GLSLANG/ShaderLang.h:
  3478. * src/common/debug.cpp:
  3479. (gl::trace):
  3480. * src/common/debug.h:
  3481. * src/compiler/CodeGenGLSL.cpp:
  3482. (ConstructCompiler):
  3483. * src/compiler/CodeGenHLSL.cpp:
  3484. (ConstructCompiler):
  3485. * src/compiler/Common.h:
  3486. (EncodeSourceLoc):
  3487. (DecodeSourceLoc):
  3488. * src/compiler/Compiler.cpp: Added.
  3489. (TShHandleBase::TShHandleBase):
  3490. (TShHandleBase::~TShHandleBase):
  3491. (TCompiler::TCompiler):
  3492. (TCompiler::~TCompiler):
  3493. (TCompiler::Init):
  3494. (TCompiler::compile):
  3495. (TCompiler::InitBuiltInSymbolTable):
  3496. (TCompiler::clearResults):
  3497. (TCompiler::validateLimitations):
  3498. (TCompiler::collectAttribsUniforms):
  3499. * src/compiler/ExtensionBehavior.h: Added.
  3500. * src/compiler/InfoSink.cpp:
  3501. (TInfoSinkBase::location):
  3502. * src/compiler/InfoSink.h:
  3503. (TInfoSinkBase::size):
  3504. * src/compiler/Initialize.cpp:
  3505. (BuiltInFunctionsCommon):
  3506. (BuiltInFunctionsVertex):
  3507. (BuiltInFunctionsFragment):
  3508. (StandardUniforms):
  3509. (DefaultPrecisionVertex):
  3510. (DefaultPrecisionFragment):
  3511. (BuiltInConstants):
  3512. (TBuiltIns::initialize):
  3513. (IdentifyBuiltIns):
  3514. (InitExtensionBehavior):
  3515. * src/compiler/Initialize.h:
  3516. * src/compiler/IntermTraverse.cpp:
  3517. (TIntermLoop::traverse):
  3518. * src/compiler/Intermediate.cpp:
  3519. (getOperatorString):
  3520. (TIntermediate::addBinaryMath):
  3521. (TIntermediate::addLoop):
  3522. (TIntermediate::postProcess):
  3523. (TIntermBinary::promote):
  3524. * src/compiler/OutputGLSL.cpp:
  3525. (TOutputGLSL::visitUnary):
  3526. (TOutputGLSL::visitLoop):
  3527. * src/compiler/OutputHLSL.cpp:
  3528. (sh::OutputHLSL::OutputHLSL):
  3529. (sh::OutputHLSL::header):
  3530. (sh::OutputHLSL::visitBinary):
  3531. (sh::OutputHLSL::visitUnary):
  3532. (sh::OutputHLSL::visitAggregate):
  3533. (sh::OutputHLSL::visitLoop):
  3534. (sh::OutputHLSL::handleExcessiveLoop):
  3535. (sh::OutputHLSL::argumentString):
  3536. * src/compiler/OutputHLSL.h:
  3537. * src/compiler/ParseHelper.cpp:
  3538. (ReportInfo):
  3539. (DefineExtensionMacros):
  3540. (TParseContext::error):
  3541. (TParseContext::warning):
  3542. (TParseContext::reservedErrorCheck):
  3543. (TParseContext::constructorErrorCheck):
  3544. (TParseContext::arrayQualifierErrorCheck):
  3545. (TParseContext::extensionErrorCheck):
  3546. (TParseContext::areAllChildConst):
  3547. (PaParseStrings):
  3548. * src/compiler/ParseHelper.h:
  3549. (TParseContext::TParseContext):
  3550. * src/compiler/PoolAlloc.cpp:
  3551. (InitializeGlobalPools):
  3552. (FreeGlobalPools):
  3553. (SetGlobalPoolAllocator):
  3554. (TPoolAllocator::TPoolAllocator):
  3555. (TPoolAllocator::~TPoolAllocator):
  3556. (TAllocation::checkAllocList):
  3557. * src/compiler/PoolAlloc.h:
  3558. * src/compiler/SearchSymbol.cpp: Added.
  3559. (sh::SearchSymbol::SearchSymbol):
  3560. (sh::SearchSymbol::traverse):
  3561. (sh::SearchSymbol::visitSymbol):
  3562. (sh::SearchSymbol::foundMatch):
  3563. * src/compiler/SearchSymbol.h: Added.
  3564. * src/compiler/ShHandle.h:
  3565. (TCompiler::getAsCompiler):
  3566. (TCompiler::getInfoSink):
  3567. (TCompiler::getAttribs):
  3568. (TCompiler::getUniforms):
  3569. (TCompiler::getShaderType):
  3570. (TCompiler::getShaderSpec):
  3571. * src/compiler/ShaderLang.cpp:
  3572. (getVariableMaxLength):
  3573. (getVariableInfo):
  3574. (ShInitBuiltInResources):
  3575. (ShConstructCompiler):
  3576. (ShCompile):
  3577. (ShGetInfo):
  3578. (ShGetInfoLog):
  3579. (ShGetObjectCode):
  3580. (ShGetActiveAttrib):
  3581. (ShGetActiveUniform):
  3582. * src/compiler/SymbolTable.cpp:
  3583. (TSymbolTableLevel::relateToExtension):
  3584. * src/compiler/SymbolTable.h:
  3585. (TVariable::shareConstPointer):
  3586. (TFunction::relateToExtension):
  3587. (TFunction::getExtension):
  3588. (TFunction::getParamCount):
  3589. (TFunction::getParam):
  3590. (TSymbolTable::getGlobalLevel):
  3591. (TSymbolTable::relateToOperator):
  3592. (TSymbolTable::relateToExtension):
  3593. * src/compiler/TranslatorGLSL.cpp:
  3594. (writeVersion):
  3595. (TranslatorGLSL::TranslatorGLSL):
  3596. (TranslatorGLSL::translate):
  3597. * src/compiler/TranslatorGLSL.h:
  3598. * src/compiler/TranslatorHLSL.cpp:
  3599. (TranslatorHLSL::TranslatorHLSL):
  3600. (TranslatorHLSL::translate):
  3601. * src/compiler/TranslatorHLSL.h:
  3602. * src/compiler/Types.h:
  3603. (TType::TType):
  3604. * src/compiler/UnfoldSelect.cpp:
  3605. (sh::UnfoldSelect::visitSelection):
  3606. * src/compiler/UnfoldSelect.h:
  3607. * src/compiler/ValidateLimitations.cpp: Added.
  3608. (ValidateLimitations::ValidateLimitations):
  3609. (ValidateLimitations::visitSymbol):
  3610. (ValidateLimitations::visitConstantUnion):
  3611. (ValidateLimitations::visitBinary):
  3612. (ValidateLimitations::visitUnary):
  3613. (ValidateLimitations::visitSelection):
  3614. (ValidateLimitations::visitAggregate):
  3615. (ValidateLimitations::visitLoop):
  3616. (ValidateLimitations::visitBranch):
  3617. (ValidateLimitations::error):
  3618. (ValidateLimitations::withinLoopBody):
  3619. (ValidateLimitations::isLoopIndex):
  3620. (ValidateLimitations::validateLoopType):
  3621. (ValidateLimitations::validateForLoopHeader):
  3622. (ValidateLimitations::validateForLoopInit):
  3623. (ValidateLimitations::validateForLoopCond):
  3624. (ValidateLimitations::validateForLoopExpr):
  3625. (ValidateLimitations::validateFunctionCall):
  3626. (ValidateLimitations::validateOperation):
  3627. (ValidateLimitations::isConstExpr):
  3628. (ValidateLimitations::isConstIndexExpr):
  3629. (ValidateLimitations::validateIndexing):
  3630. * src/compiler/ValidateLimitations.h: Added.
  3631. (ValidateLimitations::numErrors):
  3632. * src/compiler/VariableInfo.cpp: Added.
  3633. (arrayBrackets):
  3634. (getVariableDataType):
  3635. (getVariableInfo):
  3636. (getBuiltInVariableInfo):
  3637. (getUserDefinedVariableInfo):
  3638. (CollectAttribsUniforms::CollectAttribsUniforms):
  3639. (CollectAttribsUniforms::visitSymbol):
  3640. (CollectAttribsUniforms::visitConstantUnion):
  3641. (CollectAttribsUniforms::visitBinary):
  3642. (CollectAttribsUniforms::visitUnary):
  3643. (CollectAttribsUniforms::visitSelection):
  3644. (CollectAttribsUniforms::visitAggregate):
  3645. (CollectAttribsUniforms::visitLoop):
  3646. (CollectAttribsUniforms::visitBranch):
  3647. * src/compiler/VariableInfo.h: Added.
  3648. * src/compiler/VersionGLSL.cpp: Added.
  3649. (TVersionGLSL::TVersionGLSL):
  3650. (TVersionGLSL::visitSymbol):
  3651. (TVersionGLSL::visitConstantUnion):
  3652. (TVersionGLSL::visitBinary):
  3653. (TVersionGLSL::visitUnary):
  3654. (TVersionGLSL::visitSelection):
  3655. (TVersionGLSL::visitAggregate):
  3656. (TVersionGLSL::visitLoop):
  3657. (TVersionGLSL::visitBranch):
  3658. (TVersionGLSL::updateVersion):
  3659. * src/compiler/VersionGLSL.h: Added.
  3660. (TVersionGLSL::getVersion):
  3661. * src/compiler/generate_glslang_lexer.sh: Added.
  3662. * src/compiler/generate_glslang_parser.sh: Added.
  3663. * src/compiler/glslang.h: Added.
  3664. * src/compiler/glslang.l:
  3665. * src/compiler/glslang.y:
  3666. * src/compiler/glslang_lex.cpp: Added.
  3667. (yy_get_next_buffer):
  3668. (yy_get_previous_state):
  3669. (yy_try_NUL_trans):
  3670. (input):
  3671. (yyrestart):
  3672. (yy_switch_to_buffer):
  3673. (yy_load_buffer_state):
  3674. (yy_create_buffer):
  3675. (yy_delete_buffer):
  3676. (yy_init_buffer):
  3677. (yy_flush_buffer):
  3678. (yypush_buffer_state):
  3679. (yypop_buffer_state):
  3680. (yyensure_buffer_stack):
  3681. (yy_scan_buffer):
  3682. (yy_scan_string):
  3683. (yy_scan_bytes):
  3684. (yy_push_state):
  3685. (yy_pop_state):
  3686. (yy_top_state):
  3687. (yy_fatal_error):
  3688. (yyget_extra):
  3689. (yyget_lineno):
  3690. (yyget_column):
  3691. (yyget_in):
  3692. (yyget_out):
  3693. (yyget_leng):
  3694. (yyget_text):
  3695. (yyset_extra):
  3696. (yyset_lineno):
  3697. (yyset_column):
  3698. (yyset_in):
  3699. (yyset_out):
  3700. (yyget_debug):
  3701. (yyset_debug):
  3702. (yyget_lval):
  3703. (yyset_lval):
  3704. (yylex_init):
  3705. (yylex_init_extra):
  3706. (yy_init_globals):
  3707. (yylex_destroy):
  3708. (yy_flex_strncpy):
  3709. (yy_flex_strlen):
  3710. (yyalloc):
  3711. (yyrealloc):
  3712. (yyfree):
  3713. (string_input):
  3714. (check_type):
  3715. (reserved_word):
  3716. (yyerror):
  3717. (glslang_initialize):
  3718. (glslang_finalize):
  3719. (glslang_scan):
  3720. * src/compiler/glslang_tab.cpp: Added.
  3721. (yytnamerr):
  3722. (yysyntax_error):
  3723. (glslang_parse):
  3724. * src/compiler/glslang_tab.h: Added.
  3725. * src/compiler/intermOut.cpp:
  3726. (TOutputTraverser::TOutputTraverser):
  3727. (OutputTreeText):
  3728. (TOutputTraverser::visitSymbol):
  3729. (TOutputTraverser::visitBinary):
  3730. (TOutputTraverser::visitUnary):
  3731. (TOutputTraverser::visitAggregate):
  3732. (TOutputTraverser::visitSelection):
  3733. (TOutputTraverser::visitConstantUnion):
  3734. (TOutputTraverser::visitLoop):
  3735. (TOutputTraverser::visitBranch):
  3736. (TIntermediate::outputTree):
  3737. * src/compiler/intermediate.h:
  3738. (TIntermLoop::TIntermLoop):
  3739. (TIntermLoop::getType):
  3740. (TIntermLoop::getInit):
  3741. (TIntermLoop::getCondition):
  3742. (TIntermLoop::getExpression):
  3743. (TIntermLoop::getBody):
  3744. * src/compiler/localintermediate.h:
  3745. * src/compiler/osinclude.h:
  3746. (OS_GetTLSValue):
  3747. * src/compiler/ossource_nspr.cpp: Added.
  3748. (OS_AllocTLSIndex):
  3749. (OS_SetTLSValue):
  3750. (OS_FreeTLSIndex):
  3751. * src/compiler/preprocessor/compile.h:
  3752. * src/compiler/preprocessor/cpp.c:
  3753. (CPPdefine):
  3754. (CPPelse):
  3755. (CPPif):
  3756. (CPPifdef):
  3757. (CPPerror):
  3758. (CPPextension):
  3759. (readCPPline):
  3760. * src/compiler/preprocessor/preprocess.h:
  3761. * src/compiler/preprocessor/scanner.c:
  3762. (str_getch):
  3763. (str_ungetch):
  3764. (ScanFromString):
  3765. (lFloatConst):
  3766. (byte_scan):
  3767. (yylex_CPP):
  3768. (check_EOF):
  3769. * src/compiler/preprocessor/scanner.h:
  3770. * src/compiler/preprocessor/tokens.c:
  3771. (RecordToken):
  3772. (ReadToken):
  3773. * src/compiler/tools: Removed.
  3774. * src/compiler/unistd.h: Removed.
  3775. * src/compiler/util.cpp: Added.
  3776. (atof_dot):
  3777. * src/compiler/util.h: Added.
  3778. * src/libEGL/Config.cpp:
  3779. (egl::Config::set):
  3780. * src/libEGL/Display.cpp:
  3781. (egl::Display::Display):
  3782. (egl::Display::initialize):
  3783. (egl::Display::terminate):
  3784. (egl::Display::createDevice):
  3785. (egl::Display::resetDevice):
  3786. (egl::Display::createContext):
  3787. (egl::Display::destroyContext):
  3788. (egl::Display::getMinSwapInterval):
  3789. (egl::Display::getMaxSwapInterval):
  3790. (egl::Display::getDevice):
  3791. (egl::Display::getFloatTextureSupport):
  3792. (egl::Display::getHalfFloatTextureSupport):
  3793. (egl::Display::getLuminanceTextureSupport):
  3794. (egl::Display::getLuminanceAlphaTextureSupport):
  3795. (egl::Display::getBufferPool):
  3796. (egl::Display::getEventQuerySupport):
  3797. (egl::Display::getDefaultPresentParameters):
  3798. * src/libEGL/Display.h:
  3799. * src/libEGL/Surface.cpp:
  3800. (egl::Surface::Surface):
  3801. (egl::Surface::~Surface):
  3802. (egl::Surface::release):
  3803. (egl::Surface::resetSwapChain):
  3804. (egl::Surface::writeRecordableFlipState):
  3805. (egl::Surface::restoreState):
  3806. (egl::SurfaceWindowProc):
  3807. (egl::Surface::subclassWindow):
  3808. (egl::Surface::unsubclassWindow):
  3809. (egl::Surface::checkForOutOfDateSwapChain):
  3810. (egl::Surface::convertInterval):
  3811. (egl::Surface::swap):
  3812. (egl::Surface::getRenderTarget):
  3813. (egl::Surface::setSwapInterval):
  3814. * src/libEGL/Surface.h:
  3815. * src/libEGL/libEGL.cpp:
  3816. * src/libGLESv2/Blit.cpp:
  3817. (gl::Blit::copySurfaceToTexture):
  3818. (gl::Blit::setCommonBlitState):
  3819. * src/libGLESv2/Buffer.cpp:
  3820. (gl::Buffer::Buffer):
  3821. (gl::Buffer::~Buffer):
  3822. (gl::Buffer::bufferData):
  3823. (gl::Buffer::bufferSubData):
  3824. (gl::Buffer::getVertexBuffer):
  3825. (gl::Buffer::getIndexBuffer):
  3826. (gl::Buffer::invalidateStaticData):
  3827. * src/libGLESv2/Buffer.h:
  3828. * src/libGLESv2/Context.cpp:
  3829. (gl::Context::Context):
  3830. (gl::Context::~Context):
  3831. (gl::Context::makeCurrent):
  3832. (gl::Context::markAllStateDirty):
  3833. (gl::Context::setFragmentShaderDerivativeHint):
  3834. (gl::Context::setEnableVertexAttribArray):
  3835. (gl::Context::getVertexAttribState):
  3836. (gl::Context::getVertexAttributes):
  3837. (gl::Context::createFence):
  3838. (gl::Context::deleteFence):
  3839. (gl::Context::bindTexture2D):
  3840. (gl::Context::bindTextureCubeMap):
  3841. (gl::Context::getFence):
  3842. (gl::Context::getTexture2D):
  3843. (gl::Context::getTextureCubeMap):
  3844. (gl::Context::getSamplerTexture):
  3845. (gl::Context::getBooleanv):
  3846. (gl::Context::getIntegerv):
  3847. (gl::Context::getQueryParameterInfo):
  3848. (gl::Context::applyRenderTarget):
  3849. (gl::Context::applyState):
  3850. (gl::Context::lookupAttributeMapping):
  3851. (gl::Context::applyVertexBuffer):
  3852. (gl::Context::applyIndexBuffer):
  3853. (gl::Context::readPixels):
  3854. (gl::Context::clear):
  3855. (gl::Context::drawArrays):
  3856. (gl::Context::drawElements):
  3857. (gl::Context::finish):
  3858. (gl::Context::drawClosingLine):
  3859. (gl::Context::getMaximumVaryingVectors):
  3860. (gl::Context::getMaximumFragmentUniformVectors):
  3861. (gl::Context::supportsEventQueries):
  3862. (gl::Context::supportsFloatTextures):
  3863. (gl::Context::supportsFloatLinearFilter):
  3864. (gl::Context::supportsFloatRenderableTextures):
  3865. (gl::Context::supportsHalfFloatTextures):
  3866. (gl::Context::supportsHalfFloatLinearFilter):
  3867. (gl::Context::supportsHalfFloatRenderableTextures):
  3868. (gl::Context::getMaximumRenderbufferDimension):
  3869. (gl::Context::getMaximumTextureDimension):
  3870. (gl::Context::getMaximumCubeTextureDimension):
  3871. (gl::Context::getMaximumTextureLevel):
  3872. (gl::Context::supportsLuminanceTextures):
  3873. (gl::Context::supportsLuminanceAlphaTextures):
  3874. (gl::Context::supports32bitIndices):
  3875. (gl::Context::getIncompleteTexture):
  3876. (gl::Context::setVertexAttrib):
  3877. (gl::Context::initExtensionString):
  3878. (gl::Context::blitFramebuffer):
  3879. * src/libGLESv2/Context.h:
  3880. (gl::VertexAttribute::VertexAttribute):
  3881. (gl::VertexAttribute::typeSize):
  3882. (gl::VertexAttribute::stride):
  3883. * src/libGLESv2/Fence.cpp: Added.
  3884. (gl::Fence::Fence):
  3885. (gl::Fence::~Fence):
  3886. (gl::Fence::isFence):
  3887. (gl::Fence::setFence):
  3888. (gl::Fence::testFence):
  3889. (gl::Fence::finishFence):
  3890. (gl::Fence::getFenceiv):
  3891. * src/libGLESv2/Fence.h: Added.
  3892. * src/libGLESv2/Framebuffer.cpp:
  3893. (gl::Framebuffer::completeness):
  3894. (gl::DefaultFramebuffer::DefaultFramebuffer):
  3895. (gl::DefaultFramebuffer::completeness):
  3896. * src/libGLESv2/Program.cpp:
  3897. (gl::Program::Program):
  3898. (gl::Program::getSamplerMapping):
  3899. (gl::Program::getUniformLocation):
  3900. (gl::Program::setUniform1iv):
  3901. (gl::Program::applyUniforms):
  3902. (gl::Program::packVaryings):
  3903. (gl::Program::linkVaryings):
  3904. (gl::Program::link):
  3905. (gl::Program::defineUniform):
  3906. (gl::Program::createUniform):
  3907. (gl::Program::applyUniform1iv):
  3908. (gl::Program::resetInfoLog):
  3909. (gl::Program::unlink):
  3910. (gl::Program::getActiveAttribute):
  3911. (gl::Program::getActiveUniform):
  3912. (gl::Program::getDxDepthRangeLocation):
  3913. * src/libGLESv2/Program.h:
  3914. * src/libGLESv2/RefCountObject.cpp:
  3915. (gl::RefCountObject::~RefCountObject):
  3916. * src/libGLESv2/Renderbuffer.cpp:
  3917. (gl::RenderbufferStorage::RenderbufferStorage):
  3918. (gl::RenderbufferStorage::isFloatingPoint):
  3919. (gl::Colorbuffer::Colorbuffer):
  3920. (gl::DepthStencilbuffer::DepthStencilbuffer):
  3921. * src/libGLESv2/Renderbuffer.h:
  3922. * src/libGLESv2/Shader.cpp:
  3923. (gl::Shader::Shader):
  3924. (gl::Shader::parseVaryings):
  3925. (gl::Shader::compileToHLSL):
  3926. (gl::VertexShader::parseAttributes):
  3927. * src/libGLESv2/Texture.cpp:
  3928. (gl::Texture::Texture):
  3929. (gl::Texture::isFloatingPoint):
  3930. (gl::Texture::isRenderableFormat):
  3931. (gl::Texture::selectFormat):
  3932. (gl::Texture::loadImageData):
  3933. (gl::Texture::loadAlphaFloatImageData):
  3934. (gl::Texture::loadAlphaHalfFloatImageData):
  3935. (gl::Texture::loadLuminanceImageData):
  3936. (gl::Texture::loadLuminanceFloatImageData):
  3937. (gl::Texture::loadLuminanceHalfFloatImageData):
  3938. (gl::Texture::loadLuminanceAlphaImageData):
  3939. (gl::Texture::loadLuminanceAlphaFloatImageData):
  3940. (gl::Texture::loadLuminanceAlphaHalfFloatImageData):
  3941. (gl::Texture::loadRGBFloatImageData):
  3942. (gl::Texture::loadRGBHalfFloatImageData):
  3943. (gl::Texture::loadRGBAFloatImageData):
  3944. (gl::Texture::loadRGBAHalfFloatImageData):
  3945. (gl::Texture::createSurface):
  3946. (gl::Texture::setImage):
  3947. (gl::Texture::setCompressedImage):
  3948. (gl::Texture::subImage):
  3949. (gl::Texture::subImageCompressed):
  3950. (gl::Texture::copyNonRenderable):
  3951. (gl::Texture::getD3DFormat):
  3952. (gl::Texture::isRenderable):
  3953. (gl::Texture2D::Texture2D):
  3954. (gl::Texture2D::~Texture2D):
  3955. (gl::Texture2D::redefineTexture):
  3956. (gl::Texture2D::setImage):
  3957. (gl::Texture2D::setCompressedImage):
  3958. (gl::Texture2D::copyImage):
  3959. (gl::Texture2D::copySubImage):
  3960. (gl::Texture2D::isComplete):
  3961. (gl::Texture2D::createTexture):
  3962. (gl::Texture2D::convertToRenderTarget):
  3963. (gl::Texture2D::generateMipmaps):
  3964. (gl::Texture2D::getColorbuffer):
  3965. (gl::Texture2D::getRenderTarget):
  3966. (gl::TextureCubeMap::TextureCubeMap):
  3967. (gl::TextureCubeMap::~TextureCubeMap):
  3968. (gl::TextureCubeMap::subImage):
  3969. (gl::TextureCubeMap::subImageCompressed):
  3970. (gl::TextureCubeMap::isComplete):
  3971. (gl::TextureCubeMap::createTexture):
  3972. (gl::TextureCubeMap::convertToRenderTarget):
  3973. (gl::TextureCubeMap::redefineTexture):
  3974. (gl::TextureCubeMap::copyImage):
  3975. (gl::TextureCubeMap::copySubImage):
  3976. (gl::TextureCubeMap::generateMipmaps):
  3977. (gl::TextureCubeMap::getColorbuffer):
  3978. (gl::TextureCubeMap::getRenderTarget):
  3979. (gl::Texture::TextureColorbufferProxy::TextureColorbufferProxy):
  3980. (gl::Texture::TextureColorbufferProxy::isFloatingPoint):
  3981. * src/libGLESv2/Texture.h:
  3982. * src/libGLESv2/geometry/IndexDataManager.cpp:
  3983. (gl::IndexDataManager::IndexDataManager):
  3984. (gl::IndexDataManager::~IndexDataManager):
  3985. (gl::convertIndices):
  3986. (gl::computeRange):
  3987. (gl::IndexDataManager::prepareIndexData):
  3988. (gl::IndexDataManager::indexSize):
  3989. (gl::IndexDataManager::typeSize):
  3990. (gl::IndexBuffer::IndexBuffer):
  3991. (gl::IndexBuffer::~IndexBuffer):
  3992. (gl::IndexBuffer::getBuffer):
  3993. (gl::IndexBuffer::unmap):
  3994. (gl::StreamingIndexBuffer::StreamingIndexBuffer):
  3995. (gl::StreamingIndexBuffer::~StreamingIndexBuffer):
  3996. (gl::StreamingIndexBuffer::map):
  3997. (gl::StreamingIndexBuffer::reserveSpace):
  3998. (gl::StaticIndexBuffer::StaticIndexBuffer):
  3999. (gl::StaticIndexBuffer::~StaticIndexBuffer):
  4000. (gl::StaticIndexBuffer::map):
  4001. (gl::StaticIndexBuffer::reserveSpace):
  4002. (gl::StaticIndexBuffer::lookupType):
  4003. (gl::StaticIndexBuffer::lookupRange):
  4004. (gl::StaticIndexBuffer::addRange):
  4005. * src/libGLESv2/geometry/IndexDataManager.h:
  4006. (gl::IndexBuffer::size):
  4007. * src/libGLESv2/geometry/VertexDataManager.cpp:
  4008. (gl::VertexDataManager::VertexDataManager):
  4009. (gl::VertexDataManager::~VertexDataManager):
  4010. (gl::VertexDataManager::writeAttributeData):
  4011. (gl::VertexDataManager::prepareVertexData):
  4012. (gl::VertexDataManager::spaceRequired):
  4013. (gl::VertexDataManager::checkVertexCaps):
  4014. (gl::VertexDataManager::typeIndex):
  4015. (gl::VertexDataManager::setupAttributes):
  4016. (gl::VertexBuffer::VertexBuffer):
  4017. (gl::VertexBuffer::~VertexBuffer):
  4018. (gl::VertexBuffer::unmap):
  4019. (gl::VertexBuffer::getBuffer):
  4020. (gl::ConstantVertexBuffer::ConstantVertexBuffer):
  4021. (gl::ConstantVertexBuffer::~ConstantVertexBuffer):
  4022. (gl::ArrayVertexBuffer::ArrayVertexBuffer):
  4023. (gl::ArrayVertexBuffer::~ArrayVertexBuffer):
  4024. (gl::ArrayVertexBuffer::addRequiredSpace):
  4025. (gl::ArrayVertexBuffer::addRequiredSpaceFor):
  4026. (gl::StreamingVertexBuffer::StreamingVertexBuffer):
  4027. (gl::StreamingVertexBuffer::~StreamingVertexBuffer):
  4028. (gl::StreamingVertexBuffer::map):
  4029. (gl::StreamingVertexBuffer::reserveRequiredSpace):
  4030. (gl::StaticVertexBuffer::StaticVertexBuffer):
  4031. (gl::StaticVertexBuffer::~StaticVertexBuffer):
  4032. (gl::StaticVertexBuffer::map):
  4033. (gl::StaticVertexBuffer::reserveRequiredSpace):
  4034. (gl::StaticVertexBuffer::lookupAttribute):
  4035. (gl::VertexDataManager::formatConverter):
  4036. * src/libGLESv2/geometry/VertexDataManager.h:
  4037. (gl::ArrayVertexBuffer::size):
  4038. (gl::VertexDataManager::dirtyCurrentValue):
  4039. * src/libGLESv2/geometry/backend.cpp: Removed.
  4040. * src/libGLESv2/geometry/backend.h: Removed.
  4041. * src/libGLESv2/geometry/dx9.cpp: Removed.
  4042. * src/libGLESv2/geometry/dx9.h: Removed.
  4043. * src/libGLESv2/libGLESv2.cpp:
  4044. * src/libGLESv2/libGLESv2.def:
  4045. * src/libGLESv2/libGLESv2.vcproj:
  4046. * src/libGLESv2/utilities.cpp:
  4047. (gl::UniformComponentCount):
  4048. (gl::UniformComponentType):
  4049. (gl::ComputePixelSize):
  4050. (gl::CheckTextureFormatType):
  4051. (gl::IsColorRenderable):
  4052. (gl::IsDepthRenderable):
  4053. (gl::IsStencilRenderable):
  4054. (es2dx::GetAlphaSize):
  4055. (es2dx::GetRedSize):
  4056. (es2dx::GetGreenSize):
  4057. (es2dx::GetBlueSize):
  4058. (es2dx::GetDepthSize):
  4059. (es2dx::ConvertPrimitiveType):
  4060. (dx2es::ConvertBackBufferFormat):
  4061. (dx2es::ConvertDepthStencilFormat):
  4062. * src/libGLESv2/utilities.h:
  4063. 2011-01-17 Dan Bernstein <mitz@apple.com>
  4064. Rubber-stamped by Mark Rowe.
  4065. Update xcodeproj svn:ignore to include xcuserdata.
  4066. * ANGLE.xcodeproj: Modified property svn:ignore.
  4067. * src/build_angle.xcodeproj: Modified property svn:ignore.
  4068. 2010-12-01 Steve Falkenburg <sfalken@apple.com>
  4069. Reviewed by Adam Roben.
  4070. vcproj changes can't be applied cleanly by the Windows EWS bot
  4071. https://bugs.webkit.org/show_bug.cgi?id=50328
  4072. * src/libEGL/libEGL.vcproj: Added property svn:eol-style.
  4073. * src/libGLESv2/libGLESv2.vcproj: Added property svn:eol-style.
  4074. 2010-11-03 Darin Adler <darin@apple.com>
  4075. Updated Xcode projects by opening them with Xcode 3.2.4.
  4076. Updated svn:ignore for Xcode projects.
  4077. * ANGLE.xcodeproj: Added property svn:ignore.
  4078. * ANGLE.xcodeproj/project.pbxproj: Updated with Xcode 3.2.4.
  4079. * src/build_angle.xcodeproj: Added property svn:ignore.
  4080. * src/build_angle.xcodeproj/project.pbxproj: Updated with Xcode 3.2.4.
  4081. 2010-09-01 Zhenyao Mo <zmo@google.com>
  4082. Reviewed by Kenneth Russell.
  4083. Roll ANGLE under webkit to r402
  4084. https://bugs.webkit.org/show_bug.cgi?id=45004
  4085. * ANGLE.xcodeproj/project.pbxproj:
  4086. * include/GLES2/gl2ext.h:
  4087. * include/GLSLANG/ResourceLimits.h: Removed.
  4088. * include/GLSLANG/ShaderLang.h:
  4089. * src/compiler/BaseTypes.h:
  4090. (getPrecisionString):
  4091. (getBasicString):
  4092. (IsSampler):
  4093. (getQualifierString):
  4094. * src/compiler/Initialize.cpp:
  4095. (BuiltInConstants):
  4096. (IdentifyBuiltIns):
  4097. * src/compiler/Initialize.h:
  4098. * src/compiler/InitializeDll.cpp:
  4099. (InitProcess):
  4100. (DetachProcess):
  4101. (InitThread):
  4102. (DetachThread):
  4103. * src/compiler/InitializeDll.h:
  4104. * src/compiler/InitializeParseContext.h:
  4105. * src/compiler/Intermediate.cpp:
  4106. (GetHigherPrecision):
  4107. (TIntermediate::addBinaryMath):
  4108. (TIntermediate::setAggregateOperator):
  4109. (TIntermediate::addComma):
  4110. (TIntermediate::postProcess):
  4111. (TIntermBinary::promote):
  4112. (CompareStruct):
  4113. * src/compiler/OutputGLSL.cpp:
  4114. (TOutputGLSL::writeFunctionParameters):
  4115. (TOutputGLSL::visitUnary):
  4116. (TOutputGLSL::visitBranch):
  4117. * src/compiler/OutputHLSL.cpp:
  4118. (sh::OutputHLSL::header):
  4119. (sh::OutputHLSL::visitBinary):
  4120. (sh::OutputHLSL::visitAggregate):
  4121. (sh::OutputHLSL::handleExcessiveLoop):
  4122. (sh::OutputHLSL::addConstructor):
  4123. * src/compiler/ParseHelper.cpp:
  4124. (TParseContext::constructorErrorCheck):
  4125. (TParseContext::samplerErrorCheck):
  4126. (TParseContext::paramErrorCheck):
  4127. (TParseContext::findFunction):
  4128. (TParseContext::executeInitializer):
  4129. (TParseContext::addConstructor):
  4130. (TParseContext::addConstStruct):
  4131. (FreeParseContextIndex):
  4132. (GetGlobalParseContext):
  4133. * src/compiler/PoolAlloc.h:
  4134. (TPoolAllocator::tHeader::tHeader):
  4135. (pool_allocator::allocate):
  4136. (pool_allocator::deallocate):
  4137. * src/compiler/ShaderLang.cpp:
  4138. (ShInitialize):
  4139. (ShFinalize):
  4140. (ShInitBuiltInResource):
  4141. * src/compiler/SymbolTable.cpp:
  4142. (TType::getStructSize):
  4143. * src/compiler/SymbolTable.h:
  4144. (TVariable::setQualifier):
  4145. * src/compiler/Types.h:
  4146. (TType::TType):
  4147. (TType::getBasicType):
  4148. (TType::setBasicType):
  4149. (TType::getPrecision):
  4150. (TType::setPrecision):
  4151. (TType::getQualifier):
  4152. (TType::setQualifier):
  4153. (TType::getNominalSize):
  4154. (TType::setNominalSize):
  4155. (TType::isMatrix):
  4156. (TType::setMatrix):
  4157. (TType::isArray):
  4158. (TType::getArraySize):
  4159. (TType::setArraySize):
  4160. (TType::getMaxArraySize):
  4161. (TType::setMaxArraySize):
  4162. (TType::clearArrayness):
  4163. (TType::setArrayInformationType):
  4164. (TType::getArrayInformationType):
  4165. (TType::isVector):
  4166. (TType::isScalar):
  4167. (TType::setStruct):
  4168. (TType::getTypeName):
  4169. (TType::setTypeName):
  4170. (TType::isField):
  4171. (TType::getFieldName):
  4172. (TType::setFieldName):
  4173. (TType::getBasicString):
  4174. (TType::getPrecisionString):
  4175. (TType::getQualifierString):
  4176. * src/compiler/glslang.l:
  4177. * src/compiler/glslang.y:
  4178. * src/compiler/intermediate.h:
  4179. (TIntermNode::getLine):
  4180. (TIntermNode::setLine):
  4181. (TIntermTyped::getAsTyped):
  4182. (TIntermTyped::setType):
  4183. (TIntermTyped::getType):
  4184. (TIntermTyped::getTypePointer):
  4185. (TIntermTyped::getBasicType):
  4186. (TIntermTyped::getQualifier):
  4187. (TIntermTyped::getPrecision):
  4188. (TIntermTyped::getNominalSize):
  4189. (TIntermTyped::isMatrix):
  4190. (TIntermTyped::isArray):
  4191. (TIntermTyped::isVector):
  4192. (TIntermTyped::isScalar):
  4193. (TIntermTyped::getBasicString):
  4194. (TIntermTyped::getQualifierString):
  4195. (TIntermSymbol::getId):
  4196. (TIntermSymbol::getSymbol):
  4197. (TIntermOperator::setOp):
  4198. (TIntermBinary::setLeft):
  4199. (TIntermBinary::setRight):
  4200. (TIntermBinary::getLeft):
  4201. (TIntermBinary::getRight):
  4202. (TIntermUnary::setOperand):
  4203. (TIntermUnary::getOperand):
  4204. (TIntermAggregate::getAsAggregate):
  4205. (TIntermAggregate::getSequence):
  4206. (TIntermAggregate::setName):
  4207. (TIntermAggregate::getName):
  4208. (TIntermAggregate::setUserDefined):
  4209. (TIntermAggregate::isUserDefined):
  4210. (TIntermAggregate::getQualifier):
  4211. (TIntermAggregate::setOptimize):
  4212. (TIntermAggregate::setDebug):
  4213. (TIntermSelection::getCondition):
  4214. (TIntermSelection::getTrueBlock):
  4215. (TIntermSelection::getFalseBlock):
  4216. (TIntermSelection::getAsSelectionNode):
  4217. * src/compiler/parseConst.cpp:
  4218. (TConstTraverser::TConstTraverser):
  4219. * src/compiler/preprocessor/atom.c:
  4220. (InitAtomTable):
  4221. * src/compiler/preprocessor/atom.h:
  4222. * src/compiler/preprocessor/compile.h:
  4223. * src/compiler/preprocessor/cpp.c:
  4224. * src/compiler/preprocessor/cpp.h:
  4225. * src/compiler/preprocessor/cppstruct.c:
  4226. * src/compiler/preprocessor/memory.c:
  4227. * src/compiler/preprocessor/memory.h:
  4228. * src/compiler/preprocessor/parser.h:
  4229. * src/compiler/preprocessor/preprocess.h:
  4230. * src/compiler/preprocessor/scanner.c:
  4231. * src/compiler/preprocessor/scanner.h:
  4232. * src/compiler/preprocessor/slglobals.h:
  4233. * src/compiler/preprocessor/symbols.c:
  4234. (NewSymbol):
  4235. * src/compiler/preprocessor/symbols.h:
  4236. * src/compiler/preprocessor/tokens.c:
  4237. (RecordToken):
  4238. * src/compiler/preprocessor/tokens.h:
  4239. * src/libEGL/Display.cpp:
  4240. (egl::Display::Display):
  4241. (egl::Display::initialize):
  4242. (egl::Display::terminate):
  4243. (egl::Display::createDevice):
  4244. (egl::Display::createWindowSurface):
  4245. (egl::Display::createContext):
  4246. (egl::Display::getMultiSampleSupport):
  4247. (egl::Display::getCompressedTextureSupport):
  4248. * src/libEGL/Display.h:
  4249. * src/libEGL/Surface.cpp:
  4250. (egl::Surface::Surface):
  4251. (egl::Surface::resetSwapChain):
  4252. (egl::Surface::getWindowHandle):
  4253. (egl::Surface::writeRecordableFlipState):
  4254. (egl::Surface::applyFlipState):
  4255. (egl::Surface::releaseRecordedState):
  4256. (egl::Surface::checkForWindowResize):
  4257. (egl::Surface::swap):
  4258. * src/libEGL/Surface.h:
  4259. * src/libEGL/libEGL.cpp:
  4260. * src/libEGL/libEGL.vcproj:
  4261. * src/libGLESv2/Blit.cpp:
  4262. (gl::Blit::setVertexShader):
  4263. (gl::Blit::setPixelShader):
  4264. (gl::Blit::setFormatConvertShaders):
  4265. * src/libGLESv2/Buffer.cpp:
  4266. (gl::Buffer::Buffer):
  4267. * src/libGLESv2/Buffer.h:
  4268. * src/libGLESv2/Context.cpp:
  4269. (gl::Context::Context):
  4270. (gl::Context::~Context):
  4271. (gl::Context::makeCurrent):
  4272. (gl::Context::markAllStateDirty):
  4273. (gl::Context::getReadFramebufferHandle):
  4274. (gl::Context::getDrawFramebufferHandle):
  4275. (gl::Context::getRenderbufferHandle):
  4276. (gl::Context::getArrayBufferHandle):
  4277. (gl::Context::setVertexAttribState):
  4278. (gl::Context::createBuffer):
  4279. (gl::Context::createProgram):
  4280. (gl::Context::createShader):
  4281. (gl::Context::createTexture):
  4282. (gl::Context::createRenderbuffer):
  4283. (gl::Context::deleteBuffer):
  4284. (gl::Context::deleteShader):
  4285. (gl::Context::deleteProgram):
  4286. (gl::Context::deleteTexture):
  4287. (gl::Context::deleteRenderbuffer):
  4288. (gl::Context::getBuffer):
  4289. (gl::Context::getShader):
  4290. (gl::Context::getProgram):
  4291. (gl::Context::getTexture):
  4292. (gl::Context::getRenderbuffer):
  4293. (gl::Context::getReadFramebuffer):
  4294. (gl::Context::getDrawFramebuffer):
  4295. (gl::Context::bindArrayBuffer):
  4296. (gl::Context::bindElementArrayBuffer):
  4297. (gl::Context::bindTexture2D):
  4298. (gl::Context::bindTextureCubeMap):
  4299. (gl::Context::bindReadFramebuffer):
  4300. (gl::Context::bindDrawFramebuffer):
  4301. (gl::Context::bindRenderbuffer):
  4302. (gl::Context::useProgram):
  4303. (gl::Context::setFramebufferZero):
  4304. (gl::Context::setRenderbufferStorage):
  4305. (gl::Context::getFramebuffer):
  4306. (gl::Context::getArrayBuffer):
  4307. (gl::Context::getElementArrayBuffer):
  4308. (gl::Context::getCurrentProgram):
  4309. (gl::Context::getTexture2D):
  4310. (gl::Context::getTextureCubeMap):
  4311. (gl::Context::getSamplerTexture):
  4312. (gl::Context::getFloatv):
  4313. (gl::Context::getIntegerv):
  4314. (gl::Context::getQueryParameterInfo):
  4315. (gl::Context::applyRenderTarget):
  4316. (gl::Context::applyState):
  4317. (gl::Context::applyIndexBuffer):
  4318. (gl::Context::readPixels):
  4319. (gl::Context::clear):
  4320. (gl::Context::finish):
  4321. (gl::Context::flush):
  4322. (gl::Context::supportsShaderModel3):
  4323. (gl::Context::getMaxSupportedSamples):
  4324. (gl::Context::getNearestSupportedSamples):
  4325. (gl::Context::supportsCompressedTextures):
  4326. (gl::Context::detachBuffer):
  4327. (gl::Context::detachTexture):
  4328. (gl::Context::detachFramebuffer):
  4329. (gl::Context::detachRenderbuffer):
  4330. (gl::Context::getIncompleteTexture):
  4331. (gl::Context::initExtensionString):
  4332. (gl::Context::blitFramebuffer):
  4333. * src/libGLESv2/Context.h:
  4334. (gl::AttributeState::AttributeState):
  4335. * src/libGLESv2/Framebuffer.cpp:
  4336. (gl::Framebuffer::Framebuffer):
  4337. (gl::Framebuffer::~Framebuffer):
  4338. (gl::Framebuffer::lookupRenderbuffer):
  4339. (gl::Framebuffer::setColorbuffer):
  4340. (gl::Framebuffer::setDepthbuffer):
  4341. (gl::Framebuffer::setStencilbuffer):
  4342. (gl::Framebuffer::detachTexture):
  4343. (gl::Framebuffer::detachRenderbuffer):
  4344. (gl::Framebuffer::getRenderTargetSerial):
  4345. (gl::Framebuffer::getRenderTarget):
  4346. (gl::Framebuffer::getDepthStencil):
  4347. (gl::Framebuffer::getDepthbufferSerial):
  4348. (gl::Framebuffer::getStencilbufferSerial):
  4349. (gl::Framebuffer::getColorbuffer):
  4350. (gl::Framebuffer::getDepthbuffer):
  4351. (gl::Framebuffer::getStencilbuffer):
  4352. (gl::Framebuffer::getColorbufferHandle):
  4353. (gl::Framebuffer::getDepthbufferHandle):
  4354. (gl::Framebuffer::getStencilbufferHandle):
  4355. (gl::Framebuffer::hasStencil):
  4356. (gl::Framebuffer::isMultisample):
  4357. (gl::Framebuffer::completeness):
  4358. (gl::DefaultFramebuffer::DefaultFramebuffer):
  4359. (gl::Framebuffer::getSamples):
  4360. (gl::DefaultFramebuffer::completeness):
  4361. * src/libGLESv2/Framebuffer.h:
  4362. * src/libGLESv2/Program.cpp:
  4363. (gl::Program::Program):
  4364. (gl::Program::~Program):
  4365. (gl::Program::attachShader):
  4366. (gl::Program::detachShader):
  4367. (gl::Program::linkVaryings):
  4368. (gl::Program::link):
  4369. (gl::Program::unlink):
  4370. (gl::Program::release):
  4371. (gl::Program::addRef):
  4372. (gl::Program::getRefCount):
  4373. (gl::Program::getDxViewportLocation):
  4374. * src/libGLESv2/Program.h:
  4375. * src/libGLESv2/RefCountObject.cpp: Added.
  4376. (gl::RefCountObject::RefCountObject):
  4377. (gl::RefCountObject::~RefCountObject):
  4378. (gl::RefCountObject::addRef):
  4379. (gl::RefCountObject::release):
  4380. (gl::RefCountObjectBindingPointer::set):
  4381. * src/libGLESv2/RefCountObject.h: Added.
  4382. (gl::RefCountObject::id):
  4383. (gl::RefCountObjectBindingPointer::RefCountObjectBindingPointer):
  4384. (gl::RefCountObjectBindingPointer::~RefCountObjectBindingPointer):
  4385. (gl::RefCountObjectBindingPointer::get):
  4386. (gl::RefCountObjectBindingPointer::id):
  4387. (gl::RefCountObjectBindingPointer::operator ! ):
  4388. (gl::BindingPointer::set):
  4389. (gl::BindingPointer::get):
  4390. (gl::BindingPointer::operator -> ):
  4391. * src/libGLESv2/Renderbuffer.cpp:
  4392. (gl::Renderbuffer::Renderbuffer):
  4393. (gl::Renderbuffer::~Renderbuffer):
  4394. (gl::Renderbuffer::isColorbuffer):
  4395. (gl::Renderbuffer::isDepthbuffer):
  4396. (gl::Renderbuffer::isStencilbuffer):
  4397. (gl::Renderbuffer::getRenderTarget):
  4398. (gl::Renderbuffer::getDepthStencil):
  4399. (gl::Renderbuffer::getWidth):
  4400. (gl::Renderbuffer::getHeight):
  4401. (gl::Renderbuffer::getFormat):
  4402. (gl::Renderbuffer::getD3DFormat):
  4403. (gl::Renderbuffer::getSerial):
  4404. (gl::Renderbuffer::setStorage):
  4405. (gl::RenderbufferStorage::RenderbufferStorage):
  4406. (gl::RenderbufferStorage::~RenderbufferStorage):
  4407. (gl::RenderbufferStorage::isColorbuffer):
  4408. (gl::RenderbufferStorage::isDepthbuffer):
  4409. (gl::RenderbufferStorage::isStencilbuffer):
  4410. (gl::RenderbufferStorage::getRenderTarget):
  4411. (gl::RenderbufferStorage::getDepthStencil):
  4412. (gl::RenderbufferStorage::getWidth):
  4413. (gl::RenderbufferStorage::getHeight):
  4414. (gl::RenderbufferStorage::setSize):
  4415. (gl::RenderbufferStorage::getFormat):
  4416. (gl::RenderbufferStorage::getD3DFormat):
  4417. (gl::RenderbufferStorage::getSamples):
  4418. (gl::RenderbufferStorage::getSerial):
  4419. (gl::RenderbufferStorage::issueSerial):
  4420. (gl::Colorbuffer::Colorbuffer):
  4421. (gl::Colorbuffer::isColorbuffer):
  4422. (gl::Colorbuffer::getRedSize):
  4423. (gl::Colorbuffer::getGreenSize):
  4424. (gl::Colorbuffer::getBlueSize):
  4425. (gl::Colorbuffer::getAlphaSize):
  4426. (gl::DepthStencilbuffer::DepthStencilbuffer):
  4427. (gl::DepthStencilbuffer::~DepthStencilbuffer):
  4428. (gl::DepthStencilbuffer::isDepthbuffer):
  4429. (gl::DepthStencilbuffer::isStencilbuffer):
  4430. (gl::DepthStencilbuffer::getDepthSize):
  4431. (gl::DepthStencilbuffer::getStencilSize):
  4432. (gl::DepthStencilbuffer::getDepthStencil):
  4433. (gl::Depthbuffer::Depthbuffer):
  4434. (gl::Depthbuffer::~Depthbuffer):
  4435. (gl::Depthbuffer::isDepthbuffer):
  4436. (gl::Depthbuffer::isStencilbuffer):
  4437. (gl::Stencilbuffer::Stencilbuffer):
  4438. (gl::Stencilbuffer::~Stencilbuffer):
  4439. (gl::Stencilbuffer::isDepthbuffer):
  4440. (gl::Stencilbuffer::isStencilbuffer):
  4441. * src/libGLESv2/Renderbuffer.h:
  4442. (gl::Renderbuffer::getStorage):
  4443. * src/libGLESv2/ResourceManager.cpp: Added.
  4444. (gl::ResourceManager::ResourceManager):
  4445. (gl::ResourceManager::~ResourceManager):
  4446. (gl::ResourceManager::addRef):
  4447. (gl::ResourceManager::release):
  4448. (gl::ResourceManager::createBuffer):
  4449. (gl::ResourceManager::createShader):
  4450. (gl::ResourceManager::createProgram):
  4451. (gl::ResourceManager::createTexture):
  4452. (gl::ResourceManager::createRenderbuffer):
  4453. (gl::ResourceManager::deleteBuffer):
  4454. (gl::ResourceManager::deleteShader):
  4455. (gl::ResourceManager::deleteProgram):
  4456. (gl::ResourceManager::deleteTexture):
  4457. (gl::ResourceManager::deleteRenderbuffer):
  4458. (gl::ResourceManager::getBuffer):
  4459. (gl::ResourceManager::getShader):
  4460. (gl::ResourceManager::getTexture):
  4461. (gl::ResourceManager::getProgram):
  4462. (gl::ResourceManager::getRenderbuffer):
  4463. (gl::ResourceManager::setRenderbuffer):
  4464. (gl::ResourceManager::checkBufferAllocation):
  4465. (gl::ResourceManager::checkTextureAllocation):
  4466. (gl::ResourceManager::checkRenderbufferAllocation):
  4467. * src/libGLESv2/ResourceManager.h: Added.
  4468. * src/libGLESv2/Shader.cpp:
  4469. (gl::Shader::Shader):
  4470. (gl::Shader::addRef):
  4471. (gl::Shader::release):
  4472. (gl::Shader::getRefCount):
  4473. (gl::Shader::parseVaryings):
  4474. (gl::VertexShader::VertexShader):
  4475. (gl::FragmentShader::FragmentShader):
  4476. * src/libGLESv2/Shader.h:
  4477. * src/libGLESv2/Texture.cpp:
  4478. (gl::Texture::Image::Image):
  4479. (gl::Texture::Texture):
  4480. (gl::Texture::getBlitter):
  4481. (gl::Texture::selectFormat):
  4482. (gl::Texture::loadImageData):
  4483. (gl::Texture::loadAlphaImageData):
  4484. (gl::Texture::loadLuminanceImageData):
  4485. (gl::Texture::loadLuminanceAlphaImageData):
  4486. (gl::Texture::loadRGBUByteImageData):
  4487. (gl::Texture::loadRGB565ImageData):
  4488. (gl::Texture::loadRGBAUByteImageData):
  4489. (gl::Texture::loadRGBA4444ImageData):
  4490. (gl::Texture::loadRGBA5551ImageData):
  4491. (gl::Texture::loadBGRAImageData):
  4492. (gl::Texture::createSurface):
  4493. (gl::Texture::setImage):
  4494. (gl::Texture::setCompressedImage):
  4495. (gl::Texture::subImage):
  4496. (gl::Texture::subImageCompressed):
  4497. (gl::Texture2D::Texture2D):
  4498. (gl::Texture2D::getFormat):
  4499. (gl::Texture2D::setCompressedImage):
  4500. (gl::Texture2D::subImage):
  4501. (gl::Texture2D::subImageCompressed):
  4502. (gl::Texture2D::copyImage):
  4503. (gl::Texture2D::copySubImage):
  4504. (gl::Texture2D::isCompressed):
  4505. (gl::Texture2D::getColorbuffer):
  4506. (gl::TextureCubeMap::TextureCubeMap):
  4507. (gl::TextureCubeMap::getFormat):
  4508. (gl::TextureCubeMap::setCompressedImage):
  4509. (gl::TextureCubeMap::subImage):
  4510. (gl::TextureCubeMap::subImageCompressed):
  4511. (gl::TextureCubeMap::isCompressed):
  4512. (gl::TextureCubeMap::copyImage):
  4513. (gl::TextureCubeMap::copySubImage):
  4514. (gl::TextureCubeMap::getColorbuffer):
  4515. (gl::Texture::TextureColorbufferProxy::addRef):
  4516. (gl::Texture::TextureColorbufferProxy::release):
  4517. (gl::Texture::TextureColorbufferProxy::getWidth):
  4518. (gl::Texture::TextureColorbufferProxy::getHeight):
  4519. (gl::Texture::TextureColorbufferProxy::getFormat):
  4520. * src/libGLESv2/Texture.h:
  4521. * src/libGLESv2/libGLESv2.cpp:
  4522. * src/libGLESv2/libGLESv2.def:
  4523. * src/libGLESv2/libGLESv2.vcproj:
  4524. * src/libGLESv2/main.h:
  4525. * src/libGLESv2/utilities.cpp:
  4526. (gl::ComputeCompressedPitch):
  4527. (gl::ComputeCompressedSize):
  4528. (gl::IsCompressed):
  4529. (gl::ComputePixelSize):
  4530. (gl::CheckTextureFormatType):
  4531. (es2dx::ConvertRenderbufferFormat):
  4532. (es2dx::GetSamplesFromMultisampleType):
  4533. (es2dx::GetMultisampleTypeFromSamples):
  4534. * src/libGLESv2/utilities.h:
  4535. 2010-08-17 Chris Marrin <cmarrin@apple.com>
  4536. Unreviewed.
  4537. Moved previous link error fix to Base.xcconfig.
  4538. * ANGLE.xcodeproj/project.pbxproj:
  4539. * Configurations/Base.xcconfig:
  4540. 2010-08-17 Chris Marrin <cmarrin@apple.com>
  4541. Unreviewed.
  4542. Got rid of link errors in WebCore.
  4543. Changed GCC_INLINES_ARE_PRIVATE_EXTERN to YES and
  4544. GCC_SYMBOLS_PRIVATE_EXTERN to NO to match WebCore
  4545. flags.
  4546. * ANGLE.xcodeproj/project.pbxproj:
  4547. 2010-08-04 Kenneth Russell <kbr@google.com>
  4548. Reviewed by Dimitri Glazkov.
  4549. Update ANGLE to r352
  4550. https://bugs.webkit.org/show_bug.cgi?id=43500
  4551. Updated ANGLE to r352 (July 26, 2010). Built WebKit to test.
  4552. * include/GLSLANG/ShaderLang.h:
  4553. * src/compiler/Initialize.cpp:
  4554. (BuiltInFunctionsCommon):
  4555. (BuiltInFunctionsVertex):
  4556. (BuiltInFunctionsFragment):
  4557. (StandardUniforms):
  4558. (DefaultPrecisionVertex):
  4559. (DefaultPrecisionFragment):
  4560. (BuiltInConstants):
  4561. (TBuiltIns::initialize):
  4562. (IdentifyBuiltIns):
  4563. * src/compiler/Initialize.h:
  4564. (TBuiltIns::getBuiltInStrings):
  4565. * src/compiler/OutputGLSL.cpp:
  4566. (TOutputGLSL::visitSelection):
  4567. * src/compiler/ShHandle.h:
  4568. (TCompiler::getLanguage):
  4569. (TCompiler::getSpec):
  4570. (TCompiler::getSymbolTable):
  4571. (TCompiler::getInfoSink):
  4572. * src/compiler/ShaderLang.cpp:
  4573. (InitializeSymbolTable):
  4574. (GenerateBuiltInSymbolTable):
  4575. (ShInitialize):
  4576. (ShConstructCompiler):
  4577. (ShFinalize):
  4578. (ShCompile):
  4579. * src/compiler/SymbolTable.h:
  4580. (TSymbolTable::atBuiltInLevel):
  4581. (TSymbolTable::atGlobalLevel):
  4582. (TSymbolTable::push):
  4583. (TSymbolTable::getGlobalLevel):
  4584. (TSymbolTable::currentLevel):
  4585. * src/libGLESv2/Shader.cpp:
  4586. (gl::Shader::Shader):
  4587. (gl::Shader::compileToHLSL):
  4588. 2010-08-03 Mark Rowe <mrowe@apple.com>
  4589. Rubber-stamped by Adele Peterson.
  4590. Remove some unnecessary files from the ANGLE tree.
  4591. * src/compiler/tools/COPYING.bison: Removed.
  4592. * src/compiler/tools/COPYING.flex: Removed.
  4593. * src/compiler/tools/README: Removed.
  4594. * src/compiler/tools/bison.hairy: Removed.
  4595. * src/compiler/tools/bison.simple: Removed.
  4596. 2010-08-03 Mark Rowe <mrowe@apple.com>
  4597. Rubber-stamped by Adele Peterson.
  4598. Clean up the ANGLE Xcode project.
  4599. Main changes include:
  4600. • Adding a Production configuration.
  4601. • Modifying the library name from libangle.a to libANGLE.a.
  4602. • Installing the headers in a subdirectory of /usr/local/include to avoid polluting the top-level directory.
  4603. • Generating derived sources in to the built products directory so they're saved along with the symroot.
  4604. • Switching to using .xcconfig files for maximum cleanliness.
  4605. * ANGLE.xcodeproj/project.pbxproj:
  4606. * Configurations/ANGLE.xcconfig: Added.
  4607. * Configurations/Base.xcconfig: Added.
  4608. * Configurations/DebugRelease.xcconfig: Added.
  4609. 2010-08-02 Paul Sawaya <psawaya@apple.com>
  4610. Reviewed by Adele Peterson.
  4611. Add ANGLE library to WebKit. From the repository (http://angleproject.googlecode.com) as of July 22.
  4612. https://bugs.webkit.org/show_bug.cgi?id=42789