projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c30c5
)
dri/swrast: Fix missed conversion of one pixel pointer increment.
author
Michel Dänzer
<daenzer@vmware.com>
Fri, 26 Mar 2010 15:29:59 +0000
(16:29 +0100)
committer
Michel Dänzer
<daenzer@vmware.com>
Fri, 26 Mar 2010 17:30:49 +0000
(18:30 +0100)
This probably broke the swrast DRI driver when running X in depth 16.
(cherry picked from commit
6ec259eb17dfbb74972b8cffb4e02a9dbab288cc
)
src/mesa/drivers/dri/swrast/swrast_span.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/swrast/swrast_span.c
b/src/mesa/drivers/dri/swrast/swrast_span.c
index 5290dc82b91df648668c467ab08932afa387fd9f..d896e154f76e9931b0ac8e1b6186c77b7eddbc5e 100644
(file)
--- a/
src/mesa/drivers/dri/swrast/swrast_span.c
+++ b/
src/mesa/drivers/dri/swrast/swrast_span.c
@@
-240,7
+240,7
@@
static const GLubyte kernel[16] = {
struct swrast_renderbuffer *xrb = swrast_renderbuffer(rb);
#define INIT_PIXEL_PTR(P, X, Y) \
GLushort *P = (GLushort *)row;
-#define INC_PIXEL_PTR(P) P
+= 2
+#define INC_PIXEL_PTR(P) P
++
#define STORE_PIXEL(DST, X, Y, VALUE) \
STORE_PIXEL_R5G6B5(DST, X, Y, VALUE)
#define FETCH_PIXEL(DST, SRC) \