swr/rast: Fix invalid 16-bit format traits for A1R5G5B5
authorTim Rowley <timothy.o.rowley@intel.com>
Fri, 26 May 2017 06:47:58 +0000 (01:47 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 16 Jun 2017 21:20:16 +0000 (16:20 -0500)
commit8716e0d8b45194f34b57ec963d95abbcf40b66c4
treef79f66a0b66e2899c4d887be1f9b821d88a8f7d5
parenta25093de7188d553dfd832626a4181bd36898604
swr/rast: Fix invalid 16-bit format traits for A1R5G5B5

Correctly handle formats of <= 16 bits where the component bits don't
add up to the pixel size.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/format_types.h