diff options
author | Marek Olšák <marek.olsak@amd.com> | 2014-01-22 18:30:21 +0100 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2014-01-28 01:40:10 +0100 |
commit | 2942124db89107a3b4bdb65da3aca153fee2e678 (patch) | |
tree | afb4843a215dbdb64f9f915066a830eb7d779f1e /src/gallium/drivers | |
parent | 8a4d7c296f6c9e55b72885ae9d1842eb959e0cf0 (diff) | |
download | external_mesa3d-2942124db89107a3b4bdb65da3aca153fee2e678.zip external_mesa3d-2942124db89107a3b4bdb65da3aca153fee2e678.tar.gz external_mesa3d-2942124db89107a3b4bdb65da3aca153fee2e678.tar.bz2 |
radeonsi: remove open-coded PS_PARTIAL_FLUSH event
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_hw_context.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_hw_context.c b/src/gallium/drivers/radeonsi/si_hw_context.c index bb3d080..2e1e9f2 100644 --- a/src/gallium/drivers/radeonsi/si_hw_context.c +++ b/src/gallium/drivers/radeonsi/si_hw_context.c @@ -107,13 +107,11 @@ void si_context_flush(struct si_context *ctx, unsigned flags) R600_CONTEXT_FLUSH_AND_INV_CB_META | R600_CONTEXT_FLUSH_AND_INV_DB | R600_CONTEXT_FLUSH_AND_INV_DB_META | - R600_CONTEXT_INV_TEX_CACHE; + R600_CONTEXT_INV_TEX_CACHE | + /* this is probably not needed anymore */ + R600_CONTEXT_PS_PARTIAL_FLUSH; si_emit_cache_flush(&ctx->b, NULL); - /* this is probably not needed anymore */ - cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE, 0, 0); - cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_PS_PARTIAL_FLUSH) | EVENT_INDEX(4); - /* force to keep tiling flags */ flags |= RADEON_FLUSH_KEEP_TILING_FLAGS; |