diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2006-10-23 10:13:24 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2006-10-23 10:13:24 +0200 |
commit | 914a5f0117ccb76292bdd81ea4a2a79d33319550 (patch) | |
tree | 635c561db9f8d533a00fd57377766a7c46c7e042 /src/radeon_render.c | |
parent | 2bcb51d66edaa944379cf8c8ca1ba91fffdc20a8 (diff) |
radeon: Pitch doesn't matter when height == 1.
Diffstat (limited to 'src/radeon_render.c')
-rw-r--r-- | src/radeon_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_render.c b/src/radeon_render.c index 054e60f7..5074fe1f 100644 --- a/src/radeon_render.c +++ b/src/radeon_render.c @@ -401,7 +401,7 @@ static Bool FUNC_NAME(R100SetupTexture)( dst_pitch = (width * tex_bytepp + 63) & ~63; size = dst_pitch * height; - if ((flags & XAA_RENDER_REPEAT) && + if ((flags & XAA_RENDER_REPEAT) && (height != 1) && (((width * tex_bytepp + 31) & ~31) != dst_pitch)) return FALSE; @@ -738,7 +738,7 @@ static Bool FUNC_NAME(R200SetupTexture)( dst_pitch = (width * tex_bytepp + 63) & ~63; size = dst_pitch * height; - if ((flags & XAA_RENDER_REPEAT) && + if ((flags & XAA_RENDER_REPEAT) && (height != 1) && (((width * tex_bytepp + 31) & ~31) != dst_pitch)) return FALSE; |