initial support for PIPE_FORMAT_Z24_S8

This commit is contained in:
Brian
2007-11-20 08:30:10 -07:00
parent c4f9fbb57f
commit 0191570f02
4 changed files with 24 additions and 4 deletions

View File

@@ -100,6 +100,15 @@ st_read_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
}
}
break;
case PIPE_FORMAT_Z24_S8:
{
const uint *src = (uint *) stmap + srcY * ps->region->pitch + x;
GLint k;
for (k = 0; k < width; k++) {
values[k] = src[k] & 0xff;
}
}
break;
default:
assert(0);
}