Edit

kc3-lang/angle/src/compiler/translator/RewriteDoWhile.h

Branch :

  • Show log

    Commit

  • Author : Corentin Wallez
    Date : 2015-09-28 12:19:26
    Hash : d4b5054d
    Message : compiler: Rewrite do-while loops as while loops This works around a Mac driver shader compiler bug that makes many do-while loops cause GPU-hangs when ran. BUG=angleproject:891 Change-Id: I29828d6ea9e887ad0ed0c577f1deb41fb632a900 Reviewed-on: https://chromium-review.googlesource.com/302465 Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Corentin Wallez <cwallez@chromium.org>

  • src/compiler/translator/RewriteDoWhile.h
  • //
    // Copyright (c) 2015 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    // RewriteDoWhile.h: rewrite do-while loops as while loops to work around
    // driver bugs
    
    #ifndef COMPILER_TRANSLATOR_REWRITEDOWHILE_H_
    #define COMPILER_TRANSLATOR_REWRITEDOWHILE_H_
    
    class TIntermNode;
    void RewriteDoWhile(TIntermNode *root, unsigned int *temporaryIndex);
    
    #endif  // COMPILER_TRANSLATOR_REWRITEDOWHILE_H_