mirror of
https://github.com/X11Libre/xf86-video-vmware.git
synced 2026-03-24 01:24:37 +00:00
vmware/vmwgfx: Don't tell XA that we have a mask when we haven't
In some cases, the X server sends us a composit operation with mask_pict != NULL, but mask_pix == NULL. Assume there's no mask involved in that case. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -1158,6 +1158,8 @@ vmwgfx_composite_prepare(struct saa_driver *driver, CARD8 op,
|
||||
* and check whether XA can accelerate.
|
||||
*/
|
||||
|
||||
if (!mask_pix)
|
||||
mask_pict = NULL;
|
||||
xa_comp = vmwgfx_xa_setup_comp(vsaa->vcomp, op,
|
||||
src_pict, mask_pict, dst_pict);
|
||||
if (!xa_comp)
|
||||
|
||||
Reference in New Issue
Block a user