On 11/28, Ian Romanick wrote:
From: Ian Romanick <[email protected]>

Signed-off-by: Ian Romanick <[email protected]>
---
src/compiler/glsl/ir_builder_print_visitor.cpp | 16 +++++++++++++---
src/compiler/glsl/standalone_scaffolding.cpp   |  1 +
2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/compiler/glsl/ir_builder_print_visitor.cpp 
b/src/compiler/glsl/ir_builder_print_visitor.cpp
index 91a73c9..a3a5fe4 100644
--- a/src/compiler/glsl/ir_builder_print_visitor.cpp
+++ b/src/compiler/glsl/ir_builder_print_visitor.cpp
@@ -396,13 +396,23 @@ ir_builder_print_visitor::visit(ir_constant *ir)

            memcpy(&v, &ir->value.d[i], sizeof(v));
            if (v != 0)
-               /* FIXME: This won't actually work until ARB_gpu_shader_int64
-                * support lands.
-                */
               print_without_indent("r%04X_data.u64[%u] = 0x%016" PRIx64 "; /* %g 
*/\n",
                                    my_index, i, v, ir->value.d[i]);
            break;
         }
+         case GLSL_TYPE_UINT64:
+            if (ir->value.u64[i] != 0)
+               print_without_indent("r%04X_data.u64[%u] = %" PRIu64 ";\n",
+                                    my_index,
+                                    i,
+                                    ir->value.u64[i]);
+            break;
+         case GLSL_TYPE_INT64:
+            if (ir->value.i64[i] != 0)
+               print_without_indent("r%04X_data.i64[%u] = %" PRId64 ";\n",
+                                    my_index,
+                                    i,
+                                    ir->value.i64[i]);

Missing break. With that fixed,

Reviewed-by: Matt Turner <[email protected]>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to