gallium: remove unneeded st->haveFramebufferSurfaces field.

This commit is contained in:
Brian Paul
2008-04-09 16:09:46 -06:00
parent f7e475280a
commit a52faa9325
4 changed files with 1 additions and 16 deletions

View File

@@ -814,9 +814,6 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
mesaCtx->Const.CheckArrayBounds = GL_TRUE; mesaCtx->Const.CheckArrayBounds = GL_TRUE;
#endif #endif
/* finish up xmesa context initializations */
c->st->haveFramebufferSurfaces = GL_TRUE;
return c; return c;
} }

View File

@@ -1017,11 +1017,7 @@ st_CopyPixels(GLcontext *ctx, GLint srcx, GLint srcy,
srcy = ctx->DrawBuffer->Height - srcy - height; srcy = ctx->DrawBuffer->Height - srcy - height;
} }
/* For some drivers (like Xlib) it's not possible to treat the if (srcFormat == texFormat) {
* front/back color buffers as surfaces (they're XImages and Pixmaps).
* So, this var tells us if we can use surface_copy here...
*/
if (st->haveFramebufferSurfaces && srcFormat == texFormat) {
/* copy source framebuffer surface into mipmap/texture */ /* copy source framebuffer surface into mipmap/texture */
pipe->surface_copy(pipe, pipe->surface_copy(pipe,
FALSE, FALSE,

View File

@@ -128,8 +128,6 @@ st_create_context_priv( GLcontext *ctx, struct pipe_context *pipe )
st->ctx->VertexProgram._MaintainTnlProgram = GL_TRUE; st->ctx->VertexProgram._MaintainTnlProgram = GL_TRUE;
st->haveFramebufferSurfaces = GL_TRUE;
st->pixel_xfer.cache = _mesa_new_program_cache(); st->pixel_xfer.cache = _mesa_new_program_cache();
/* GL limits and extensions */ /* GL limits and extensions */

View File

@@ -111,12 +111,6 @@ struct st_context
char vendor[100]; char vendor[100];
char renderer[100]; char renderer[100];
/** Can we access the front/back color buffers as pipe_surfaces?
* We can't with the Xlib driver...
* This is a hack that should be fixed someday.
*/
GLboolean haveFramebufferSurfaces;
/* State to be validated: /* State to be validated:
*/ */
struct st_tracked_state **atoms; struct st_tracked_state **atoms;