* [PATCH] fix some intel_ring_begin size
@ 2010-06-12 8:45 Zou Nan hai
2010-06-12 9:05 ` Chris Wilson
0 siblings, 1 reply; 3+ messages in thread
From: Zou Nan hai @ 2010-06-12 8:45 UTC (permalink / raw)
To: Eric Anholt, intel-gfx
Fix some intel_ring_begin size parameter.
Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
---
drivers/gpu/drm/i915/intel_ringbuffer.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index cea4f1a..9421d1c 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -406,7 +406,7 @@ bsd_ring_add_request(struct drm_device *dev,
{
u32 seqno;
seqno = intel_ring_get_seqno(dev, ring);
- intel_ring_begin(dev, ring, 4);
+ intel_ring_begin(dev, ring, 16);
intel_ring_emit(dev, ring, MI_STORE_DWORD_INDEX);
intel_ring_emit(dev, ring,
I915_GEM_HWS_INDEX << MI_STORE_DWORD_INDEX_SHIFT);
@@ -456,7 +456,7 @@ bsd_ring_dispatch_gem_execbuffer(struct drm_device *dev,
{
uint32_t exec_start;
exec_start = (uint32_t) exec_offset + exec->batch_start_offset;
- intel_ring_begin(dev, ring, 2);
+ intel_ring_begin(dev, ring, 8);
intel_ring_emit(dev, ring, MI_BATCH_BUFFER_START |
(2 << 6) | MI_BATCH_NON_SECURE_I965);
intel_ring_emit(dev, ring, exec_start);
@@ -492,14 +492,14 @@ render_ring_dispatch_gem_execbuffer(struct drm_device *dev,
}
if (IS_I830(dev) || IS_845G(dev)) {
- intel_ring_begin(dev, ring, 4);
+ intel_ring_begin(dev, ring, 16);
intel_ring_emit(dev, ring, MI_BATCH_BUFFER);
intel_ring_emit(dev, ring,
exec_start | MI_BATCH_NON_SECURE);
intel_ring_emit(dev, ring, exec_start + exec_len - 4);
intel_ring_emit(dev, ring, 0);
} else {
- intel_ring_begin(dev, ring, 4);
+ intel_ring_begin(dev, ring, 16);
if (IS_I965G(dev)) {
intel_ring_emit(dev, ring,
MI_BATCH_BUFFER_START | (2 << 6)
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] fix some intel_ring_begin size
2010-06-12 8:45 [PATCH] fix some intel_ring_begin size Zou Nan hai
@ 2010-06-12 9:05 ` Chris Wilson
2010-06-12 9:15 ` Zou, Nanhai
0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2010-06-12 9:05 UTC (permalink / raw)
To: Zou Nan hai, Eric Anholt, intel-gfx
On Sat, 12 Jun 2010 16:45:26 +0800, Zou Nan hai <nanhai.zou@intel.com> wrote:
> Fix some intel_ring_begin size parameter.
Maybe we should pass dwords to intel_ring_begin()? Much easier for us poor
humans to count and make space for the number of following
intel_ring_emit() than it is for us to remember to convert it into
bytes...
-ickle
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fix some intel_ring_begin size
2010-06-12 9:05 ` Chris Wilson
@ 2010-06-12 9:15 ` Zou, Nanhai
0 siblings, 0 replies; 3+ messages in thread
From: Zou, Nanhai @ 2010-06-12 9:15 UTC (permalink / raw)
To: Chris Wilson, Anholt, Eric, intel-gfx
>>-----Original Message-----
>>From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
>>Sent: 2010年6月12日 17:05
>>To: Zou, Nanhai; Anholt, Eric; intel-gfx
>>Subject: Re: [Intel-gfx] [PATCH] fix some intel_ring_begin size
>>
>>On Sat, 12 Jun 2010 16:45:26 +0800, Zou Nan hai <nanhai.zou@intel.com> wrote:
>>> Fix some intel_ring_begin size parameter.
>>
>>Maybe we should pass dwords to intel_ring_begin()? Much easier for us poor
>>humans to count and make space for the number of following
>>intel_ring_emit() than it is for us to remember to convert it into
>>bytes...
>>-ickle
Yeah, that will be much reasonable.
Thanks
Zou Nan hai
>>
>>--
>>Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-12 9:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-12 8:45 [PATCH] fix some intel_ring_begin size Zou Nan hai
2010-06-12 9:05 ` Chris Wilson
2010-06-12 9:15 ` Zou, Nanhai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.