diff options
author | Marek Olšák <[email protected]> | 2018-09-21 03:30:18 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-10-06 21:50:09 -0400 |
commit | fa023f293eb48d1d2e3c6efb89f4192c4a565fed (patch) | |
tree | 829ee091d5767649be4c78dbb4924efd04db03cc /src/gallium/drivers/radeonsi/si_perfcounter.c | |
parent | 82f5f89bf66d6fd968611be2de45e63bd165b50c (diff) |
ac: correct PKT3_COPY_DATA definitions
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_perfcounter.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_perfcounter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_perfcounter.c b/src/gallium/drivers/radeonsi/si_perfcounter.c index c4f6e164fb5..de71572c8aa 100644 --- a/src/gallium/drivers/radeonsi/si_perfcounter.c +++ b/src/gallium/drivers/radeonsi/si_perfcounter.c @@ -559,7 +559,7 @@ static void si_pc_emit_start(struct si_context *sctx, radeon_emit(cs, PKT3(PKT3_COPY_DATA, 4, 0)); radeon_emit(cs, COPY_DATA_SRC_SEL(COPY_DATA_IMM) | - COPY_DATA_DST_SEL(COPY_DATA_MEM)); + COPY_DATA_DST_SEL(COPY_DATA_DST_MEM_GRBM)); radeon_emit(cs, 1); /* immediate */ radeon_emit(cs, 0); /* unused */ radeon_emit(cs, va); @@ -616,7 +616,7 @@ static void si_pc_emit_read(struct si_context *sctx, radeon_emit(cs, PKT3(PKT3_COPY_DATA, 4, 0)); radeon_emit(cs, COPY_DATA_SRC_SEL(COPY_DATA_PERF) | - COPY_DATA_DST_SEL(COPY_DATA_MEM) | + COPY_DATA_DST_SEL(COPY_DATA_DST_MEM_GRBM) | COPY_DATA_COUNT_SEL); /* 64 bits */ radeon_emit(cs, reg >> 2); radeon_emit(cs, 0); /* unused */ @@ -629,7 +629,7 @@ static void si_pc_emit_read(struct si_context *sctx, for (idx = 0; idx < count; ++idx) { radeon_emit(cs, PKT3(PKT3_COPY_DATA, 4, 0)); radeon_emit(cs, COPY_DATA_SRC_SEL(COPY_DATA_IMM) | - COPY_DATA_DST_SEL(COPY_DATA_MEM) | + COPY_DATA_DST_SEL(COPY_DATA_DST_MEM_GRBM) | COPY_DATA_COUNT_SEL); radeon_emit(cs, 0); /* immediate */ radeon_emit(cs, 0); |