#include "imports.h"
#include "points.h"
-#include "swrast/swrast.h"
-#include "swrast_setup/swrast_setup.h"
#include "tnl/tnl.h"
#include "tnl/t_pipeline.h"
static void
intelInvalidateState(GLcontext * ctx, GLuint new_state)
{
- _swrast_InvalidateState(ctx, new_state);
- _swsetup_InvalidateState(ctx, new_state);
_vbo_InvalidateState(ctx, new_state);
_tnl_InvalidateState(ctx, new_state);
_tnl_invalidate_vertex_state(ctx, new_state);
{
struct intel_context *intel = intel_context(ctx);
- if (intel->Fallback)
- _swrast_flush(ctx);
-
INTEL_FIREVERTICES(intel);
if (intel->batch->map != intel->batch->ptr)
functions->Finish = intelFinish;
functions->GetString = intelGetString;
functions->UpdateState = intelInvalidateState;
- functions->CopyColorTable = _swrast_CopyColorTable;
- functions->CopyColorSubTable = _swrast_CopyColorSubTable;
- functions->CopyConvolutionFilter1D = _swrast_CopyConvolutionFilter1D;
- functions->CopyConvolutionFilter2D = _swrast_CopyConvolutionFilter2D;
intelInitTextureFuncs(functions);
intelInitPixelFuncs(functions);
ctx->Const.MaxColorAttachments = 4; /* XXX FBO: review this */
/* Initialize the software rasterizer and helper modules. */
- _swrast_CreateContext(ctx);
_vbo_CreateContext(ctx);
_tnl_CreateContext(ctx);
- _swsetup_CreateContext(ctx);
-
- /* Configure swrast to match hardware characteristics: */
- _swrast_allow_pixel_fog(ctx, GL_FALSE);
- _swrast_allow_vertex_fog(ctx, GL_TRUE);
/*
* Pipe-related setup
//intel->vtbl.destroy(intel);
release_texture_heaps = (intel->ctx.Shared->RefCount == 1);
- _swsetup_DestroyContext(&intel->ctx);
_tnl_DestroyContext(&intel->ctx);
_vbo_DestroyContext(&intel->ctx);
- _swrast_DestroyContext(&intel->ctx);
intel->Fallback = 0; /* don't call _swrast_Flush later */
intel_batchbuffer_free(intel->batch);
*/
intel->numClipRects = 0;
- if (intel->Fallback)
- _swrast_flush(&intel->ctx);
-
INTEL_FIREVERTICES(intel);
if (intel->batch->map != intel->batch->ptr)
**************************************************************************/
#include "state.h"
-#include "swrast/swrast.h"
#include "intel_context.h"
#include "intel_pixel.h"
void
intelInitPixelFuncs(struct dd_function_table *functions)
{
- functions->Accum = _swrast_Accum;
- functions->Bitmap = _swrast_Bitmap;
- functions->CopyPixels = _swrast_CopyPixels;
- functions->ReadPixels = _swrast_ReadPixels;
- functions->DrawPixels = _swrast_DrawPixels;
}
return;
fail:
+#if 0
_swrast_copy_teximage2d(ctx, target, level, internalFormat, x, y,
width, height, border);
+#endif
+ assert(0);
}
if (!do_copy_texsubimage(intel_context(ctx),
intel_texture_image(texImage),
internalFormat, xoffset, 0, x, y, width, 1)) {
+#if 0
_swrast_copy_texsubimage1d(ctx, target, level, xoffset, x, y, width);
+#endif
+ assert(0);
}
}
intel_texture_image(texImage),
internalFormat,
xoffset, yoffset, x, y, width, height)) {
-
- DBG("%s - fallback to swrast\n", __FUNCTION__);
-
+#if 0
_swrast_copy_texsubimage2d(ctx, target, level,
xoffset, yoffset, x, y, width, height);
+#endif
+ assert(0);
}
}