search for: last_wfb_pnv

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

2009 Mar 08
4
[PATCH 1/5] nv50: implement wfb
...memory_linear(void *dst, FbBits value, int size) +{ + memcpy(dst, &value, size); +} + +#define TILE_PITCH 32 +#define TILE_HEIGHT 4 +#define SUBTILE_PITCH 8 +#define SUBTILE_HEIGHT 2 + +#define LINEAR_PITCH (pPixmap->devKind) +#define NUM_TILES_WIDTH (LINEAR_PITCH/TILE_PITCH) + +static NVPtr last_wfb_pNv = NULL; + +/* 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)...