glamor: Remove unused transfer functions
Never used AFAICT.
This commit is contained in:
parent
ef1812655b
commit
0ed2d69217
|
@ -107,22 +107,6 @@ glamor_upload_region(PixmapPtr pixmap, RegionPtr region,
|
||||||
bits, byte_stride);
|
bits, byte_stride);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Take the data in the pixmap and stuff it back into the FBO
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
glamor_upload_pixmap(PixmapPtr pixmap)
|
|
||||||
{
|
|
||||||
BoxRec box;
|
|
||||||
|
|
||||||
box.x1 = 0;
|
|
||||||
box.x2 = pixmap->drawable.width;
|
|
||||||
box.y1 = 0;
|
|
||||||
box.y2 = pixmap->drawable.height;
|
|
||||||
glamor_upload_boxes(pixmap, &box, 1, 0, 0, 0, 0,
|
|
||||||
pixmap->devPrivate.ptr, pixmap->devKind);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Read stuff from the pixmap FBOs and write to memory
|
* Read stuff from the pixmap FBOs and write to memory
|
||||||
*/
|
*/
|
||||||
|
@ -182,37 +166,3 @@ glamor_download_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox,
|
||||||
if (glamor_priv->has_pack_subimage)
|
if (glamor_priv->has_pack_subimage)
|
||||||
glPixelStorei(GL_PACK_ROW_LENGTH, 0);
|
glPixelStorei(GL_PACK_ROW_LENGTH, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Read data from the pixmap FBO
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
glamor_download_rect(PixmapPtr pixmap, int x, int y, int w, int h, uint8_t *bits)
|
|
||||||
{
|
|
||||||
BoxRec box;
|
|
||||||
|
|
||||||
box.x1 = x;
|
|
||||||
box.x2 = x + w;
|
|
||||||
box.y1 = y;
|
|
||||||
box.y2 = y + h;
|
|
||||||
|
|
||||||
glamor_download_boxes(pixmap, &box, 1, 0, 0, -x, -y,
|
|
||||||
bits, PixmapBytePad(w, pixmap->drawable.depth));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Pull the data from the FBO down to the pixmap
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
glamor_download_pixmap(PixmapPtr pixmap)
|
|
||||||
{
|
|
||||||
BoxRec box;
|
|
||||||
|
|
||||||
box.x1 = 0;
|
|
||||||
box.x2 = pixmap->drawable.width;
|
|
||||||
box.y1 = 0;
|
|
||||||
box.y2 = pixmap->drawable.height;
|
|
||||||
|
|
||||||
glamor_download_boxes(pixmap, &box, 1, 0, 0, 0, 0,
|
|
||||||
pixmap->devPrivate.ptr, pixmap->devKind);
|
|
||||||
}
|
|
||||||
|
|
|
@ -34,19 +34,10 @@ glamor_upload_region(PixmapPtr pixmap, RegionPtr region,
|
||||||
int region_x, int region_y,
|
int region_x, int region_y,
|
||||||
uint8_t *bits, uint32_t byte_stride);
|
uint8_t *bits, uint32_t byte_stride);
|
||||||
|
|
||||||
void
|
|
||||||
glamor_upload_pixmap(PixmapPtr pixmap);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
glamor_download_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox,
|
glamor_download_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox,
|
||||||
int dx_src, int dy_src,
|
int dx_src, int dy_src,
|
||||||
int dx_dst, int dy_dst,
|
int dx_dst, int dy_dst,
|
||||||
uint8_t *bits, uint32_t byte_stride);
|
uint8_t *bits, uint32_t byte_stride);
|
||||||
|
|
||||||
void
|
|
||||||
glamor_download_rect(PixmapPtr pixmap, int x, int y, int w, int h, uint8_t *bits);
|
|
||||||
|
|
||||||
void
|
|
||||||
glamor_download_pixmap(PixmapPtr pixmap);
|
|
||||||
|
|
||||||
#endif /* _GLAMOR_TRANSFER_H_ */
|
#endif /* _GLAMOR_TRANSFER_H_ */
|
||||||
|
|
Loading…
Reference in New Issue