st/mesa: improve the format choosing code for DrawPixels
authorBrian Paul <brianp@vmware.com>
Fri, 1 Feb 2013 18:38:28 +0000 (11:38 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 4 Feb 2013 15:28:17 +0000 (08:28 -0700)
commitf54a9f4ff2928d2545b324b0ccc4f9fcd40819cc
tree02ee6a404105268b85007bae03891abece711e7d
parent38d65a9769213c918427e92968dc0b4657c44436
st/mesa: improve the format choosing code for DrawPixels

The code before was getting a pipe format, then calling
st_pipe_format_to_mesa_format() and then converting back again with
st_mesa_format_to_pipe_format().  This removes one conversion step.
src/mesa/state_tracker/st_cb_drawpixels.c