diff options
author | Eric Anholt <eric@anholt.net> | 2011-11-08 11:05:17 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-11-09 12:04:39 -0800 |
commit | e56aecf2492e3ca63ea70332a346f3f8414cba6c (patch) | |
tree | b9910a3b58bdc86bb3217b9c13ace99338624960 /src/mesa/drivers/dri/i965/brw_wm_surface_state.c | |
parent | b5444a6ebd48a2bf4c258be98aac831636164e10 (diff) | |
download | external_mesa3d-e56aecf2492e3ca63ea70332a346f3f8414cba6c.zip external_mesa3d-e56aecf2492e3ca63ea70332a346f3f8414cba6c.tar.gz external_mesa3d-e56aecf2492e3ca63ea70332a346f3f8414cba6c.tar.bz2 |
i965: Add support for 16-bit unorm L, A, and I textures.
While not required by any particular spec version, mplayer was asking
for L16 and hoping for actual L16 without checking. The 8 bits
allocated led to 10-bit planar video data stored in the lower 10 bits
giving only 2 bits of precision in video. While it was an amusing
effect, give them what they actually wanted instead.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41461
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 04dc389..66a8a5a 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -80,6 +80,9 @@ brw_format_for_mesa_format(gl_format mesa_format) [MESA_FORMAT_I8] = BRW_SURFACEFORMAT_I8_UNORM, [MESA_FORMAT_A8] = BRW_SURFACEFORMAT_A8_UNORM, [MESA_FORMAT_AL88] = BRW_SURFACEFORMAT_L8A8_UNORM, + [MESA_FORMAT_L16] = BRW_SURFACEFORMAT_L16_UNORM, + [MESA_FORMAT_A16] = BRW_SURFACEFORMAT_A16_UNORM, + [MESA_FORMAT_I16] = BRW_SURFACEFORMAT_I16_UNORM, [MESA_FORMAT_AL1616] = BRW_SURFACEFORMAT_L16A16_UNORM, [MESA_FORMAT_R8] = BRW_SURFACEFORMAT_R8_UNORM, [MESA_FORMAT_R16] = BRW_SURFACEFORMAT_R16_UNORM, |