summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian@i915.localnet.net>2007-07-31 13:42:23 -0600
committerBrian <brian@i915.localnet.net>2007-07-31 13:42:23 -0600
commit33891b64a9a00ddfd7b9c57a2020e83449af62e5 (patch)
tree88334e64d2aa9884e7f2fdab39a46eb3d20a5469 /src
parent58c1297b22c61d2c9d9c0ae7a6caf97545fe520e (diff)
re-fix stencil addressing bug
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915pipe/intel_surface.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/mesa/drivers/dri/i915pipe/intel_surface.c b/src/mesa/drivers/dri/i915pipe/intel_surface.c
index 043c5aa5fe..e64e5f8a32 100644
--- 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;
-}
-
-
-