Remove GL_MESA_packed_depth_stencil
This extension was never enabled in any driver.
This commit is contained in:
@@ -52,15 +52,11 @@ __glElementsPerGroup(GLenum format, GLenum type)
|
|||||||
case GL_UNSIGNED_SHORT_1_5_5_5_REV:
|
case GL_UNSIGNED_SHORT_1_5_5_5_REV:
|
||||||
case GL_UNSIGNED_SHORT_8_8_APPLE:
|
case GL_UNSIGNED_SHORT_8_8_APPLE:
|
||||||
case GL_UNSIGNED_SHORT_8_8_REV_APPLE:
|
case GL_UNSIGNED_SHORT_8_8_REV_APPLE:
|
||||||
case GL_UNSIGNED_SHORT_15_1_MESA:
|
|
||||||
case GL_UNSIGNED_SHORT_1_15_REV_MESA:
|
|
||||||
case GL_UNSIGNED_INT_8_8_8_8:
|
case GL_UNSIGNED_INT_8_8_8_8:
|
||||||
case GL_UNSIGNED_INT_8_8_8_8_REV:
|
case GL_UNSIGNED_INT_8_8_8_8_REV:
|
||||||
case GL_UNSIGNED_INT_10_10_10_2:
|
case GL_UNSIGNED_INT_10_10_10_2:
|
||||||
case GL_UNSIGNED_INT_2_10_10_10_REV:
|
case GL_UNSIGNED_INT_2_10_10_10_REV:
|
||||||
case GL_UNSIGNED_INT_24_8_NV:
|
case GL_UNSIGNED_INT_24_8_NV:
|
||||||
case GL_UNSIGNED_INT_24_8_MESA:
|
|
||||||
case GL_UNSIGNED_INT_8_24_REV_MESA:
|
|
||||||
return 1;
|
return 1;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -114,8 +110,6 @@ __glBytesPerElement(GLenum type)
|
|||||||
case GL_UNSIGNED_SHORT_1_5_5_5_REV:
|
case GL_UNSIGNED_SHORT_1_5_5_5_REV:
|
||||||
case GL_UNSIGNED_SHORT_8_8_APPLE:
|
case GL_UNSIGNED_SHORT_8_8_APPLE:
|
||||||
case GL_UNSIGNED_SHORT_8_8_REV_APPLE:
|
case GL_UNSIGNED_SHORT_8_8_REV_APPLE:
|
||||||
case GL_UNSIGNED_SHORT_15_1_MESA:
|
|
||||||
case GL_UNSIGNED_SHORT_1_15_REV_MESA:
|
|
||||||
return 2;
|
return 2;
|
||||||
case GL_UNSIGNED_BYTE:
|
case GL_UNSIGNED_BYTE:
|
||||||
case GL_BYTE:
|
case GL_BYTE:
|
||||||
@@ -130,8 +124,6 @@ __glBytesPerElement(GLenum type)
|
|||||||
case GL_UNSIGNED_INT_10_10_10_2:
|
case GL_UNSIGNED_INT_10_10_10_2:
|
||||||
case GL_UNSIGNED_INT_2_10_10_10_REV:
|
case GL_UNSIGNED_INT_2_10_10_10_REV:
|
||||||
case GL_UNSIGNED_INT_24_8_NV:
|
case GL_UNSIGNED_INT_24_8_NV:
|
||||||
case GL_UNSIGNED_INT_24_8_MESA:
|
|
||||||
case GL_UNSIGNED_INT_8_24_REV_MESA:
|
|
||||||
return 4;
|
return 4;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -55,7 +55,6 @@
|
|||||||
(((unsigned long)p) - (unsigned long)mmesa->mgaScreen->buffers.map)
|
(((unsigned long)p) - (unsigned long)mmesa->mgaScreen->buffers.map)
|
||||||
|
|
||||||
|
|
||||||
#if defined(MESA_packed_depth_stencil)
|
|
||||||
static GLboolean
|
static GLboolean
|
||||||
check_depth_stencil_24_8( const GLcontext *ctx, GLenum type,
|
check_depth_stencil_24_8( const GLcontext *ctx, GLenum type,
|
||||||
const struct gl_pixelstore_attrib *packing,
|
const struct gl_pixelstore_attrib *packing,
|
||||||
@@ -64,7 +63,7 @@ check_depth_stencil_24_8( const GLcontext *ctx, GLenum type,
|
|||||||
{
|
{
|
||||||
mgaContextPtr mmesa = MGA_CONTEXT(ctx);
|
mgaContextPtr mmesa = MGA_CONTEXT(ctx);
|
||||||
|
|
||||||
return ( type == GL_UNSIGNED_INT_24_8_MESA &&
|
return ( type == GL_UNSIGNED_INT_24_8 &&
|
||||||
ctx->Visual->DepthBits == 24 &&
|
ctx->Visual->DepthBits == 24 &&
|
||||||
ctx->Visual->StencilBits == 8 &&
|
ctx->Visual->StencilBits == 8 &&
|
||||||
mmesa->mgaScreen->cpp == 4 &&
|
mmesa->mgaScreen->cpp == 4 &&
|
||||||
@@ -78,7 +77,6 @@ check_depth_stencil_24_8( const GLcontext *ctx, GLenum type,
|
|||||||
pitch % 32 == 0 &&
|
pitch % 32 == 0 &&
|
||||||
pitch < 4096 );
|
pitch < 4096 );
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
static GLboolean
|
static GLboolean
|
||||||
@@ -252,13 +250,11 @@ mgaTryReadPixels( GLcontext *ctx,
|
|||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
|
|
||||||
switch (format) {
|
switch (format) {
|
||||||
#if defined(MESA_packed_depth_stencil)
|
case GL_DEPTH_STENCIL:
|
||||||
case GL_DEPTH_STENCIL_MESA:
|
|
||||||
ok = check_depth_stencil_24_8(ctx, type, pack, pixels, size, pitch);
|
ok = check_depth_stencil_24_8(ctx, type, pack, pixels, size, pitch);
|
||||||
planemask = ~0;
|
planemask = ~0;
|
||||||
source = mmesa->mgaScreen->depthOffset;
|
source = mmesa->mgaScreen->depthOffset;
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
|
|
||||||
case GL_DEPTH_COMPONENT:
|
case GL_DEPTH_COMPONENT:
|
||||||
ok = check_depth(ctx, type, pack, pixels, size, pitch);
|
ok = check_depth(ctx, type, pack, pixels, size, pitch);
|
||||||
@@ -494,8 +490,7 @@ mgaTryDrawPixels( GLcontext *ctx,
|
|||||||
|
|
||||||
|
|
||||||
switch (format) {
|
switch (format) {
|
||||||
#if defined(MESA_packed_depth_stencil)
|
case GL_DEPTH_STENCIL:
|
||||||
case GL_DEPTH_STENCIL_MESA:
|
|
||||||
dest = mmesa->mgaScreen->depthOffset;
|
dest = mmesa->mgaScreen->depthOffset;
|
||||||
planemask = ~0;
|
planemask = ~0;
|
||||||
if (!check_depth_stencil_24_8(ctx, type, unpack, pixels, size, pitch) ||
|
if (!check_depth_stencil_24_8(ctx, type, unpack, pixels, size, pitch) ||
|
||||||
@@ -503,7 +498,6 @@ mgaTryDrawPixels( GLcontext *ctx,
|
|||||||
!check_stencil_per_fragment_ops(ctx))
|
!check_stencil_per_fragment_ops(ctx))
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
|
|
||||||
case GL_DEPTH_COMPONENT:
|
case GL_DEPTH_COMPONENT:
|
||||||
dest = mmesa->mgaScreen->depthOffset;
|
dest = mmesa->mgaScreen->depthOffset;
|
||||||
|
@@ -184,7 +184,6 @@ static const struct {
|
|||||||
{ OFF, "GL_IBM_texture_mirrored_repeat", F(ARB_texture_mirrored_repeat)},
|
{ OFF, "GL_IBM_texture_mirrored_repeat", F(ARB_texture_mirrored_repeat)},
|
||||||
{ OFF, "GL_INGR_blend_func_separate", F(EXT_blend_func_separate) },
|
{ OFF, "GL_INGR_blend_func_separate", F(EXT_blend_func_separate) },
|
||||||
{ OFF, "GL_MESA_pack_invert", F(MESA_pack_invert) },
|
{ OFF, "GL_MESA_pack_invert", F(MESA_pack_invert) },
|
||||||
{ OFF, "GL_MESA_packed_depth_stencil", F(MESA_packed_depth_stencil) },
|
|
||||||
{ OFF, "GL_MESA_resize_buffers", F(MESA_resize_buffers) },
|
{ OFF, "GL_MESA_resize_buffers", F(MESA_resize_buffers) },
|
||||||
{ OFF, "GL_MESA_texture_array", F(MESA_texture_array) },
|
{ OFF, "GL_MESA_texture_array", F(MESA_texture_array) },
|
||||||
{ OFF, "GL_MESA_texture_signed_rgba", F(MESA_texture_signed_rgba) },
|
{ OFF, "GL_MESA_texture_signed_rgba", F(MESA_texture_signed_rgba) },
|
||||||
|
@@ -2687,7 +2687,6 @@ struct gl_extensions
|
|||||||
GLboolean IBM_rasterpos_clip;
|
GLboolean IBM_rasterpos_clip;
|
||||||
GLboolean IBM_multimode_draw_arrays;
|
GLboolean IBM_multimode_draw_arrays;
|
||||||
GLboolean MESA_pack_invert;
|
GLboolean MESA_pack_invert;
|
||||||
GLboolean MESA_packed_depth_stencil;
|
|
||||||
GLboolean MESA_resize_buffers;
|
GLboolean MESA_resize_buffers;
|
||||||
GLboolean MESA_ycbcr_texture;
|
GLboolean MESA_ycbcr_texture;
|
||||||
GLboolean MESA_texture_array;
|
GLboolean MESA_texture_array;
|
||||||
|
Reference in New Issue
Block a user