st/mesa: prefer native texture formats when possible.
authorStéphane Marchesin <marcheu@chromium.org>
Thu, 23 Jun 2011 00:02:21 +0000 (17:02 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Thu, 23 Jun 2011 00:02:21 +0000 (17:02 -0700)
commit1a339b6c71ebab6e1a64f05b2e133022d3bbcd15
tree270903e46238d1ec38d0b9f28df06abe9090179e
parent98ce1373e47d05d7150933c391fdeddbc897a3cd
st/mesa: prefer native texture formats when possible.

If possible, we want to match the hardware format to what the app uses. By
doing so, we avoid the need for pixel conversions and therefore greatly speed
up texture uploads.
src/mesa/state_tracker/st_atom_pixeltransfer.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_format.c
src/mesa/state_tracker/st_format.h