glsl: add a few missing int64 constant propagation cases
[mesa.git] / src / compiler / glsl / opt_constant_propagation.cpp
index 52e3937bb11ecfe685dcae6828dfae2f83dd767a..05dc71efb72038339b58fdec2fe4a091e7b0cd87 100644 (file)
@@ -238,6 +238,12 @@ ir_constant_propagation_visitor::constant_propagation(ir_rvalue **rvalue) {
       case GLSL_TYPE_BOOL:
         data.b[i] = found->constant->value.b[rhs_channel];
         break;
+      case GLSL_TYPE_UINT64:
+        data.u64[i] = found->constant->value.u64[rhs_channel];
+        break;
+      case GLSL_TYPE_INT64:
+        data.i64[i] = found->constant->value.i64[rhs_channel];
+        break;
       default:
         assert(!"not reached");
         break;