diff options
author | Marek Olšák <[email protected]> | 2018-12-03 14:58:08 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-01-02 15:01:54 -0500 |
commit | 54bc87469a4747ea626d1d680f39eb3d282ede5d (patch) | |
tree | a80b62acdf84f27d7566788977b91315036b1440 /src/gallium/drivers/radeonsi/si_fence.c | |
parent | 9d2c3a1fe070b7e6623170b3a9673d1311a49461 (diff) |
radeonsi: make si_cp_wait_mem more configurable
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_fence.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_fence.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/si_fence.c b/src/gallium/drivers/radeonsi/si_fence.c index d385f445774..b6920c95e34 100644 --- a/src/gallium/drivers/radeonsi/si_fence.c +++ b/src/gallium/drivers/radeonsi/si_fence.c @@ -160,13 +160,11 @@ unsigned si_cp_write_fence_dwords(struct si_screen *screen) return dwords; } -void si_cp_wait_mem(struct si_context *ctx, +void si_cp_wait_mem(struct si_context *ctx, struct radeon_cmdbuf *cs, uint64_t va, uint32_t ref, uint32_t mask, unsigned flags) { - struct radeon_cmdbuf *cs = ctx->gfx_cs; - radeon_emit(cs, PKT3(PKT3_WAIT_REG_MEM, 5, 0)); - radeon_emit(cs, WAIT_REG_MEM_EQUAL | WAIT_REG_MEM_MEM_SPACE(1) | flags); + radeon_emit(cs, WAIT_REG_MEM_MEM_SPACE(1) | flags); radeon_emit(cs, va); radeon_emit(cs, va >> 32); radeon_emit(cs, ref); /* reference value */ |