[Mesa-dev] [PATCH 15/56] glsl: Delete spurious comment about mod not taking integer operands

Ian Romanick idr at freedesktop.org
Tue Jul 19 19:24:34 UTC 2016


From: Ian Romanick <ian.d.romanick at intel.com>

This hasn't been true since we added support for GLSL 1.30.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/compiler/glsl/ir_expression_operation.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/compiler/glsl/ir_expression_operation.py b/src/compiler/glsl/ir_expression_operation.py
index 5c7ad35..8098dac 100644
--- a/src/compiler/glsl/ir_expression_operation.py
+++ b/src/compiler/glsl/ir_expression_operation.py
@@ -145,12 +145,7 @@ ir_expression_operation = [
    # from the first argument.
    ("borrow", 2, None),
 
-   # Takes one of two combinations of arguments:
-   #
-   # - mod(vecN, vecN)
-   # - mod(vecN, float)
-   #
-   # Does not take integer types.
+   # Either (vector % vector) or (vector % scalar)
    ("mod", 2, "%"),
 
    # Binary comparison operators which return a boolean vector.
-- 
2.5.5



More information about the mesa-dev mailing list