mesa/colormac: introduce inline helper for 4 unclamped float to ubyte.
authorDave Airlie <airlied@redhat.com>
Wed, 14 Sep 2011 10:08:57 +0000 (11:08 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 14 Sep 2011 10:18:08 +0000 (11:18 +0100)
commit81a86aea4f0990a1b8795f9e00e7a6c4ba368281
tree9798a61c65a74aba6790849544afcd6b32e15f51
parent093dc9e548537e6c77e33064a584f849ad90dfa5
mesa/colormac: introduce inline helper for 4 unclamped float to ubyte.

This introduces an UNCLAMPED_FLOAT_TO_UBYTE x 4 inline function, as
suggested by Brian. It uses it in a few places I noticed from previous
color changes, and also some core mesa places. I haven't updated other places
yet.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/intel/intel_blit.c
src/mesa/drivers/dri/nouveau/nouveau_util.h
src/mesa/drivers/dri/r200/r200_state.c
src/mesa/drivers/dri/radeon/radeon_state.c
src/mesa/drivers/x11/xm_dd.c
src/mesa/main/colormac.h
src/mesa/main/image.c
src/mesa/swrast/s_blend.c
src/mesa/swrast/s_clear.c