OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c1297
)
re-fix stencil addressing bug
author
Brian
<brian@i915.localnet.net>
Tue, 31 Jul 2007 19:42:23 +0000
(13:42 -0600)
committer
Brian
<brian@i915.localnet.net>
Tue, 31 Jul 2007 19:42:23 +0000
(13:42 -0600)
src/mesa/drivers/dri/i915pipe/intel_surface.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915pipe/intel_surface.c
b/src/mesa/drivers/dri/i915pipe/intel_surface.c
index
043c5aa
..
e64e5f8
100644
(file)
--- a/
src/mesa/drivers/dri/i915pipe/intel_surface.c
+++ b/
src/mesa/drivers/dri/i915pipe/intel_surface.c
@@
-133,8
+133,9
@@
read_quad_stencil(struct softpipe_surface *sps,
/* extract high byte */
ssss[0] = src[0] >> 24;
ssss[1] = src[1] >> 24;
- ssss[2] = src[-sps->surface.width] >> 24;
- ssss[3] = src[-sps->surface.width + 1] >> 24;
+ src -= sps->surface.stride;
+ ssss[2] = src[0] >> 24;
+ ssss[3] = src[1] >> 24;
}
static void
@@
-245,15
+246,3
@@
intel_new_surface(GLuint intFormat)
return &sps->surface;
}
-
-
-
-struct pipe_surface *
-xmesa_get_stencil_surface(GLcontext *ctx)
-{
- /* XXX fix */
- return NULL;
-}
-
-
-