mesa: rename MESA_FORMAT_X8Z24_UNORM -> MESA_FORMAT_X8_UINT_Z24_UNORM
To follow the example of MESA_FORMAT_Z24_UNORM_X8_UINT. Reviewed-by: Michel Dänzer <michel@daenzer.net> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -368,8 +368,8 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] =
|
||||
1, 1, 4 /* BlockWidth/Height,Bytes */
|
||||
},
|
||||
{
|
||||
MESA_FORMAT_X8Z24_UNORM, /* Name */
|
||||
"MESA_FORMAT_X8Z24_UNORM", /* StrName */
|
||||
MESA_FORMAT_X8_UINT_Z24_UNORM, /* Name */
|
||||
"MESA_FORMAT_X8_UINT_Z24_UNORM", /* StrName */
|
||||
GL_DEPTH_COMPONENT, /* BaseFormat */
|
||||
GL_UNSIGNED_NORMALIZED, /* DataType */
|
||||
0, 0, 0, 0, /* Red/Green/Blue/AlphaBits */
|
||||
@@ -2518,7 +2518,7 @@ _mesa_format_to_type_and_comps(mesa_format format,
|
||||
*comps = 1;
|
||||
return;
|
||||
|
||||
case MESA_FORMAT_X8Z24_UNORM:
|
||||
case MESA_FORMAT_X8_UINT_Z24_UNORM:
|
||||
*datatype = GL_UNSIGNED_INT;
|
||||
*comps = 1;
|
||||
return;
|
||||
@@ -3160,7 +3160,7 @@ _mesa_format_matches_format_and_type(mesa_format mesa_format,
|
||||
case MESA_FORMAT_S8_UINT_Z24_UNORM:
|
||||
return format == GL_DEPTH_STENCIL && type == GL_UNSIGNED_INT_24_8 &&
|
||||
!swapBytes;
|
||||
case MESA_FORMAT_X8Z24_UNORM:
|
||||
case MESA_FORMAT_X8_UINT_Z24_UNORM:
|
||||
case MESA_FORMAT_Z24_UNORM_S8_UINT:
|
||||
return GL_FALSE;
|
||||
|
||||
|
Reference in New Issue
Block a user