DRM_BO_MASK_MEM | DRM_BO_FLAG_WRITE, dst_offset);
OUT_BATCH(value);
ADVANCE_BATCH();
+
+ intel_batchbuffer_flush(intel->batch);
}
src_offset + src_y * src_pitch);
ADVANCE_BATCH();
}
+
+ intel_batchbuffer_flush( intel->batch );
}
-/* XXX - kludge required because softpipe_clear uses
- * region->fill(), which still calls intelBlit(!), but doesn't
- * flush the batchbuffer.
- *
- * One way or another, that behaviour should stop, and then this
- * function can go aawy.
- */
-void
-intelClear(struct pipe_context *pipe,
- GLboolean color, GLboolean depth,
- GLboolean stencil, GLboolean accum)
-{
- GLcontext *ctx = (GLcontext *) pipe->glctx;
- struct intel_context *intel = intel_context(ctx);
-
- softpipe_clear(pipe, color, depth, stencil, accum);
-
- intel_batchbuffer_flush(intel->batch);
-}
-
-
-
/* Emit wait for pending flips */
void
intel_wait_flips(struct intel_context *intel, GLuint batch_flags)
void
intelInitBufferFuncs(struct dd_function_table *functions)
{
-#if 0
- functions->Clear = intelClear;
-#endif
functions->DrawBuffer = intelDrawBuffer;
functions->ReadBuffer = intelReadBuffer;
}
extern void intelInitBufferFuncs(struct dd_function_table *functions);
-extern void
-intelClear(struct pipe_context *pipe,
- GLboolean color, GLboolean depth,
- GLboolean stencil, GLboolean accum);
-
#endif /* INTEL_BUFFERS_H */
intel->pipe = intel->ctx.st->pipe;
intel->pipe->screen = intelScreen;
intel->pipe->glctx = ctx;
- intel->pipe->clear = intelClear;
intelScreen->pipe = intel->pipe;
intel_init_region_functions(intel->pipe);