st/mesa: simplify the update_single_texture() function
authorBrian Paul <brianp@vmware.com>
Sat, 2 Feb 2013 01:00:45 +0000 (18:00 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 4 Feb 2013 15:28:17 +0000 (08:28 -0700)
commit624528834f53f54c7a934f929769b7e6b230a0b1
tree058515aab53b21d2330aed50b028ae2281a991f4
parent5f81549f6cac6f5d3c8322bc6e50ffb061274fc3
st/mesa: simplify the update_single_texture() function

In particular, rework the sRGB/linear format selection code.
There's no reason to mess with the Mesa format.
Just do everything in terms of the gallium pipe_format.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/mesa/state_tracker/st_atom_texture.c