diff options
author | Keith Packard <keithp@keithp.com> | 2008-07-30 15:28:47 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-10-17 17:10:10 -0400 |
commit | 0790d5e148c0747499742a3c09ba5f1c07f9ed0d (patch) | |
tree | 21bfc79b157b6ecb49a58a791e86fbe22a1c7206 /drivers/gpu | |
parent | 48f185d0e0f3adde81117ead074e5e6ec5548449 (diff) |
i915: remove settable use_mi_batchbuffer_start
The driver can know what hardware requires MI_BATCH_BUFFER vs
MI_BATCH_BUFFER_START; there's no reason to let user mode configure this.
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 11 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 1 |
2 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 9ac4720e647b..ae0ba3501880 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -159,13 +159,6 @@ static int i915_initialize(struct drm_device * dev, drm_i915_init_t * init) | |||
159 | dev_priv->current_page = 0; | 159 | dev_priv->current_page = 0; |
160 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; | 160 | dev_priv->sarea_priv->pf_current_page = dev_priv->current_page; |
161 | 161 | ||
162 | /* We are using separate values as placeholders for mechanisms for | ||
163 | * private backbuffer/depthbuffer usage. | ||
164 | */ | ||
165 | dev_priv->use_mi_batchbuffer_start = 0; | ||
166 | if (IS_I965G(dev)) /* 965 doesn't support older method */ | ||
167 | dev_priv->use_mi_batchbuffer_start = 1; | ||
168 | |||
169 | /* Allow hardware batchbuffers unless told otherwise. | 162 | /* Allow hardware batchbuffers unless told otherwise. |
170 | */ | 163 | */ |
171 | dev_priv->allow_batchbuffer = 1; | 164 | dev_priv->allow_batchbuffer = 1; |
@@ -486,7 +479,7 @@ static int i915_dispatch_batchbuffer(struct drm_device * dev, | |||
486 | return ret; | 479 | return ret; |
487 | } | 480 | } |
488 | 481 | ||
489 | if (dev_priv->use_mi_batchbuffer_start) { | 482 | if (!IS_I830(dev) && !IS_845G(dev)) { |
490 | BEGIN_LP_RING(2); | 483 | BEGIN_LP_RING(2); |
491 | if (IS_I965G(dev)) { | 484 | if (IS_I965G(dev)) { |
492 | OUT_RING(MI_BATCH_BUFFER_START | (2 << 6) | MI_BATCH_NON_SECURE_I965); | 485 | OUT_RING(MI_BATCH_BUFFER_START | (2 << 6) | MI_BATCH_NON_SECURE_I965); |
@@ -697,8 +690,6 @@ static int i915_setparam(struct drm_device *dev, void *data, | |||
697 | 690 | ||
698 | switch (param->param) { | 691 | switch (param->param) { |
699 | case I915_SETPARAM_USE_MI_BATCHBUFFER_START: | 692 | case I915_SETPARAM_USE_MI_BATCHBUFFER_START: |
700 | if (!IS_I965G(dev)) | ||
701 | dev_priv->use_mi_batchbuffer_start = param->value; | ||
702 | break; | 693 | break; |
703 | case I915_SETPARAM_TEX_LRU_LOG_GRANULARITY: | 694 | case I915_SETPARAM_TEX_LRU_LOG_GRANULARITY: |
704 | dev_priv->tex_lru_log_granularity = param->value; | 695 | dev_priv->tex_lru_log_granularity = param->value; |
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index d7326d92a237..2d441d37da99 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -99,7 +99,6 @@ typedef struct drm_i915_private { | |||
99 | int front_offset; | 99 | int front_offset; |
100 | int current_page; | 100 | int current_page; |
101 | int page_flipping; | 101 | int page_flipping; |
102 | int use_mi_batchbuffer_start; | ||
103 | 102 | ||
104 | wait_queue_head_t irq_queue; | 103 | wait_queue_head_t irq_queue; |
105 | atomic_t irq_received; | 104 | atomic_t irq_received; |