Displaying 2 results from an estimated 2 matches for "tile_pitch".
2009 Mar 08
4
[PATCH 1/5] nv50: implement wfb
...ns. */
+
+static FbBits
+nouveau_exa_wfb_read_memory_linear(const void *src, int size)
+{
+ FbBits bits = 0;
+
+ memcpy(&bits, src, size);
+
+ return bits;
+}
+
+static void
+nouveau_exa_wfb_write_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...
2009 Mar 11
2
[NV50] application to confirm texture layout
Here is an app to test the texture layout.
No message means it's ok. Otherwise it spews a lot of errors.
You have to manually set the TILE_HEIGHT, TILE_WIDTH and TILING_PARAM.
TILE_WIDTH == TILE_PITCH in this case because it's 8bpp data.
Use this list (TILING_PARAM) TILE_WIDTHxTILE_HEIGHT:
(0x00) 32x4
(0x10) 64x8
(0x20) 64x16
(0x30) 64x32
(0x40) 64x64
I'm curious to know if anyone has different layouts.
You may need to sudo run it.
Maarten.
-------------- next part --------------
A...