diff options
author | Eric Anholt <[email protected]> | 2006-03-30 22:44:51 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2006-03-30 22:44:51 +0000 |
commit | aba49671500b4192ea92c658ccaef514407d508b (patch) | |
tree | f4916e7fb4f9d6ed880c6362f0a84836c71584da /src | |
parent | 174ce730c6c9739121c02c7d58e7d8be377d2231 (diff) |
The pitches of the driRenderbuffers are in bytes, so no need to multiply by cpp.
Fixes software fallbacks. (Keith Packard)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_span.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_span.c b/src/mesa/drivers/dri/i915/intel_span.c index a0f848f7b0e..c3ffc4b2ac0 100644 --- a/src/mesa/drivers/dri/i915/intel_span.c +++ b/src/mesa/drivers/dri/i915/intel_span.c @@ -43,7 +43,7 @@ intelContextPtr intel = INTEL_CONTEXT(ctx); \ __DRIdrawablePrivate *dPriv = intel->driDrawable; \ driRenderbuffer *drb = (driRenderbuffer *) rb; \ - GLuint pitch = drb->pitch * drb->cpp; \ + GLuint pitch = drb->pitch; \ GLuint height = dPriv->h; \ char *buf = (char *) drb->Base.Data + \ dPriv->x * drb->cpp + \ @@ -55,7 +55,7 @@ intelContextPtr intel = INTEL_CONTEXT(ctx); \ __DRIdrawablePrivate *dPriv = intel->driDrawable; \ driRenderbuffer *drb = (driRenderbuffer *) rb; \ - GLuint pitch = drb->pitch * drb->cpp; \ + GLuint pitch = drb->pitch; \ GLuint height = dPriv->h; \ char *buf = (char *) drb->Base.Data + \ dPriv->x * drb->cpp + \ @@ -133,7 +133,7 @@ do { \ intelContextPtr intel = INTEL_CONTEXT(ctx); \ __DRIdrawablePrivate *dPriv = intel->driDrawable; \ driRenderbuffer *drb = (driRenderbuffer *) rb; \ - GLuint pitch = drb->pitch * drb->cpp; \ + GLuint pitch = drb->pitch; \ GLuint height = dPriv->h; \ char *buf = (char *)drb->Base.Data + \ dPriv->x * drb->cpp + \ |