mesa: Make gl_renderbuffers backed by EGL images use FinishRenderTexture.
authorEric Anholt <eric@anholt.net>
Fri, 10 May 2013 19:36:43 +0000 (12:36 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 17 May 2013 20:04:04 +0000 (13:04 -0700)
commitc810e67c55a8a2965b730317873fbdcc186a7514
treed8fc5963c608f2cdcc9adcf348075f469a37fc4d
parent6166ffeaf70e96e3f94417f8db79ba2440462178
mesa: Make gl_renderbuffers backed by EGL images use FinishRenderTexture.

This is the opportunity that radeon and intel drivers rely on for flushing
render targets that may get reused as textures.  Before EGL, that only
happened for GL_TEXTURE attachments.

Fixes piglits:
KHR_gl_renderbuffer_image/renderbuffer-texture
OES_EGL_image/renderbuffer-texture

NOTE: This is a candidate for the 9.1 branch.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/main/fbobject.c
src/mesa/main/mtypes.h