st/mesa: set PIPE_BIND_RENDER_TARGET for sRGB formats if UNORM is supported
authorMarek Olšák <maraeo@gmail.com>
Fri, 4 Mar 2011 05:38:13 +0000 (06:38 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 4 Mar 2011 13:52:45 +0000 (14:52 +0100)
commitba48811fa8cbe80c67cdbbb9b8180aaf64433c4e
tree9075e5ca08f3f44cd70315d8a80e0fd39d56b2e3
parent53789834176396ae69e21e460881600f36124fb5
st/mesa: set PIPE_BIND_RENDER_TARGET for sRGB formats if UNORM is supported

Because the format can be changed to UNORM in a surface.

This fixes:
state_tracker/st_atom_framebuffer.c:163:update_framebuffer_state:
Assertion `framebuffer->cbufs[i]->texture->bind & (1 << 1)' failed.
src/mesa/state_tracker/st_cb_texture.c