#include "intel_pixel.h"
#include "intel_fbo.h"
#include "intel_blit.h"
+#include "intel_batchbuffer.h"
#define FILE_DEBUG_FLAG DEBUG_PIXEL
GLint dstx, GLint dsty, GLenum type)
{
struct brw_context *brw = brw_context(ctx);
- struct intel_context *intel = intel_context(ctx);
struct gl_framebuffer *fb = ctx->DrawBuffer;
struct gl_framebuffer *read_fb = ctx->ReadBuffer;
GLint orig_dstx;
intel_prepare_render(brw);
- intel_flush(&intel->ctx);
+ intel_batchbuffer_flush(brw);
/* Clip to destination buffer. */
orig_dstx = dstx;