glsl: make use of glsl_type::is_record()
[mesa.git] / src / mesa / program / ir_to_mesa.cpp
index 6b33266f1b9b04defae32ab44f450a9efe5b2e0b..083591cc0feb256e3113b19a38fe1f18ad0c6def 100644 (file)
@@ -1903,7 +1903,7 @@ ir_to_mesa_visitor::visit(ir_constant *ir)
     * get lucky, copy propagation will eliminate the extra moves.
     */
 
-   if (ir->type->base_type == GLSL_TYPE_STRUCT) {
+   if (ir->type->is_record()) {
       src_reg temp_base = get_temp(ir->type);
       dst_reg temp = dst_reg(temp_base);