mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 03:40:22 +01:00
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:
parent
ec542d7457
commit
feb3d8dacd
6 changed files with 0 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -321,8 +321,6 @@ out:
|
|||
ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj, MAP_INTERNAL);
|
||||
}
|
||||
|
||||
intel_check_front_buffer_rendering(brw);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue