IR print visitor: Just print the name of structures
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Apr 2010 19:01:40 +0000 (12:01 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 29 Apr 2010 01:22:54 +0000 (18:22 -0700)
Treat structure types like other non-array types.  We'll have to print
the structure defintion elsewhere.

ir_print_visitor.cpp

index 778a5c16460b86681ac5d946dd7053d34bda4811..f1108c6fe418d9e074a8547163afb8b8f3facacc 100644 (file)
@@ -31,10 +31,6 @@ print_type(const glsl_type *t)
       printf("(array ");
       print_type(t->fields.array);
       printf(" %u)", t->length);
-   } else if (t->base_type == GLSL_TYPE_STRUCT) {
-      printf("(struct (%s %u ", t->name ? t->name : "@", t->length);
-      printf("(FINISHME: structure fields go here) ");
-      printf(")");
    } else {
       printf("%s", t->name);
    }