i965/draw: Use 3-channel formats for vertex fetch when possible.
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 19 May 2016 21:33:50 +0000 (14:33 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 May 2016 02:12:34 +0000 (19:12 -0700)
commita643bc62463efbd88e34a85cda50a19d8ace6292
tree7fb8132f62a2eb17471b72ea482160ccd64a862d
parentab3d8d5ea43501d7f0716e889e0ade505aaf9463
i965/draw: Use 3-channel formats for vertex fetch when possible.

For a long time, several of the 3-channel vertex formats didn't exist so we
faked them with 4-channel versions.  Starting with Sandy Bridge, we can use
R16G16B16_FLOAT and 8 and 16-bit integer formats become available on
Haswell and Bay Trail.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw_upload.c