Revert "mesa: move _mesa_meta_init/free() calls to core Mesa"
This reverts commit 651cffd626
.
The commit inadvertantly introduced a new gallium dependency on the meta code.
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
#include "swrast_setup/swrast_setup.h"
|
#include "swrast_setup/swrast_setup.h"
|
||||||
#include "tnl/tnl.h"
|
#include "tnl/tnl.h"
|
||||||
#include "drivers/common/driverfuncs.h"
|
#include "drivers/common/driverfuncs.h"
|
||||||
|
#include "drivers/common/meta.h"
|
||||||
|
|
||||||
#include "i830_dri.h"
|
#include "i830_dri.h"
|
||||||
|
|
||||||
@@ -711,6 +712,8 @@ intelInitContext(struct intel_context *intel,
|
|||||||
_swrast_allow_pixel_fog(ctx, GL_FALSE);
|
_swrast_allow_pixel_fog(ctx, GL_FALSE);
|
||||||
_swrast_allow_vertex_fog(ctx, GL_TRUE);
|
_swrast_allow_vertex_fog(ctx, GL_TRUE);
|
||||||
|
|
||||||
|
_mesa_meta_init(ctx);
|
||||||
|
|
||||||
intel->hw_stencil = mesaVis->stencilBits && mesaVis->depthBits == 24;
|
intel->hw_stencil = mesaVis->stencilBits && mesaVis->depthBits == 24;
|
||||||
intel->hw_stipple = 1;
|
intel->hw_stipple = 1;
|
||||||
|
|
||||||
@@ -814,6 +817,8 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
|
|||||||
|
|
||||||
INTEL_FIREVERTICES(intel);
|
INTEL_FIREVERTICES(intel);
|
||||||
|
|
||||||
|
_mesa_meta_free(&intel->ctx);
|
||||||
|
|
||||||
meta_destroy_metaops(&intel->meta);
|
meta_destroy_metaops(&intel->meta);
|
||||||
|
|
||||||
intel->vtbl.destroy(intel);
|
intel->vtbl.destroy(intel);
|
||||||
|
@@ -37,6 +37,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "vblank.h"
|
#include "vblank.h"
|
||||||
#include "drirenderbuffer.h"
|
#include "drirenderbuffer.h"
|
||||||
|
#include "drivers/common/meta.h"
|
||||||
#include "main/context.h"
|
#include "main/context.h"
|
||||||
#include "main/framebuffer.h"
|
#include "main/framebuffer.h"
|
||||||
#include "main/renderbuffer.h"
|
#include "main/renderbuffer.h"
|
||||||
@@ -208,6 +209,8 @@ GLboolean radeonInitContext(radeonContextPtr radeon,
|
|||||||
|
|
||||||
meta_init_metaops(ctx, &radeon->meta);
|
meta_init_metaops(ctx, &radeon->meta);
|
||||||
|
|
||||||
|
_mesa_meta_init(ctx);
|
||||||
|
|
||||||
/* DRI fields */
|
/* DRI fields */
|
||||||
radeon->dri.context = driContextPriv;
|
radeon->dri.context = driContextPriv;
|
||||||
radeon->dri.screen = sPriv;
|
radeon->dri.screen = sPriv;
|
||||||
@@ -303,6 +306,8 @@ void radeonDestroyContext(__DRIcontextPrivate *driContextPriv )
|
|||||||
|
|
||||||
assert(radeon);
|
assert(radeon);
|
||||||
|
|
||||||
|
_mesa_meta_free(radeon->glCtx);
|
||||||
|
|
||||||
if (radeon == current) {
|
if (radeon == current) {
|
||||||
radeon_firevertices(radeon);
|
radeon_firevertices(radeon);
|
||||||
_mesa_make_current(NULL, NULL, NULL);
|
_mesa_make_current(NULL, NULL, NULL);
|
||||||
|
@@ -79,6 +79,7 @@
|
|||||||
#include "tnl/t_context.h"
|
#include "tnl/t_context.h"
|
||||||
#include "tnl/t_pipeline.h"
|
#include "tnl/t_pipeline.h"
|
||||||
#include "drivers/common/driverfuncs.h"
|
#include "drivers/common/driverfuncs.h"
|
||||||
|
#include "drivers/common/meta.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Global X driver lock
|
* Global X driver lock
|
||||||
@@ -1647,6 +1648,9 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
|
|||||||
xmesa_register_swrast_functions( mesaCtx );
|
xmesa_register_swrast_functions( mesaCtx );
|
||||||
_swsetup_Wakeup(mesaCtx);
|
_swsetup_Wakeup(mesaCtx);
|
||||||
|
|
||||||
|
if (TEST_META_FUNCS)
|
||||||
|
_mesa_meta_init(mesaCtx);
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1661,6 +1665,9 @@ void XMesaDestroyContext( XMesaContext c )
|
|||||||
FXdestroyContext( XMESA_BUFFER(mesaCtx->DrawBuffer) );
|
FXdestroyContext( XMESA_BUFFER(mesaCtx->DrawBuffer) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (TEST_META_FUNCS)
|
||||||
|
_mesa_meta_free( mesaCtx );
|
||||||
|
|
||||||
_swsetup_DestroyContext( mesaCtx );
|
_swsetup_DestroyContext( mesaCtx );
|
||||||
_swrast_DestroyContext( mesaCtx );
|
_swrast_DestroyContext( mesaCtx );
|
||||||
_tnl_DestroyContext( mesaCtx );
|
_tnl_DestroyContext( mesaCtx );
|
||||||
|
@@ -149,7 +149,6 @@
|
|||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "viewport.h"
|
#include "viewport.h"
|
||||||
#include "vtxfmt.h"
|
#include "vtxfmt.h"
|
||||||
#include "drivers/common/meta.h"
|
|
||||||
#include "glapi/glthread.h"
|
#include "glapi/glthread.h"
|
||||||
#include "glapi/glapioffsets.h"
|
#include "glapi/glapioffsets.h"
|
||||||
#include "glapi/glapitable.h"
|
#include "glapi/glapitable.h"
|
||||||
@@ -927,8 +926,6 @@ _mesa_initialize_context(GLcontext *ctx,
|
|||||||
_mesa_initialize_context_extra(ctx);
|
_mesa_initialize_context_extra(ctx);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_mesa_meta_init(ctx);
|
|
||||||
|
|
||||||
ctx->FirstTimeCurrent = GL_TRUE;
|
ctx->FirstTimeCurrent = GL_TRUE;
|
||||||
|
|
||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
@@ -994,8 +991,6 @@ _mesa_free_context_data( GLcontext *ctx )
|
|||||||
_mesa_make_current(ctx, NULL, NULL);
|
_mesa_make_current(ctx, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
_mesa_meta_free(ctx);
|
|
||||||
|
|
||||||
/* unreference WinSysDraw/Read buffers */
|
/* unreference WinSysDraw/Read buffers */
|
||||||
_mesa_reference_framebuffer(&ctx->WinSysDrawBuffer, NULL);
|
_mesa_reference_framebuffer(&ctx->WinSysDrawBuffer, NULL);
|
||||||
_mesa_reference_framebuffer(&ctx->WinSysReadBuffer, NULL);
|
_mesa_reference_framebuffer(&ctx->WinSysReadBuffer, NULL);
|
||||||
|
Reference in New Issue
Block a user