mesa: Make Mesa core set up wrapped texture renderbuffer state.
authorEric Anholt <eric@anholt.net>
Mon, 22 Apr 2013 18:04:21 +0000 (11:04 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 6 May 2013 21:34:14 +0000 (14:34 -0700)
commit77a405dba7f70f8a47655e90774a5ecf5c88a6ed
tree0d0144210074d3ccfbe397ee3bb97f8afc77a391
parent5b190d19d326369a5c43fbdd1f19d9c8d112da40
mesa: Make Mesa core set up wrapped texture renderbuffer state.

Everyone was doing effectively the same thing, except for some funky code
reuse in Intel, and swrast mistakenly recomputing _BaseFormat instead of
using the texture's _BaseFormat.  swrast's sRGB handling is left in place,
though it should be done by using _mesa_get_render_format() at render time
instead (as-is, it will miss updates to GL_FRAMEBUFFER_SRGB).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/nouveau/nouveau_fbo.c
src/mesa/main/fbobject.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/swrast/s_texrender.c