i915g: Ignore color0 writes all cbufs tgsi property
authorJakob Bornecrantz <wallbraker@gmail.com>
Sat, 25 Dec 2010 14:01:09 +0000 (14:01 +0000)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sun, 26 Dec 2010 23:18:55 +0000 (00:18 +0100)
src/gallium/drivers/i915/i915_fpc_translate.c

index 25c53210be8eb2552440c4e1c74575459b2e2c62..9e20010c4a1e8cb217ccbd0fe49e49eeac380e7a 100644 (file)
@@ -924,6 +924,14 @@ i915_translate_instructions(struct i915_fp_compile *p,
       tgsi_parse_token( &parse );
 
       switch( parse.FullToken.Token.Type ) {
+      case TGSI_TOKEN_TYPE_PROPERTY:
+         /*
+          * We only support one cbuf, but we still need to ignore the property
+          * correctly so we don't hit the assert at the end of the switch case.
+          */
+         assert(parse.FullToken.FullProperty.Property.PropertyName ==
+                TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS);
+         break;
       case TGSI_TOKEN_TYPE_DECLARATION:
          if (parse.FullToken.FullDeclaration.Declaration.File
                   == TGSI_FILE_CONSTANT) {