svga: Allow format differences in 16-bit RGBA surface sharing
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 30 May 2017 13:02:19 +0000 (15:02 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 7 Jun 2017 17:43:54 +0000 (19:43 +0200)
commit1887faf73b379f28eb6c73bdb790dbcc97213b3a
tree06e4273e43e478db4abac59b338e85fe089cdd18
parentb8b0a3dc5cf195cc22317f3aae14399160fdc03e
svga: Allow format differences in 16-bit RGBA surface sharing

For the purpose of surface sharing, treat SVGA3D_R5G6B5 and
SVGA3D_B5G6R5_UNORM as identical formats.
This fixes the following piglit tests with dri3/xa:

glx@glx-visuals-depth -pixmap
glx@glx-visuals-stencil -pixmap

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Singh Rawat <drawat@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_format.c