diff options
| author | Dave Airlie <airlied@linux.ie> | 2009-03-21 18:16:02 +1000 | 
|---|---|---|
| committer | Dave Airlie <airlied@linux.ie> | 2009-03-21 18:16:02 +1000 | 
| commit | 56c5df33de1e34b606bb771db27742af78be30f3 (patch) | |
| tree | 0f06aee674ccfffe53445babf9dcbf5aca1c2d76 /src | |
| parent | 8a600836766716df684f2ab1eeafdcbec4b0f019 (diff) | |
radeon: fixup last missing x_off/y_off
Diffstat (limited to 'src')
| -rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_span.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_span.c b/src/mesa/drivers/dri/radeon/radeon_span.c index 71aeb5ea6b..096ac2f894 100644 --- a/src/mesa/drivers/dri/radeon/radeon_span.c +++ b/src/mesa/drivers/dri/radeon/radeon_span.c @@ -238,7 +238,7 @@ static GLubyte *radeon_ptr(const struct radeon_renderbuffer * rrb,  #define TAG(x)    radeon##x##_RGB565  #define TAG2(x,y) radeon##x##_RGB565##y -#define GET_PTR(X,Y) radeon_ptr16(rrb, (X), (Y)) +#define GET_PTR(X,Y) radeon_ptr16(rrb, (X) + x_off, (Y) + y_off)  #include "spantmp2.h"  /* 32 bit, ARGB8888 color spanline and pixel functions @@ -248,7 +248,7 @@ static GLubyte *radeon_ptr(const struct radeon_renderbuffer * rrb,  #define TAG(x)    radeon##x##_ARGB8888  #define TAG2(x,y) radeon##x##_ARGB8888##y -#define GET_PTR(X,Y) radeon_ptr32(rrb, (X), (Y)) +#define GET_PTR(X,Y) radeon_ptr32(rrb, (X) + x_off, (Y) + y_off)  #include "spantmp2.h"  /* ================================================================ @@ -297,8 +297,8 @@ do {									\  #else  #define WRITE_DEPTH( _x, _y, d )					\  do {									\ -   GLuint *_ptr = (GLuint*)radeon_ptr32( rrb, _x + x_off, _y + y_off );		\_ -   GLuint tmp = *_ptr;				\ +   GLuint *_ptr = (GLuint*)radeon_ptr32( rrb, _x + x_off, _y + y_off );	\ +   GLuint tmp = *_ptr;							\     tmp &= 0xff000000;							\     tmp |= ((d) & 0x00ffffff);						\     *_ptr = tmp;					\  | 
