Mesa (master): i965: Use BRW_DATAPORT_READ_TARGET_DATA_CACHE instead of 0.

Kenneth Graunke kwg at kemper.freedesktop.org
Fri May 13 22:21:42 UTC 2011


Module: Mesa
Branch: master
Commit: 2bba244329a6751d5ac07041874b2969b67fa8ee
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2bba244329a6751d5ac07041874b2969b67fa8ee

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Fri May 13 09:04:09 2011 -0700

i965: Use BRW_DATAPORT_READ_TARGET_DATA_CACHE instead of 0.

Using the #define'd constant is better than 0 with a comment.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Chad Versace <chad.versace at intel.com>

---

 src/mesa/drivers/dri/i965/brw_eu_emit.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index 31a8f2e..633cc03 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -1711,7 +1711,7 @@ void brw_oword_block_read(struct brw_compile *p,
 			   bind_table_index,
 			   BRW_DATAPORT_OWORD_BLOCK_1_OWORDLOW,
 			   BRW_DATAPORT_READ_MESSAGE_OWORD_BLOCK_READ,
-			   0, /* source cache = data cache */
+			   BRW_DATAPORT_READ_TARGET_DATA_CACHE,
 			   1, /* msg_length */
 			   1); /* response_length (1 reg, 2 owords!) */
 
@@ -1752,7 +1752,7 @@ void brw_dword_scattered_read(struct brw_compile *p,
 			   bind_table_index,
 			   BRW_DATAPORT_DWORD_SCATTERED_BLOCK_8DWORDS,
 			   BRW_DATAPORT_READ_MESSAGE_DWORD_SCATTERED_READ,
-			   0, /* source cache = data cache */
+			   BRW_DATAPORT_READ_TARGET_DATA_CACHE,
 			   2, /* msg_length */
 			   1); /* response_length */
 }
@@ -1806,7 +1806,7 @@ void brw_dp_READ_4_vs(struct brw_compile *p,
 			   bind_table_index,
 			   0,
 			   BRW_DATAPORT_READ_MESSAGE_OWORD_BLOCK_READ, /* msg_type */
-			   0, /* source cache = data cache */
+			   BRW_DATAPORT_READ_TARGET_DATA_CACHE,
 			   1, /* msg_length */
 			   1); /* response_length (1 Oword) */
 }




More information about the mesa-commit mailing list