[Mesa-dev] [PATCH 4/4] r600g/sb: dump sampler/resource index modes for textures.

Dave Airlie airlied at gmail.com
Mon Aug 24 18:18:48 PDT 2015


From: Dave Airlie <airlied at redhat.com>

This just aids debugging.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/gallium/drivers/r600/sb/sb_bc_dump.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/r600/sb/sb_bc_dump.cpp b/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
index 631fac2..0fc73c4 100644
--- a/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
+++ b/src/gallium/drivers/r600/sb/sb_bc_dump.cpp
@@ -469,6 +469,10 @@ void bc_dump::dump(fetch_node& n) {
 		for (unsigned k = 0; k < 3; ++k)
 			if (n.bc.offset[k])
 				s << " O" << chans[k] << ":" << n.bc.offset[k];
+		if (ctx.is_egcm() && n.bc.resource_index_mode)
+			s << " RIM:SQ_CF_INDEX_" << n.bc.resource_index_mode;
+		if (ctx.is_egcm() && n.bc.sampler_index_mode)
+			s << " SID:SQ_CF_INDEX_" << n.bc.sampler_index_mode;
 	}
 
 	sblog << s.str() << "\n";
-- 
2.4.3



More information about the mesa-dev mailing list