intel: Drop intelFlush()
Now that intel_flush() deosn't use the needs_mi_flush argument, we can finally drop one of the two flush functions.
This commit is contained in:
@@ -277,7 +277,7 @@ intel_bufferobj_map(GLcontext * ctx,
|
||||
|
||||
/* Flush any existing batchbuffer that might reference this data. */
|
||||
if (drm_intel_bo_references(intel->batch->buf, intel_obj->buffer))
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
|
||||
if (intel_obj->region)
|
||||
intel_bufferobj_cow(intel, intel_obj);
|
||||
@@ -349,7 +349,7 @@ intel_bufferobj_map_range(GLcontext * ctx,
|
||||
*/
|
||||
if (!(access & GL_MAP_UNSYNCHRONIZED_BIT) &&
|
||||
drm_intel_bo_references(intel->batch->buf, intel_obj->buffer))
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
|
||||
if (intel_obj->buffer == NULL) {
|
||||
obj->Pointer = NULL;
|
||||
|
@@ -228,7 +228,7 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable)
|
||||
* buffer.
|
||||
*/
|
||||
if (intel->is_front_buffer_rendering) {
|
||||
intel_flush(&intel->ctx, GL_FALSE);
|
||||
intel_flush(&intel->ctx);
|
||||
intel_flush_front(&intel->ctx);
|
||||
}
|
||||
|
||||
@@ -502,7 +502,7 @@ intelInvalidateState(GLcontext * ctx, GLuint new_state)
|
||||
}
|
||||
|
||||
void
|
||||
intel_flush(GLcontext *ctx, GLboolean needs_mi_flush)
|
||||
intel_flush(GLcontext *ctx)
|
||||
{
|
||||
struct intel_context *intel = intel_context(ctx);
|
||||
|
||||
@@ -516,18 +516,12 @@ intel_flush(GLcontext *ctx, GLboolean needs_mi_flush)
|
||||
intel_batchbuffer_flush(intel->batch);
|
||||
}
|
||||
|
||||
void
|
||||
intelFlush(GLcontext * ctx)
|
||||
{
|
||||
intel_flush(ctx, GL_FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
intel_glFlush(GLcontext *ctx)
|
||||
{
|
||||
struct intel_context *intel = intel_context(ctx);
|
||||
|
||||
intel_flush(ctx, GL_TRUE);
|
||||
intel_flush(ctx);
|
||||
|
||||
intel_flush_front(ctx);
|
||||
|
||||
@@ -557,7 +551,7 @@ intelFinish(GLcontext * ctx)
|
||||
struct gl_framebuffer *fb = ctx->DrawBuffer;
|
||||
int i;
|
||||
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
|
||||
for (i = 0; i < fb->_NumColorDrawBuffers; i++) {
|
||||
struct intel_renderbuffer *irb;
|
||||
|
@@ -371,8 +371,7 @@ extern GLboolean intelInitContext(struct intel_context *intel,
|
||||
struct dd_function_table *functions);
|
||||
|
||||
extern void intelFinish(GLcontext * ctx);
|
||||
extern void intelFlush(GLcontext * ctx);
|
||||
extern void intel_flush(GLcontext * ctx, GLboolean needs_mi_flush);
|
||||
extern void intel_flush(GLcontext * ctx);
|
||||
|
||||
extern void intelInitDriverFunctions(struct dd_function_table *functions);
|
||||
|
||||
|
@@ -168,7 +168,7 @@ intel_alloc_renderbuffer_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
|
||||
rb->_BaseFormat = _mesa_base_fbo_format(ctx, internalFormat);
|
||||
cpp = _mesa_get_format_bytes(rb->Format);
|
||||
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
|
||||
/* free old region */
|
||||
if (irb->region) {
|
||||
@@ -420,7 +420,7 @@ intel_framebuffer_renderbuffer(GLcontext * ctx,
|
||||
{
|
||||
DBG("Intel FramebufferRenderbuffer %u %u\n", fb->Name, rb ? rb->Name : 0);
|
||||
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
|
||||
_mesa_framebuffer_renderbuffer(ctx, fb, attachment, rb);
|
||||
intel_draw_buffer(ctx, fb);
|
||||
|
@@ -142,7 +142,7 @@ do_blit_copypixels(GLcontext * ctx,
|
||||
if (!src || !dst)
|
||||
return GL_FALSE;
|
||||
|
||||
intelFlush(&intel->ctx);
|
||||
intel_flush(&intel->ctx);
|
||||
|
||||
/* Clip to destination buffer. */
|
||||
orig_dstx = dstx;
|
||||
|
@@ -176,7 +176,7 @@ intelReadPixels(GLcontext * ctx,
|
||||
if (INTEL_DEBUG & DEBUG_PIXEL)
|
||||
fprintf(stderr, "%s\n", __FUNCTION__);
|
||||
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
|
||||
/* glReadPixels() wont dirty the front buffer, so reset the dirty
|
||||
* flag after calling intel_prepare_render(). */
|
||||
|
@@ -111,7 +111,7 @@ debug_backtrace(void)
|
||||
GLubyte *
|
||||
intel_region_map(struct intel_context *intel, struct intel_region *region)
|
||||
{
|
||||
intelFlush(&intel->ctx);
|
||||
intel_flush(&intel->ctx);
|
||||
|
||||
_DBG("%s %p\n", __FUNCTION__, region);
|
||||
if (!region->map_refcount++) {
|
||||
|
@@ -244,7 +244,7 @@ intelSpanRenderStart(GLcontext * ctx)
|
||||
struct intel_context *intel = intel_context(ctx);
|
||||
GLuint i;
|
||||
|
||||
intelFlush(&intel->ctx);
|
||||
intel_flush(&intel->ctx);
|
||||
intel_prepare_render(intel);
|
||||
|
||||
for (i = 0; i < ctx->Const.MaxTextureImageUnits; i++) {
|
||||
|
@@ -77,7 +77,7 @@ intel_fence_sync(GLcontext *ctx, struct gl_sync_object *s,
|
||||
sync->bo = intel->batch->buf;
|
||||
drm_intel_bo_reference(sync->bo);
|
||||
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
}
|
||||
|
||||
/* We ignore the user-supplied timeout. This is weaselly -- we're allowed to
|
||||
|
@@ -108,7 +108,7 @@ do_copy_texsubimage(struct intel_context *intel,
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
/* intelFlush(ctx); */
|
||||
/* intel_flush(ctx); */
|
||||
intel_prepare_render(intel);
|
||||
{
|
||||
drm_intel_bo *dst_bo = intel_region_buffer(intel,
|
||||
|
@@ -239,7 +239,7 @@ try_pbo_upload(struct intel_context *intel,
|
||||
dst_stride = intelImage->mt->region->pitch;
|
||||
|
||||
if (drm_intel_bo_references(intel->batch->buf, dst_buffer))
|
||||
intelFlush(&intel->ctx);
|
||||
intel_flush(&intel->ctx);
|
||||
intel_prepare_render(intel);
|
||||
{
|
||||
dri_bo *src_buffer = intel_bufferobj_buffer(intel, pbo, INTEL_READ);
|
||||
@@ -480,7 +480,7 @@ intelTexImage(GLcontext * ctx,
|
||||
/* Flush any queued rendering with the texture before mapping. */
|
||||
if (drm_intel_bo_references(intel->batch->buf,
|
||||
intelImage->mt->region->buffer)) {
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
}
|
||||
texImage->Data = intel_miptree_image_map(intel,
|
||||
intelImage->mt,
|
||||
@@ -638,7 +638,7 @@ intel_get_tex_image(GLcontext * ctx, GLenum target, GLint level,
|
||||
* make sure rendering is complete.
|
||||
* We could probably predicate this on texObj->_RenderToTexture
|
||||
*/
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
|
||||
/* Map */
|
||||
if (intelImage->mt) {
|
||||
|
@@ -59,7 +59,7 @@ intelTexSubimage(GLcontext * ctx,
|
||||
_mesa_lookup_enum_by_nr(target),
|
||||
level, xoffset, yoffset, width, height);
|
||||
|
||||
intelFlush(ctx);
|
||||
intel_flush(ctx);
|
||||
|
||||
if (compressed)
|
||||
pixels = _mesa_validate_pbo_compressed_teximage(ctx, imageSize,
|
||||
|
Reference in New Issue
Block a user