mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 09:20:49 +02:00
r600g: add rv670 flushing workaround.
Hopefully we can find out the proper fix for this, but for now this makes the fbo mipmap tests pass on my rv670 (x2 card). Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d116fe51c1
commit
5066f7cd0e
1 changed files with 4 additions and 0 deletions
|
|
@ -812,6 +812,10 @@ void r600_context_bo_flush(struct r600_context *ctx, unsigned flush_flags,
|
|||
use_event_flush = TRUE;
|
||||
|
||||
if (use_event_flush && (ctx->flags & R600_CONTEXT_CHECK_EVENT_FLUSH)) {
|
||||
/* the rv670 seems to fail fbo-generatemipmap unless we flush the CB1 dest base ena */
|
||||
if (ctx->radeon->family == CHIP_RV670)
|
||||
r600_context_flush_all(ctx, S_0085F0_CB1_DEST_BASE_ENA(1));
|
||||
|
||||
ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_EVENT_WRITE, 0, ctx->predicate_drawing);
|
||||
ctx->pm4[ctx->pm4_cdwords++] = EVENT_TYPE(EVENT_TYPE_CACHE_FLUSH_AND_INV_EVENT) | EVENT_INDEX(0);
|
||||
ctx->flags &= ~R600_CONTEXT_CHECK_EVENT_FLUSH;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue