r600: add support for some ALU sources.
authorDave Airlie <airlied@redhat.com>
Thu, 31 Mar 2016 05:52:52 +0000 (15:52 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Nov 2017 23:31:50 +0000 (09:31 +1000)
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@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_asm.c

index a0f28d2776b786e616def4938ed8264a14197168..60c9cec4dbfb948d7576e8242117212208461883 100644 (file)
@@ -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;