[Mesa-stable] [Mesa-dev] [PATCH 1/5] i965: Always intel_prepare_render() after invalidating front buffers.

Anuj Phogat anuj.phogat at gmail.com
Mon May 5 19:07:01 PDT 2014


On Mon, May 5, 2014 at 3:50 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Fixes glean/texture_srgb, which hit recursive-flush prevention
> assertions in vbo_exec_FlushVertices.
>
> This probably hurts the performance of front buffer rendering, but
> very few people in their right mind do front buffer rendering.
>
> Fixes Glean's texture_srgb test.
>
> Cc: "10.2" <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/mesa/drivers/dri/i965/intel_buffers.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_buffers.c b/src/mesa/drivers/dri/i965/intel_buffers.c
> index f151287..6ad67f1 100644
> --- a/src/mesa/drivers/dri/i965/intel_buffers.c
> +++ b/src/mesa/drivers/dri/i965/intel_buffers.c
> @@ -65,6 +65,7 @@ intelDrawBuffer(struct gl_context * ctx, GLenum mode)
>         * (including the fake front) before we start rendering again.
>         */
>        dri2InvalidateDrawable(brw->driContext->driDrawablePriv);
> +      intel_prepare_render(brw);
>     }
>  }
>
> @@ -80,6 +81,7 @@ intelReadBuffer(struct gl_context * ctx, GLenum mode)
>         * (including the fake front) before we start reading again.
>         */
>        dri2InvalidateDrawable(brw->driContext->driReadablePriv);
> +      intel_prepare_render(brw);
>     }
>  }
>
Patch 1 is:
Acked-by: Anuj Phogat <anuj.phogat at gmail.com>
Paches 2-5 are:
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
> --
> 1.9.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-stable mailing list