diff options
author | Nian Wu <nian.wu@intel.com> | 2007-03-05 09:01:45 -0500 |
---|---|---|
committer | Nian Wu <nian.wu@intel.com> | 2007-03-05 09:01:45 -0500 |
commit | 0a85c9fa02608426a9a97f1d26e37c301330926b (patch) | |
tree | f2280f5188b4e657e93654fbbf63ca5dec28599f /shared-core/radeon_state.c | |
parent | 6c48b8e7ffd0af4d49855d7175e822f4af1f526f (diff) | |
parent | 188a93c9dfde31de4d86733fa46b50487d3a4ac0 (diff) |
Merge git://proxy01.pd.intel.com:9419/git/mesa/drm into crestline
Diffstat (limited to 'shared-core/radeon_state.c')
-rw-r--r-- | shared-core/radeon_state.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c index 40b7d6ce..b95549d8 100644 --- a/shared-core/radeon_state.c +++ b/shared-core/radeon_state.c @@ -3196,10 +3196,16 @@ static int radeon_cp_setparam(DRM_IOCTL_ARGS) break; case RADEON_SETPARAM_PCIGART_LOCATION: dev_priv->pcigart_offset = sp.value; + dev_priv->pcigart_offset_set = 1; break; case RADEON_SETPARAM_NEW_MEMMAP: dev_priv->new_memmap = sp.value; break; + case RADEON_SETPARAM_PCIGART_TABLE_SIZE: + dev_priv->gart_info.table_size = sp.value; + if (dev_priv->gart_info.table_size < RADEON_PCIGART_TABLE_SIZE) + dev_priv->gart_info.table_size = RADEON_PCIGART_TABLE_SIZE; + break; default: DRM_DEBUG("Invalid parameter %d\n", sp.param); return DRM_ERR(EINVAL); |