etnaviv: add ext_texture_srgb support
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 28 Oct 2017 15:24:58 +0000 (17:24 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 28 Oct 2017 19:20:42 +0000 (21:20 +0200)
commit0a23841a98dacad1fbc81f34479ce194e86fc99a
tree9933a39ba3edb628dbcdcc6babd1fc3bf5bf4dcc
parent97e01adfd549c260efd615289938265306d42a05
etnaviv: add ext_texture_srgb support

Following piglits are passing:
 - glean@texture_srgb
 - spec@ext_texture_srgb@fbo-srgb
 - spec@ext_texture_srgb@tex-srgb
 - spec@ext_texture_srgb@texwrap formats
 - spec@ext_texture_srgb@texwrap formats-s3tc

Btw. this enables GL 2.1 :-)

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_format.c
src/gallium/drivers/etnaviv/etnaviv_screen.c
src/gallium/drivers/etnaviv/etnaviv_texture.c