drisw: Fix drawable creation against non-default screens
authorAdam Jackson <ajax@redhat.com>
Tue, 3 Jan 2012 19:39:28 +0000 (14:39 -0500)
committerAdam Jackson <ajax@redhat.com>
Wed, 4 Jan 2012 16:23:55 +0000 (11:23 -0500)
commit2af17433b5b037af99198acfac567c57618286c3
tree43ea02282c13fdfc06bbf1e1156416c8afd36e70
parent892a2542a3f0753a7064c710b96f077dd5490624
drisw: Fix drawable creation against non-default screens

We don't want to match the visual against the default screen.  If the
drawable is on a non-default screen then the appropriate visual might not
exist on the default screen.  Conversely, if the same visual is
available on multiple screens then simply selecting for the right VID is
sufficient, since the server has promised that the same visual is
compatible with multiple screens.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/glx/drisw_glx.c