st/nine: Change the value of some advertised caps
authorAxel Davy <axel.davy@ens.fr>
Wed, 31 Dec 2014 16:26:05 +0000 (17:26 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:19 +0000 (00:07 +0100)
These values are taken from wine.

Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/adapter9.c

index 84469b14a47a9b960e0f752be178bce6a76d30a3..84578aca5eac82a29aacee065edb2f8aa953da2f 100644 (file)
@@ -731,7 +731,7 @@ NineAdapter9_GetDeviceCaps( struct NineAdapter9 *This,
         D3DPIPECAP(TWO_SIDED_STENCIL, D3DSTENCILCAPS_TWOSIDED);
 
     pCaps->FVFCaps =
-        (D3DFVFCAPS_TEXCOORDCOUNTMASK & 0xff) |
+        8 | /* 8 textures max */
         /*D3DFVFCAPS_DONOTSTRIPELEMENTS |*/
         D3DFVFCAPS_PSIZE;
 
@@ -787,8 +787,8 @@ NineAdapter9_GetDeviceCaps( struct NineAdapter9 *This,
 
     pCaps->MaxPointSize = screen->get_paramf(screen, PIPE_CAPF_MAX_POINT_WIDTH);
 
-    pCaps->MaxPrimitiveCount = 0xFFFFF; /* <- wine, really 0xFFFFFFFF; */
-    pCaps->MaxVertexIndex = 0xFFFFF; /* <- wine, really 0xFFFFFFFF */
+    pCaps->MaxPrimitiveCount = 0x555555; /* <- wine, really 0xFFFFFFFF; */
+    pCaps->MaxVertexIndex = 0xFFFFFF; /* <- wine, really 0xFFFFFFFF */
     pCaps->MaxStreams =
         _min(screen->get_shader_param(screen,
                  PIPE_SHADER_VERTEX, PIPE_SHADER_CAP_MAX_INPUTS),