Mesa (master): i915g: Ignore color0 writes all cbufs tgsi property
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Sun Dec 26 23:19:19 UTC 2010
Module: Mesa
Branch: master
Commit: b7a73c72a68dc102ef8522eda8eadf583fd420a5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b7a73c72a68dc102ef8522eda8eadf583fd420a5
Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date: Sat Dec 25 14:01:09 2010 +0000
i915g: Ignore color0 writes all cbufs tgsi property
---
src/gallium/drivers/i915/i915_fpc_translate.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c
index 25c5321..9e20010 100644
--- a/src/gallium/drivers/i915/i915_fpc_translate.c
+++ b/src/gallium/drivers/i915/i915_fpc_translate.c
@@ -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) {
More information about the mesa-commit
mailing list