Mesa (master): glsl: No longer require ubo block index to be constant in ir_validate

Chris Forbes chrisf at kemper.freedesktop.org
Sat Jul 26 04:43:01 UTC 2014


Module: Mesa
Branch: master
Commit: 74e100affc0ac1bced4787067274579d8f0d137f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=74e100affc0ac1bced4787067274579d8f0d137f

Author: Chris Forbes <chrisf at ijw.co.nz>
Date:   Sun May 18 12:19:04 2014 +1200

glsl: No longer require ubo block index to be constant in ir_validate

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/glsl/ir_validate.cpp |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp
index 37e1ce3..4f85b7d 100644
--- a/src/glsl/ir_validate.cpp
+++ b/src/glsl/ir_validate.cpp
@@ -495,7 +495,6 @@ ir_validate::visit_leave(ir_expression *ir)
       break;
 
    case ir_binop_ubo_load:
-      assert(ir->operands[0]->as_constant());
       assert(ir->operands[0]->type == glsl_type::uint_type);
 
       assert(ir->operands[1]->type == glsl_type::uint_type);




More information about the mesa-commit mailing list