mesa: fix SRGB alpha channel value in pack_float_R8G8B8X8_SRGB
authorDave Airlie <airlied@redhat.com>
Wed, 17 Sep 2014 01:56:47 +0000 (11:56 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 17 Sep 2014 03:28:18 +0000 (13:28 +1000)
commit9ea045e85eee506d919b880e4d8d7428faaea6a1
treecafa7676ef16c73912ed2832f09c94b1d594de7d
parentecc48f83c8359e3ef64ea40dfb6074f4a1a38dc1
mesa: fix SRGB alpha channel value in pack_float_R8G8B8X8_SRGB

Jason pointed out the bug on review adding new formats,
but the existing format also appears to have the bug, so
use 255 as the max, these are SRGB no SNORM.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/format_pack.c