projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i965/fs: Remove duplicate include of brw_shader.h
[mesa.git]
/
src
/
mesa
/
swrast
/
s_stencil.c
diff --git
a/src/mesa/swrast/s_stencil.c
b/src/mesa/swrast/s_stencil.c
index 3eeeb24b2de551378a9bcb6aad758cc14305c7c0..eba9da863bac41167c93659501fa2a77c5387f59 100644
(file)
--- a/
src/mesa/swrast/s_stencil.c
+++ b/
src/mesa/swrast/s_stencil.c
@@
-61,7
+61,7
@@
ENDIF
* within the 4-byte pixel will be either 0 or 3.
*/
static GLint
* within the 4-byte pixel will be either 0 or 3.
*/
static GLint
-get_stencil_offset(
gl
_format format)
+get_stencil_offset(
mesa
_format format)
{
const GLubyte one = 1;
GLubyte pixel[MAX_PIXEL_BYTES];
{
const GLubyte one = 1;
GLubyte pixel[MAX_PIXEL_BYTES];
@@
-300,7
+300,7
@@
get_s8_values(struct gl_context *ctx, struct gl_renderbuffer *rb,
const GLubyte *map = _swrast_pixel_address(rb, 0, 0);
GLuint i;
const GLubyte *map = _swrast_pixel_address(rb, 0, 0);
GLuint i;
- if (rb->Format == MESA_FORMAT_S8) {
+ if (rb->Format == MESA_FORMAT_S
_UINT
8) {
const GLint rowStride = srb->RowStride;
for (i = 0; i < count; i++) {
if (x[i] >= 0 && y[i] >= 0 && x[i] < w && y[i] < h) {
const GLint rowStride = srb->RowStride;
for (i = 0; i < count; i++) {
if (x[i] >= 0 && y[i] >= 0 && x[i] < w && y[i] < h) {
@@
-587,7
+587,7
@@
_swrast_clear_stencil_buffer(struct gl_context *ctx)
}
switch (rb->Format) {
}
switch (rb->Format) {
- case MESA_FORMAT_S8:
+ case MESA_FORMAT_S
_UINT
8:
{
GLubyte clear = ctx->Stencil.Clear & writeMask & 0xff;
GLubyte mask = (~writeMask) & 0xff;
{
GLubyte clear = ctx->Stencil.Clear & writeMask & 0xff;
GLubyte mask = (~writeMask) & 0xff;
@@
-614,7
+614,7
@@
_swrast_clear_stencil_buffer(struct gl_context *ctx)
}
}
break;
}
}
break;
- case MESA_FORMAT_
S8_Z24
:
+ case MESA_FORMAT_
Z24_UNORM_S8_UINT
:
{
GLuint clear = (ctx->Stencil.Clear & writeMask & 0xff) << 24;
GLuint mask = (((~writeMask) & 0xff) << 24) | 0xffffff;
{
GLuint clear = (ctx->Stencil.Clear & writeMask & 0xff) << 24;
GLuint mask = (((~writeMask) & 0xff) << 24) | 0xffffff;
@@
-627,7
+627,7
@@
_swrast_clear_stencil_buffer(struct gl_context *ctx)
}
}
break;
}
}
break;
- case MESA_FORMAT_
Z24_S8
:
+ case MESA_FORMAT_
S8_UINT_Z24_UNORM
:
{
GLuint clear = ctx->Stencil.Clear & writeMask & 0xff;
GLuint mask = 0xffffff00 | ((~writeMask) & 0xff);
{
GLuint clear = ctx->Stencil.Clear & writeMask & 0xff;
GLuint mask = 0xffffff00 | ((~writeMask) & 0xff);