Mesa (master): r600: add support for some ALU sources.

Dave Airlie airlied at kemper.freedesktop.org
Thu Nov 2 23:43:41 UTC 2017


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Mar 31 15:52:52 2016 +1000

r600: add support for some ALU sources.

These special ALU sources provide the shader engine,
simd and hw wave ids.

These are required for images support.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/r600/r600_asm.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index a0f28d2776..60c9cec4db 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -1969,6 +1969,15 @@ static int print_src(struct r600_bytecode_alu *alu, unsigned idx)
 			o += fprintf(stderr, "LDS_OQ_B_POP");
 			need_chan = 1;
 			break;
+		case EG_V_SQ_ALU_SRC_SE_ID:
+			o += fprintf(stderr, "SE_ID");
+			break;
+		case EG_V_SQ_ALU_SRC_SIMD_ID:
+			o += fprintf(stderr, "SIMD_ID");
+			break;
+		case EG_V_SQ_ALU_SRC_HW_WAVE_ID:
+			o += fprintf(stderr, "HW_WAVE_ID");
+			break;
 		case V_SQ_ALU_SRC_PS:
 			o += fprintf(stderr, "PS");
 			break;




More information about the mesa-commit mailing list