[Mesa-dev] [PATCH] glsl: fix stale comment

Kenneth Graunke kenneth at whitecape.org
Tue Dec 16 21:10:24 PST 2014


On Tuesday, December 16, 2014 10:32:21 PM Connor Abbott wrote:
> Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
> ---
>  src/glsl/ir_function_can_inline.cpp | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/src/glsl/ir_function_can_inline.cpp b/src/glsl/ir_function_can_inline.cpp
> index 7b15d5d..3b1d15f 100644
> --- a/src/glsl/ir_function_can_inline.cpp
> +++ b/src/glsl/ir_function_can_inline.cpp
> @@ -26,11 +26,10 @@
>   *
>   * Determines if we can inline a function call using ir_function_inlining.cpp.
>   *
> - * The primary restriction is that we can't return from the function
> - * other than as the last instruction.  We could potentially work
> - * around this for some constructs by flattening control flow and
> - * moving the return to the end, or by using breaks from a do {} while
> - * (0) loop surrounding the function body.
> + * The primary restriction is that we can't return from the function other
> + * than as the last instruction.  In lower_jumps.cpp, we can lower return
> + * statements not at the end of the function to other control flow in order to
> + * deal with this restriction.
>   */
>  
>  #include "ir.h"
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141216/114b4276/attachment.sig>


More information about the mesa-dev mailing list