Displaying 3 results from an estimated 3 matches for "pict_r5g6b5".
2010 Apr 20
0
[PATCH] nv10/exa : demagify tex and rt format
...1 files changed, 19 insertions(+), 16 deletions(-)
diff --git a/src/nv10_exa.c b/src/nv10_exa.c
index 1acb583..23a68e3 100644
--- a/src/nv10_exa.c
+++ b/src/nv10_exa.c
@@ -34,30 +34,33 @@ static struct pict_format {
int exa;
int hw;
} nv10_tex_format_pot[] = {
- { PICT_a8, 0x80 },
- { PICT_r5g6b5, 0x280 },
- { PICT_x8r8g8b8, 0x300 },
- { PICT_a8r8g8b8, 0x300 },
+ { PICT_a8, NV10TCL_TX_FORMAT_FORMAT_A8 },
+ { PICT_r5g6b5, NV10TCL_TX_FORMAT_FORMAT_R5G6B5 },
+ { PICT_x8r8g8b8, NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8 },
+ { PICT_a8r8g8b8, NV10TCL_TX_FORMAT_FORMAT_A8R8G8B8 },
{},
}, nv10_...
2009 Nov 04
1
[PATCH] nv10/exa: Spring-cleaning
..._plus_a8;
- struct {
- PictTransformPtr transform;
- float width;
- float height;
- } unit[2];
-} nv10_exa_state_t;
-static nv10_exa_state_t state;
+/* Texture/Render target formats. */
+static struct pict_format {
+ int exa;
+ int hw;
+} nv10_tex_format_pot[] = {
+ { PICT_a8, 0x80 },
+ { PICT_r5g6b5, 0x280 },
+ { PICT_x8r8g8b8, 0x300 },
+ { PICT_a8r8g8b8, 0x300 },
+ {},
+
+}, nv10_tex_format_rect[] = {
+ { PICT_a8, 0x980 },
+ { PICT_r5g6b5, 0x880 },
+ { PICT_x8r8g8b8, 0x900 },
+ { PICT_a8r8g8b8, 0x900 },
+ {},
+
+}, nv20_tex_format_rect[] = {
+ { PICT_a8, 0xd80 },
+ { PICT_r5g6b5,...
2010 Apr 20
1
[PATCH] nv30/exa : cleanup from nv40 exa
...e;
#define NV30EXA_STATE nv30_exa_state_t *state = &exa_state
+#define NV34TCL_RT_FORMAT_COLOR_X1R5G5B5 0x00000002
static nv_pict_surface_format_t
NV30SurfaceFormat[] = {
- { PICT_a8r8g8b8 , 0x148 },
- { PICT_a8b8g8r8 , 0x150 },
- { PICT_x8r8g8b8 , 0x145 },
- { PICT_x8b8g8r8 , 0x14f },
- { PICT_r5g6b5 , 0x143 },
- { PICT_a8 , 0x149 },
- { PICT_x1r5g5b5 , 0x142 },
+ { PICT_a8r8g8b8 , NV34TCL_RT_FORMAT_COLOR_A8R8G8B8 },
+ { PICT_x8r8g8b8 , NV34TCL_RT_FORMAT_COLOR_X8R8G8B8 },
+ { PICT_r5g6b5 , NV34TCL_RT_FORMAT_COLOR_R5G6B5 },
+ { PICT_a8 , NV34TCL_RT_FORMAT_COLOR_B8 },
+ { PICT...