Commit 9599da33 authored by Li Peng's avatar Li Peng Committed by Kristian Høgsberg
Browse files

intel: Call intel_prepare_render() in intelClear()

Make sure we have up to date buffers before we start looking at
the tiling bits to determine how to clear.
parent 074084d5
...@@ -233,8 +233,6 @@ intelClearWithBlit(GLcontext *ctx, GLbitfield mask) ...@@ -233,8 +233,6 @@ intelClearWithBlit(GLcontext *ctx, GLbitfield mask)
GLuint buf; GLuint buf;
all = (cw == fb->Width && ch == fb->Height); all = (cw == fb->Width && ch == fb->Height);
intel_prepare_render(intel);
/* Loop over all renderbuffers */ /* Loop over all renderbuffers */
for (buf = 0; buf < BUFFER_COUNT && mask; buf++) { for (buf = 0; buf < BUFFER_COUNT && mask; buf++) {
const GLbitfield bufBit = 1 << buf; const GLbitfield bufBit = 1 << buf;
......
...@@ -90,6 +90,10 @@ intelClear(GLcontext *ctx, GLbitfield mask) ...@@ -90,6 +90,10 @@ intelClear(GLcontext *ctx, GLbitfield mask)
tri_mask |= (mask & (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_BACK_LEFT)); tri_mask |= (mask & (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_BACK_LEFT));
} }
/* Make sure we have up to date buffers before we start looking at
* the tiling bits to determine how to clear. */
intel_prepare_render(intel);
/* HW stencil */ /* HW stencil */
if (mask & BUFFER_BIT_STENCIL) { if (mask & BUFFER_BIT_STENCIL) {
const struct intel_region *stencilRegion const struct intel_region *stencilRegion
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment