[Mesa-dev] [PATCH 1/6] i965/fs: Use SURF_INDEX_DRAW() when emitting FB writes.

Kenneth Graunke kenneth at whitecape.org
Wed Aug 14 21:07:23 PDT 2013


SURF_INDEX_DRAW is the identity function, and it's unlikely that it will
change, but we may as well use it for documentation's sake.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_fs_emit.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
index 4225922..b90cf0f 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
@@ -170,7 +170,7 @@ fs_generator::generate_fb_write(fs_inst *inst)
 		inst->base_mrf,
 		implied_header,
 		msg_control,
-		inst->target,
+		SURF_INDEX_DRAW(inst->target),
 		inst->mlen,
 		0,
 		eot,
-- 
1.8.3.4



More information about the mesa-dev mailing list