drisw: Simplify GC setup
authorAdam Jackson <ajax@redhat.com>
Thu, 26 Sep 2019 18:42:16 +0000 (14:42 -0400)
committerAdam Jackson <ajax@redhat.com>
Fri, 27 Sep 2019 15:18:10 +0000 (11:18 -0400)
commit3c0eb762e27f9028a8f59e2fa31603292e02d9ef
tree412d6eb6226960714e197cb0fdda26e5fc1ffdc9
parente4a52bd653b2e94ebbee75c541f9db99351defe2
drisw: Simplify GC setup

There's no reason to have two GCs here. The only difference between
them is that swapgc would generate graphics exposures, except we only
ever use this GC for PutImage, and PutImage doesn't generate graphics
exposures. We also don't need to explicitly ChangeGC to GXCopy, because
that's the default.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/drisw_glx.c
src/glx/drisw_priv.h