mesa: Use a 565 format for GL_RGB and GL_UNSIGNED_SHORT_5_6_5 textures.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 4 Oct 2017 08:08:37 +0000 (01:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 5 Oct 2017 21:30:47 +0000 (14:30 -0700)
commit18bdf73556440ca2eaac2d22e1e3ebe1be7b6c1d
tree2f27e3e868d52ff51d0ec3122777c19ce914ff68
parent7463d5058009d1e9d9d01292f894271a26a062b8
mesa: Use a 565 format for GL_RGB and GL_UNSIGNED_SHORT_5_6_5 textures.

Found while trying to optimize an application.

Not observed to help performance on i965, but should at least reduce
the memory usage of such textures a bit.

Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Eero Tamminen <eero.t.tamminen@intel.com>
src/mesa/main/texformat.c