#include "macros.h"
#include "state.h"
+#include "state_tracker/st_cb_blit.h"
/** Set this to 1 to debug/log glBlitFramebuffer() calls */
#define DEBUG_BLIT 0
return;
}
- assert(ctx->Driver.BlitFramebuffer);
- ctx->Driver.BlitFramebuffer(ctx, readFb, drawFb,
- srcX0, srcY0, srcX1, srcY1,
- dstX0, dstY0, dstX1, dstY1,
- mask, filter);
+ st_BlitFramebuffer(ctx, readFb, drawFb,
+ srcX0, srcY0, srcX1, srcY1,
+ dstX0, dstY0, dstX1, dstY1,
+ mask, filter);
}
/*@}*/
/**
- * \name Functions for GL_EXT_framebuffer_{object,blit,discard}.
- */
- void (*BlitFramebuffer)(struct gl_context *ctx,
- struct gl_framebuffer *readFb,
- struct gl_framebuffer *drawFb,
- GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
- GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
- GLbitfield mask, GLenum filter);
-
- /**
* \name Functions for GL_ARB_sample_locations
*/
void (*GetProgrammableSampleCaps)(struct gl_context *ctx,
#include "util/format/u_format.h"
-static void
+void
st_BlitFramebuffer(struct gl_context *ctx,
struct gl_framebuffer *readFB,
struct gl_framebuffer *drawFB,
}
}
}
-
-
-void
-st_init_blit_functions(struct dd_function_table *functions)
-{
- functions->BlitFramebuffer = st_BlitFramebuffer;
-}
#ifndef ST_CB_BLIT_H
#define ST_CB_BLIT_H
-
-struct dd_function_table;
-struct st_context;
-
-extern void
-st_init_blit_functions(struct dd_function_table *functions);
-
+void
+st_BlitFramebuffer(struct gl_context *ctx,
+ struct gl_framebuffer *readFB,
+ struct gl_framebuffer *drawFB,
+ GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
+ GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1,
+ GLbitfield mask, GLenum filter);
#endif /* ST_CB_BLIT_H */
#include "st_context.h"
#include "st_debug.h"
#include "st_cb_bitmap.h"
-#include "st_cb_blit.h"
#include "st_cb_bufferobjects.h"
#include "st_cb_clear.h"
#include "st_cb_compute.h"
bool has_egl_image_validate)
{
st_init_draw_functions(screen, functions);
- st_init_blit_functions(functions);
st_init_bufferobject_functions(screen, functions);
st_init_drawtex_functions(functions);