mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
s/PIPE_FORMAT_U_S8/PIPE_FORMAT_S8_UNORM/
This commit is contained in:
parent
87afc9bcad
commit
1de0af303a
3 changed files with 5 additions and 5 deletions
|
|
@ -770,7 +770,7 @@ draw_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
|
|||
}
|
||||
|
||||
switch (ps->format) {
|
||||
case PIPE_FORMAT_U_S8:
|
||||
case PIPE_FORMAT_S8_UNORM:
|
||||
{
|
||||
ubyte *dest = stmap + spanY * ps->pitch + spanX;
|
||||
memcpy(dest, values, spanWidth);
|
||||
|
|
@ -914,7 +914,7 @@ copy_stencil_pixels(GLcontext *ctx, GLint srcx, GLint srcy,
|
|||
}
|
||||
}
|
||||
break;
|
||||
case PIPE_FORMAT_U_S8:
|
||||
case PIPE_FORMAT_S8_UNORM:
|
||||
memcpy(dst, src, width);
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ st_read_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
|
|||
|
||||
/* get stencil values */
|
||||
switch (ps->format) {
|
||||
case PIPE_FORMAT_U_S8:
|
||||
case PIPE_FORMAT_S8_UNORM:
|
||||
{
|
||||
const ubyte *src = stmap + srcY * ps->pitch + x;
|
||||
memcpy(values, src, width);
|
||||
|
|
|
|||
|
|
@ -503,8 +503,8 @@ st_choose_format(struct pipe_context *pipe, GLint internalFormat,
|
|||
case GL_STENCIL_INDEX4_EXT:
|
||||
case GL_STENCIL_INDEX8_EXT:
|
||||
case GL_STENCIL_INDEX16_EXT:
|
||||
if (screen->is_format_supported( screen, PIPE_FORMAT_U_S8, surfType ))
|
||||
return PIPE_FORMAT_U_S8;
|
||||
if (screen->is_format_supported( screen, PIPE_FORMAT_S8_UNORM, surfType ))
|
||||
return PIPE_FORMAT_S8_UNORM;
|
||||
if (screen->is_format_supported( screen, PIPE_FORMAT_S8Z24_UNORM, surfType ))
|
||||
return PIPE_FORMAT_S8Z24_UNORM;
|
||||
if (screen->is_format_supported( screen, PIPE_FORMAT_Z24S8_UNORM, surfType ))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue