search for: subpixel_offset

Displaying 1 result from an estimated 1 matches for "subpixel_offset".

2009 Mar 08
4
[PATCH 1/5] nv50: implement wfb
...LL; + +/* Note, we can only expose one read and write function, the linear versions are for internal consumption. */ +static FbBits +nouveau_exa_wfb_read_memory(const void *src, int size) +{ + int i, line_x, line_y, tile_x, tile_y, subtile_x, subtile_y; + unsigned long offset = (unsigned long) src, subpixel_offset; + PixmapPtr pPixmap = NULL; + FbBits bits = 0; + void *new_src; + + if (!last_wfb_pNv) + return nouveau_exa_wfb_read_memory_linear(src, size); + + /* Find the right pixmap. */ + for (i = 0; i < 6; i++) + if (offset >= last_wfb_pNv->wfb_pixmaps[i].start && offset < last_wfb_pN...