summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_pipe.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-03-31 23:44:31 +0200
committerMarek Olšák <[email protected]>2012-04-01 23:57:50 +0200
commitbc95152f1d3bf0dbf79d81e6b9956fd60198e3df (patch)
tree0a190ec700b1d61a70892b2e653758025c7fae95 /src/gallium/drivers/r600/r600_pipe.c
parent669d8766ff3403938794eb80d7769347b6e52174 (diff)
r600g: determine in advance if hw has vertex cache
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index 3ab78ea040d..7c40e506fb7 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -263,6 +263,11 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void
if (r600_context_init(rctx))
goto fail;
rctx->custom_dsa_flush = r600_create_db_flush_dsa(rctx);
+ rctx->has_vertex_cache = !(rctx->family == CHIP_RV610 ||
+ rctx->family == CHIP_RV620 ||
+ rctx->family == CHIP_RS780 ||
+ rctx->family == CHIP_RS880 ||
+ rctx->family == CHIP_RV710);
break;
case EVERGREEN:
case CAYMAN:
@@ -271,6 +276,13 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void
if (evergreen_context_init(rctx))
goto fail;
rctx->custom_dsa_flush = evergreen_create_db_flush_dsa(rctx);
+ rctx->has_vertex_cache = !(rctx->family == CHIP_CEDAR ||
+ rctx->family == CHIP_PALM ||
+ rctx->family == CHIP_SUMO ||
+ rctx->family == CHIP_SUMO2 ||
+ rctx->family == CHIP_CAICOS ||
+ rctx->family == CHIP_CAYMAN ||
+ rctx->family == CHIP_ARUBA);
break;
default:
R600_ERR("Unsupported chip class %d.\n", rctx->chip_class);