mesa/format_utils: Add src_bits == dst_bits cases to unorm_to_unorm
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 10 Aug 2015 05:03:00 +0000 (22:03 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 10 Aug 2015 18:11:47 +0000 (11:11 -0700)
commit9901aeb1c74648cbe1aa1d18d590a689c844cbad
treef1aed71b165ccb8e32fa2d4fd19e2af87940cb5e
parent7e5d56394bd53607d0158b49f36ac1428acb7954
mesa/format_utils: Add src_bits == dst_bits cases to unorm_to_unorm

This better ensures that the src_bits == dst_bits case gets optimized away.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/format_utils.h