i965: Drop intel_check_front_buffer_rendering().

This was being applied in a subset of the places that
intel_prepare_render() was called, to set the same flag that
intel_prepare_render() was setting.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Eric Anholt 2014-03-03 10:39:08 -08:00
parent ec542d7457
commit feb3d8dacd
6 changed files with 0 additions and 27 deletions

View file

@ -607,8 +607,6 @@ void brw_upload_state(struct brw_context *brw)
if ((state->mesa | state->cache | state->brw) == 0)
return;
intel_check_front_buffer_rendering(brw);
if (unlikely(INTEL_DEBUG)) {
/* Debug version which enforces various sanity checks on the
* state flags which are generated and checked to help ensure

View file

@ -34,24 +34,6 @@
#include "main/framebuffer.h"
#include "main/renderbuffer.h"
/**
* Check if we're about to draw into the front color buffer.
* If so, set the brw->front_buffer_dirty field to true.
*/
void
intel_check_front_buffer_rendering(struct brw_context *brw)
{
struct gl_context *ctx = &brw->ctx;
const struct gl_framebuffer *fb = ctx->DrawBuffer;
if (_mesa_is_winsys_fbo(fb)) {
/* drawing to window system buffer */
if (fb->_NumColorDrawBuffers > 0) {
if (fb->_ColorDrawBufferIndexes[0] == BUFFER_FRONT_LEFT) {
brw->front_buffer_dirty = true;
}
}
}
}
bool
brw_is_front_buffer_reading(struct gl_framebuffer *fb)

View file

@ -35,8 +35,6 @@
struct intel_framebuffer;
extern void intel_check_front_buffer_rendering(struct brw_context *brw);
extern void intelInitBufferFuncs(struct dd_function_table *functions);
bool brw_is_front_buffer_reading(struct gl_framebuffer *fb);

View file

@ -321,8 +321,6 @@ out:
ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj, MAP_INTERNAL);
}
intel_check_front_buffer_rendering(brw);
return true;
}

View file

@ -190,7 +190,6 @@ do_blit_copypixels(struct gl_context * ctx,
ctx->Query.CurrentOcclusionObject->Result += width * height;
out:
intel_check_front_buffer_rendering(brw);
DBG("%s: success\n", __FUNCTION__);
return true;

View file

@ -133,8 +133,6 @@ do_blit_drawpixels(struct gl_context * ctx,
if (ctx->Query.CurrentOcclusionObject)
ctx->Query.CurrentOcclusionObject->Result += width * height;
intel_check_front_buffer_rendering(brw);
DBG("%s: success\n", __FUNCTION__);
return true;
}