sna/dri2: Set depth/bpp on scratch DrawableRec
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Jul 2014 12:10:32 +0000 (13:10 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Jul 2014 12:15:44 +0000 (13:15 +0100)
commit02715490db13dcd47c5e4bef713f400838d94b99
tree66b84538e169395ef20e585f1168177bdbb754c8
parente6e5330857097eb2caafa89d571d12e4bb15f539
sna/dri2: Set depth/bpp on scratch DrawableRec

We need to initialise both depth and bitsPerPixel on the drawable struct
we pass around as they are used for selecting for the format when
copying.

Reported-by: Vedran Rodic <vrodic@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_dri2.c