Displaying 1 result from an estimated 1 matches for "free_pixmap".
2018 Feb 04
1
[PATCH 1/2] dri3: remove bogus condition for creating pixmap
..._bo *bo = NULL;
struct nouveau_pixmap *nvpix;
- if (depth < 8 || depth > 32 || depth % 8)
+ if (depth < 8 || depth > 32)
return NULL;
pixmap = screen->CreatePixmap(screen, 0, 0, depth, 0);
if (!pixmap)
return NULL;
+ if (pixmap->drawable.bitsPerPixel % 8)
+ goto free_pixmap;
+
if (!screen->ModifyPixmapHeader(pixmap, width, height, 0, 0, stride, NULL))
goto free_pixmap;
--
2.13.6