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>
Mon, 23 Jan 2012 09:16:17 +0000 (09:16 +0000)
commit4b6dc4c1b3d8055e4504562ce3c0211086ced915
treee85ab4e0be0085841ce35bb563ab574253cc045f
parent0d6f7b181fb617cec177a407735eab4371be6f9a
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>
(cherry picked from commit a9d8809f16feb7f6d5d723f2afa2cfbea60cae55)
src/gallium/drivers/r600/r600_texture.c