OSDN Git Service

r600g: srgb mode is only valid on certain format types.
authorDave Airlie <airlied@redhat.com>
Sun, 22 Jan 2012 16:52:19 +0000 (16:52 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 22 Jan 2012 16:53:46 +0000 (16:53 +0000)
commita9d8809f16feb7f6d5d723f2afa2cfbea60cae55
treee6dffb70658f6404523ee03f3ec354e0ca8bed67
parent9783bba9bdd56cc52f987056ba8dc3da77d0078e
r600g: srgb mode is only valid on certain format types.

"If set, forces degamma on XYZ if format is
FMT_8_8_8_8, FMT_BC1, FMT_BC2, or FMT_BC3"

Don't claim support for sRGB on any other formts.

This fixes glean texture_srgb.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_texture.c