diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-22 08:48:58 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-22 09:00:46 +0100 |
commit | d8b0a8fa033848543e0b39566b531fdfdd078087 (patch) | |
tree | 40e92c5c23254a6917383593e2ac7c51570f30eb | |
parent | bfccacf745d054756661be3edd8898ac6aceb878 (diff) |
sna/dri3: Don't forget to add SHM pixmaps to the list of exported DRI3 bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_dri3.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sna/sna_dri3.c b/src/sna/sna_dri3.c index 5d51b41c..cd4c174a 100644 --- a/src/sna/sna_dri3.c +++ b/src/sna/sna_dri3.c @@ -333,10 +333,9 @@ static int sna_dri3_fd_from_pixmap(ScreenPtr screen, return -1; } - if (bo == priv->gpu_bo && (priv->pinned & PIN_DRI3) == 0) { - list_add(&priv->cow_list, &sna->dri3.pixmaps); + if (bo == priv->gpu_bo) priv->pinned |= PIN_DRI3; - } + list_move(&priv->cow_list, &sna->dri3.pixmaps); *stride = (priv->pinned & PIN_DRI3) ? priv->gpu_bo->pitch : priv->cpu_bo->pitch; *size = kgem_bo_size((priv->pinned & PIN_DRI3) ? priv->gpu_bo : priv->cpu_bo); |