drisw: Be more clever in computing depth for the XImage
rgbBits includes alpha which means it's wrong for normal visuals where depth is 24. So first, if the fbconfig maps to a visual, use that visual's depth. Otherwise subtract off alphaBits from rgbBits.
Fixes: #2291 (closed)