nv50,nvc0: add 11f_11f_10f vertex support
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 1 Mar 2014 03:11:49 +0000 (22:11 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 5 Mar 2014 02:54:54 +0000 (21:54 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
docs/GL3.txt
src/gallium/drivers/nouveau/nv50/nv50_3d.xml.h
src/gallium/drivers/nouveau/nv50/nv50_formats.c
src/gallium/drivers/nouveau/nvc0/nvc0_3d.xml.h

index 432a056421bc5b4730b3a15519121e6bf9400725..9758dcca24ede655177ea69a58875e011e9fd8e0 100644 (file)
@@ -177,7 +177,7 @@ GL 4.4:
   GL_ARB_query_buffer_object                           not started
   GL_ARB_texture_mirror_clamp_to_edge                  DONE (i965, nv30, nv50, nvc0, r300, r600, radeonsi, swrast)
   GL_ARB_texture_stencil8                              not started
-  GL_ARB_vertex_type_10f_11f_11f_rev                   DONE (i965, r600)
+  GL_ARB_vertex_type_10f_11f_11f_rev                   DONE (i965, nv50, nvc0, r600)
 
 
 More info about these features and the work involved can be found at
index 9dff8b2dd13b422dac93c8429e1ce7cac48350dc..cc3a382b06122a0905d166a0c3f9e8aaf66b77d4 100644 (file)
@@ -1962,6 +1962,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define NV50_3D_VERTEX_ARRAY_ATTRIB_FORMAT_16                  0x00d80000
 #define NV50_3D_VERTEX_ARRAY_ATTRIB_FORMAT_8                   0x00e80000
 #define NV50_3D_VERTEX_ARRAY_ATTRIB_FORMAT_10_10_10_2          0x01800000
+#define NV50_3D_VERTEX_ARRAY_ATTRIB_FORMAT_11_11_10            0x01880000
 #define NV50_3D_VERTEX_ARRAY_ATTRIB_TYPE__MASK                 0x7e000000
 #define NV50_3D_VERTEX_ARRAY_ATTRIB_TYPE__SHIFT                        25
 #define NV50_3D_VERTEX_ARRAY_ATTRIB_TYPE_FLOAT                 0x7e000000
index c7c597530b6a046fa4124db87689d3226df3745b..fa93ce871b6a116af47c4494a5dc15d4c1e5d4ca 100644 (file)
@@ -204,7 +204,7 @@ const struct nv50_format nv50_format_table[PIPE_FORMAT_COUNT] =
    C4A(R10G10B10A2_UINT, RGB10_A2_UINT, C0, C1, C2, C3, UINT, 10_10_10_2, TRV, 0),
    C4A(B10G10R10A2_UINT, RGB10_A2_UINT, C2, C1, C0, C3, UINT, 10_10_10_2, TV, 0),
 
-   F3B(R11G11B10_FLOAT, R11G11B10_FLOAT, C0, C1, C2, xx, FLOAT, 11_11_10, IB),
+   F3A(R11G11B10_FLOAT, R11G11B10_FLOAT, C0, C1, C2, xx, FLOAT, 11_11_10, IBV),
 
    F3B(L8_UNORM, R8_UNORM, C0, C0, C0, xx, UNORM, 8, TB),
    F3B(L8_SRGB, R8_UNORM, C0, C0, C0, xx, UNORM, 8, TB),
index d3f719d333fea6c6aee13a2db6438bf40b740f1f..9e3c56b4418018a6e50ffa66809ac420f5cb852b 100644 (file)
@@ -467,6 +467,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define NVC0_3D_VERTEX_ATTRIB_FORMAT_SIZE_16                   0x03600000
 #define NVC0_3D_VERTEX_ATTRIB_FORMAT_SIZE_8                    0x03a00000
 #define NVC0_3D_VERTEX_ATTRIB_FORMAT_SIZE_10_10_10_2           0x06000000
+#define NVC0_3D_VERTEX_ATTRIB_FORMAT_SIZE_11_11_10             0x06200000
 #define NVC0_3D_VERTEX_ATTRIB_FORMAT_TYPE__MASK                        0x38000000
 #define NVC0_3D_VERTEX_ATTRIB_FORMAT_TYPE__SHIFT               27
 #define NVC0_3D_VERTEX_ATTRIB_FORMAT_TYPE_SNORM                        0x08000000