svga: implement sRGB rendering for imported surfaces
authorNeha Bhende <bhenden@vmware.com>
Thu, 27 Apr 2017 17:05:35 +0000 (10:05 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 29 Apr 2017 03:03:06 +0000 (21:03 -0600)
commit197907c9267c9e9372a6cbb7699e3bf1fcf787cb
tree1bef91511dc4bf04957e5c4e68c106b5ed65b923
parent1b415a5b2833c1642176601653021d4bbe895b35
svga: implement sRGB rendering for imported surfaces

If texture is imported and templ format is sRGB, use compatible sRGB format
to the imported texture format while creating surface view.

tested with MTT piglit, glretrace, viewperf and conform

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_surface.c