search for: a1r5g5b5

Displaying 2 results from an estimated 2 matches for "a1r5g5b5".

2009 Aug 17
2
[PATCH] kms: Fix <nv11 hardware cursor.
...destroy = NULL, /* XXX */ }; diff --git a/src/nouveau_hw.h b/src/nouveau_hw.h index a548a4c..aa2a3b4 100644 --- a/src/nouveau_hw.h +++ b/src/nouveau_hw.h @@ -287,6 +287,23 @@ static inline bool NVLockVgaCrtcs(NVPtr pNv, bool lock) return waslocked; } +/* nv04 cursor max dimensions of 32x32 (A1R5G5B5) */ +#define NV04_CURSOR_SIZE 32 +/* limit nv10 cursors to 64x64 (ARGB8) (we could go to 64x255) */ +#define NV10_CURSOR_SIZE 64 + +static inline int nv_cursor_width(NVPtr pNv) +{ + return pNv->NVArch >= 0x10 ? NV10_CURSOR_SIZE : NV04_CURSOR_SIZE; +} + +static inline int nv_cursor_pixels(NVPt...
2010 Apr 20
1
[PATCH] nv30/exa : cleanup from nv40 exa
...S1, S1, ONE, Z, Y, X, W), + _(a8r8g8b8, A8R8G8B8_RECT, S1, S1, S1, S1, X, Y, Z, W), + _(a8b8g8r8, A8R8G8B8_RECT, S1, S1, S1, S1, Z, Y, X, W), + _(x8r8g8b8, A8R8G8B8_RECT, S1, S1, S1, ONE, X, Y, Z, W), + _(x8b8g8r8, A8R8G8B8_RECT, S1, S1, S1, ONE, Z, Y, X, W), - _(a1r5g5b5, 0x10, S1, S1, S1, S1, X, Y, Z, W), - _(x1r5g5b5, 0x10, S1, S1, S1, ONE, X, Y, Z, W), - _(a1b5g5r5, 0x10, S1, S1, S1, S1, Z, Y, X, W), - _(x1b5g5r5, 0x10, S1, S1, S1, ONE, Z, Y, X, W), + _(a1r5g5b5, A1R5G5B5_RECT, S1, S1, S1, S1, X, Y, Z, W), + _(x1r5g5b5, A1R5...