nouveau: object header update
authorBen Skeggs <skeggsb@gmail.com>
Mon, 7 Jan 2008 15:28:43 +0000 (02:28 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Mon, 7 Jan 2008 15:28:43 +0000 (02:28 +1100)
src/mesa/pipe/nouveau/nouveau_class.h
src/mesa/pipe/nv40/nv40_state_tex.c

index 1f2c52891d91d4851c92c22ca53b51b3d552b6f6..e3c284095de063fb56da99cf30ed4a5457b26ff6 100644 (file)
@@ -3672,7 +3672,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 
 
-#define NV36TCL                                                                                0x00000497
+#define NV35TCL                                                                                0x00000497
 
 
 
@@ -5070,7 +5070,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define    NV40TCL_TEX_FORMAT_FORMAT_DXT1                                              0x00000600
 #define    NV40TCL_TEX_FORMAT_FORMAT_DXT3                                              0x00000700
 #define    NV40TCL_TEX_FORMAT_FORMAT_DXT5                                              0x00000800
-#define    NV40TCL_TEX_FORMAT_FORMAT_A8L8                                              0x00001800
+#define    NV40TCL_TEX_FORMAT_FORMAT_A8L8                                              0x00000b00
+#define    NV40TCL_TEX_FORMAT_FORMAT_Z24                                               0x00001000
+#define    NV40TCL_TEX_FORMAT_FORMAT_Z16                                               0x00001200
+#define    NV40TCL_TEX_FORMAT_FORMAT_HILO8                                             0x00001800
 #define   NV40TCL_TEX_FORMAT_DIMS_SHIFT                                                        4
 #define   NV40TCL_TEX_FORMAT_DIMS_MASK                                                 0x000000f0
 #define    NV40TCL_TEX_FORMAT_DIMS_1D                                                  0x00000010
@@ -5183,6 +5186,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define    NV40TCL_TEX_SWIZZLE_S1_W_X                                                  0x00000003
 #define  NV40TCL_TEX_FILTER(x)                                                         (0x00001a14+((x)*32))
 #define  NV40TCL_TEX_FILTER__SIZE                                                      0x00000010
+#define   NV40TCL_TEX_FILTER_SIGNED_ALPHA                                              (1 << 31)
+#define   NV40TCL_TEX_FILTER_SIGNED_RED                                                        (1 << 30)
+#define   NV40TCL_TEX_FILTER_SIGNED_GREEN                                              (1 << 29)
+#define   NV40TCL_TEX_FILTER_SIGNED_BLUE                                               (1 << 28)
 #define   NV40TCL_TEX_FILTER_MIN_SHIFT                                                 16
 #define   NV40TCL_TEX_FILTER_MIN_MASK                                                  0x000f0000
 #define    NV40TCL_TEX_FILTER_MIN_NEAREST                                              0x00010000
@@ -5333,6 +5340,24 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define  NV50_2D_BLIT_DST_H                                                            0x000008bc
 #define  NV50_2D_BLIT_SRC_X                                                            0x000008d4
 #define  NV50_2D_BLIT_SRC_Y                                                            0x000008dc
+#define  NV50_2D_SIFC_UNK0800                                                          0x00000800
+#define  NV50_2D_SIFC_FORMAT                                                           0x00000804
+#define   NV50_2D_SIFC_FORMAT_32BPP                                                    0x000000cf
+#define   NV50_2D_SIFC_FORMAT_24BPP                                                    0x000000e6
+#define   NV50_2D_SIFC_FORMAT_16BPP                                                    0x000000e8
+#define   NV50_2D_SIFC_FORMAT_8BPP                                                     0x000000f3
+#define   NV50_2D_SIFC_FORMAT_15BPP                                                    0x000000f8
+#define  NV50_2D_SIFC_WIDTH                                                            0x00000838
+#define  NV50_2D_SIFC_HEIGHT                                                           0x0000083c
+#define  NV50_2D_SIFC_SCALE_UNK0840                                                    0x00000840
+#define  NV50_2D_SIFC_SCALE_UNK0844                                                    0x00000844
+#define  NV50_2D_SIFC_SCALE_UNK0848                                                    0x00000848
+#define  NV50_2D_SIFC_SCALE_UNK084C                                                    0x0000084c
+#define  NV50_2D_SIFC_UNK0850                                                          0x00000850
+#define  NV50_2D_SIFC_DST_X                                                            0x00000854
+#define  NV50_2D_SIFC_UNK0858                                                          0x00000858
+#define  NV50_2D_SIFC_DST_Y                                                            0x0000085c
+#define  NV50_2D_SIFC_DATA                                                             0x00000860
 
 
 #define NV50_MEMORY_TO_MEMORY_FORMAT                                                   0x00005039
index f54a65c7809548f4c02106d9a04bdc44863d7039..f2303e34db35c1f0ba5b5f4fd5e608f98f20bcd9 100644 (file)
    NV40TCL_TEX_SWIZZLE_S1_Z_##ts1z | NV40TCL_TEX_SWIZZLE_S1_W_##ts1w),         \
 }
 
-#define NV40TCL_TEX_FORMAT_FORMAT_Z16 0x1200
-#define NV40TCL_TEX_FORMAT_FORMAT_Z24 0x1000
-#define NV40TCL_TEX_FORMAT_FORMAT_A8L8_2 0x0b00
-
 struct nv40_texture_format {
        boolean defined;
        uint    pipe;
@@ -31,7 +27,7 @@ nv40_texture_formats[] = {
        _(U_L8          , L8      ,   S1,   S1,   S1,  ONE, X, X, X, X),
        _(U_A8          , L8      , ZERO, ZERO, ZERO,   S1, X, X, X, X),
        _(U_I8          , L8      ,   S1,   S1,   S1,   S1, X, X, X, X),
-       _(U_A8_L8       , A8L8_2  ,   S1,   S1,   S1,   S1, X, X, X, Y),
+       _(U_A8_L8       , A8L8    ,   S1,   S1,   S1,   S1, X, X, X, Y),
        _(Z16_UNORM     , Z16     ,   S1,   S1,   S1,  ONE, X, X, X, X),
        _(Z24S8_UNORM   , Z24     ,   S1,   S1,   S1,  ONE, X, X, X, X),
 //     _(RGB_DXT1      , 0x86,   S1,   S1,   S1,  ONE, X, Y, Z, W, 0x00, 0x00),