tgsi: add properties and system value register
[mesa.git] / src / gallium / auxiliary / tgsi / tgsi_parse.c
index 8f2b6a307d38b56829cdf6fcda2d48f5cd258771..fa65ecb99754722924fbaa6a3e22253f086ae8f8 100644 (file)
@@ -220,6 +220,22 @@ tgsi_parse_token(
       break;
    }
 
+   case TGSI_TOKEN_TYPE_PROPERTY:
+   {
+      struct tgsi_full_property *prop = &ctx->FullToken.FullProperty;
+      uint prop_count;
+
+      memset(prop, 0, sizeof *prop);
+      copy_token(&prop->Property, &token);
+
+      prop_count = prop->Property.NrTokens - 1;
+      for (i = 0; i < prop_count; i++) {
+         next_token(ctx, &prop->u[i]);
+      }
+
+      break;
+   }
+
    default:
       assert( 0 );
    }