i965: srgb texture fixes
authorRoland Scheidegger <sroland@vmware.com>
Sat, 28 Mar 2009 00:43:50 +0000 (01:43 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 28 Mar 2009 01:06:49 +0000 (02:06 +0100)
commita693a2998c996f063edec8a83a4f6a175f39c471
treec32982b0c8d56da2927a23c5a23e8e55b7c45995
parent02a579f2e7abc832dd46956048d1116f7dc3dd92
i965: srgb texture fixes

i965 can either do SRGBA8_REV format or SARGB8 format, but not SRGBA8.
Could add SRGBA8_REV support to mesa, but simply use SARGB8 for now.
While here, also add true srgb luminance / luminance_alpha support -
unfortunately the published docs fail to mention which asics support
this, tested on g43 so assume this works on any g4x.
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_tex_format.c