diff options
author | Alex Deucher <[email protected]> | 2012-10-23 12:24:45 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2012-10-26 09:33:32 -0400 |
commit | bd274eb8f4bcc6aeb561d60ffac89dbe8e504d9f (patch) | |
tree | 66340594a9cba254bce258ff967ffb1ba28101fe /src/gallium/drivers/r600/evergreen_compute.c | |
parent | 67c875117ca2f4bc7eea8cd11ba90e26f79069d7 (diff) |
r600g: split cayman common state out into a shared function
And use it for compute. This should improve compute support
on cayman.
Signed-off-by: Alex Deucher <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_compute.c')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_compute.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c index ce17d3a61ec..44831a76188 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -681,8 +681,12 @@ void evergreen_init_atom_start_compute_cs(struct r600_context *ctx) } /* Config Registers */ - evergreen_init_common_regs(cb, ctx->chip_class - , ctx->family, ctx->screen->info.drm_minor); + if (ctx->chip_class < CAYMAN) + evergreen_init_common_regs(cb, ctx->chip_class, ctx->family, + ctx->screen->info.drm_minor); + else + cayman_init_common_regs(cb, ctx->chip_class, ctx->family, + ctx->screen->info.drm_minor); /* The primitive type always needs to be POINTLIST for compute. */ r600_store_config_reg(cb, R_008958_VGT_PRIMITIVE_TYPE, |