i965/blorp: Refactor sRGB encoding/decoding.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 17 Mar 2016 03:15:52 +0000 (20:15 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 21 Mar 2016 20:54:29 +0000 (13:54 -0700)
commit8679bb7c9e8bcf25639664fa2bd02cd2a3de9e52
tree85715a9cbcb40c132f7d04e136cbe24cb6204eb9
parenteee8a53906f72635423931430e667159c88613bb
i965/blorp: Refactor sRGB encoding/decoding.

Because the rules for sRGB are so insane, we change brw_blorp_miptrees
to take decode_srgb and encode_srgb flags, which control linearization
of the source and destination separately.

This should make it easy to implement whatever crazy combination of
rules people throw at us.  For now, it should be equivalent.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_blorp.cpp
src/mesa/drivers/dri/i965/brw_blorp.h
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
src/mesa/drivers/dri/i965/intel_mipmap_tree.c