diff options
Diffstat (limited to 'src/gallium/drivers/r600/r600_hw_context.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_hw_context.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c index 6205a20142e..6c0733d31ad 100644 --- a/src/gallium/drivers/r600/r600_hw_context.c +++ b/src/gallium/drivers/r600/r600_hw_context.c @@ -1163,22 +1163,11 @@ void r600_inval_texture_cache(struct r600_context *ctx) void r600_inval_vertex_cache(struct r600_context *ctx) { - if (ctx->family == CHIP_RV610 || - ctx->family == CHIP_RV620 || - ctx->family == CHIP_RS780 || - ctx->family == CHIP_RS880 || - ctx->family == CHIP_RV710 || - ctx->family == CHIP_CEDAR || - ctx->family == CHIP_PALM || - ctx->family == CHIP_SUMO || - ctx->family == CHIP_SUMO2 || - ctx->family == CHIP_CAICOS || - ctx->family == CHIP_CAYMAN || - ctx->family == CHIP_ARUBA) { + if (ctx->has_vertex_cache) { + ctx->surface_sync_cmd.flush_flags |= S_0085F0_VC_ACTION_ENA(1); + } else { /* Some GPUs don't have the vertex cache and must use the texture cache instead. */ ctx->surface_sync_cmd.flush_flags |= S_0085F0_TC_ACTION_ENA(1); - } else { - ctx->surface_sync_cmd.flush_flags |= S_0085F0_VC_ACTION_ENA(1); } r600_atom_dirty(ctx, &ctx->surface_sync_cmd.atom); } |