summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian@i915.localnet.net>2007-08-01 13:11:34 -0600
committerBrian <brian@i915.localnet.net>2007-08-01 13:11:34 -0600
commitcddce60e7b14171f7afb204be5c131ce73ce01c5 (patch)
treef64cb816ca14a8db96e3f8456dee24bce04f6368 /src/mesa
parent5fd46065915d3958569ebb590104b69886352157 (diff)
s/Z24_S8/S8_Z24/
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i915pipe/intel_surface.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i915pipe/intel_surface.c b/src/mesa/drivers/dri/i915pipe/intel_surface.c
index d1a8960cc6..78ed995794 100644
--- a/src/mesa/drivers/dri/i915pipe/intel_surface.c
+++ b/src/mesa/drivers/dri/i915pipe/intel_surface.c
@@ -90,7 +90,7 @@ read_quad_z24(struct softpipe_surface *sps,
= (GLuint *) (sps->surface.region->map
+ (invY * sps->surface.region->pitch + x) * sps->surface.region->cpp);
- assert(sps->surface.format == PIPE_FORMAT_Z24_S8);
+ assert(sps->surface.format == PIPE_FORMAT_S8_Z24);
/* extract lower three bytes */
zzzz[0] = src[0] & mask;
@@ -109,7 +109,7 @@ write_quad_z24(struct softpipe_surface *sps,
= (GLuint *) (sps->surface.region->map
+ (invY * sps->surface.region->pitch + x) * sps->surface.region->cpp);
- assert(sps->surface.format == PIPE_FORMAT_Z24_S8);
+ assert(sps->surface.format == PIPE_FORMAT_S8_Z24);
/* write lower three bytes */
dst[0] = (dst[0] & mask) | zzzz[0];
@@ -128,7 +128,7 @@ read_quad_stencil(struct softpipe_surface *sps,
const GLuint *src = (const GLuint *) (sps->surface.region->map
+ (invY * sps->surface.region->pitch + x) * sps->surface.region->cpp);
- assert(sps->surface.format == PIPE_FORMAT_Z24_S8);
+ assert(sps->surface.format == PIPE_FORMAT_S8_Z24);
/* extract high byte */
ssss[0] = src[0] >> 24;
@@ -147,7 +147,7 @@ write_quad_stencil(struct softpipe_surface *sps,
GLuint *dst = (GLuint *) (sps->surface.region->map
+ (invY * sps->surface.region->pitch + x) * sps->surface.region->cpp);
- assert(sps->surface.format == PIPE_FORMAT_Z24_S8);
+ assert(sps->surface.format == PIPE_FORMAT_S8_Z24);
/* write high byte */
dst[0] = (dst[0] & mask) | (ssss[0] << 24);
@@ -182,7 +182,7 @@ intel_new_surface(GLuint intFormat)
}
else if (intFormat == GL_DEPTH24_STENCIL8_EXT) {
- sps->surface.format = PIPE_FORMAT_Z24_S8;
+ sps->surface.format = PIPE_FORMAT_S8_Z24;
sps->read_quad_z = read_quad_z24;
sps->write_quad_z = write_quad_z24;
sps->read_quad_stencil = read_quad_stencil;