diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2007-11-15 12:12:02 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2007-11-15 12:21:25 -0800 |
commit | f797c96845a3fab37cda6839ebecf9ac5401fd6e (patch) | |
tree | 3db85a0412a2817be73a422e869d4b08edf14ff6 /fb | |
parent | 6bc50de02108f822977fc7545da81fce95ea7ff4 (diff) |
Save pixmap allocation hints into the PixmapRec.
Diffstat (limited to 'fb')
-rw-r--r-- | fb/fb.h | 3 | ||||
-rw-r--r-- | fb/fb24_32.c | 2 | ||||
-rw-r--r-- | fb/fbpixmap.c | 7 |
3 files changed, 8 insertions, 4 deletions
@@ -1621,7 +1621,8 @@ fbPictureInit (ScreenPtr pScreen, */ PixmapPtr -fbCreatePixmapBpp (ScreenPtr pScreen, int width, int height, int depth, int bpp); +fbCreatePixmapBpp (ScreenPtr pScreen, int width, int height, int depth, int bpp, + unsigned usage_hint); PixmapPtr fbCreatePixmap (ScreenPtr pScreen, int width, int height, int depth, diff --git a/fb/fb24_32.c b/fb/fb24_32.c index 00b739b25..a03726b8d 100644 --- a/fb/fb24_32.c +++ b/fb/fb24_32.c @@ -548,7 +548,7 @@ fb24_32ReformatTile(PixmapPtr pOldTile, int bitsPerPixel) pOldTile->drawable.width, pOldTile->drawable.height, pOldTile->drawable.depth, - bitsPerPixel); + bitsPerPixel, 0); if (!pNewTile) return 0; fbGetDrawable (&pOldTile->drawable, diff --git a/fb/fbpixmap.c b/fb/fbpixmap.c index cddab3ee3..b9c93ea96 100644 --- a/fb/fbpixmap.c +++ b/fb/fbpixmap.c @@ -29,7 +29,8 @@ #include "fb.h" PixmapPtr -fbCreatePixmapBpp (ScreenPtr pScreen, int width, int height, int depth, int bpp) +fbCreatePixmapBpp (ScreenPtr pScreen, int width, int height, int depth, int bpp, + unsigned usage_hint) { PixmapPtr pPixmap; size_t datasize; @@ -76,6 +77,8 @@ fbCreatePixmapBpp (ScreenPtr pScreen, int width, int height, int depth, int bpp) pPixmap->screen_y = 0; #endif + pPixmap->usage_hint = usage_hint; + return pPixmap; } @@ -89,7 +92,7 @@ fbCreatePixmap (ScreenPtr pScreen, int width, int height, int depth, if (bpp == 32 && depth <= 24) bpp = fbGetScreenPrivate(pScreen)->pix32bpp; #endif - return fbCreatePixmapBpp (pScreen, width, height, depth, bpp); + return fbCreatePixmapBpp (pScreen, width, height, depth, bpp, usage_hint); } Bool |