[dx8-26] vshader little things

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

again

Changelog:
 - new debug channel for shaders code 'd3d_shader'
 - more debugging traces


Raphael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+wgI2p7NA3AmQTU4RAhzpAJ9swSO5i+TgjzHxzE0K+YpGjBeyoACfU4ws
T94ov5i2R8v/txj1sVY57aI=
=Q0JE
-----END PGP SIGNATURE-----
Index: shader.c
===================================================================
RCS file: /home/wine/wine/dlls/d3d8/shader.c,v
retrieving revision 1.9
diff -u -r1.9 shader.c
--- shader.c	8 May 2003 03:49:04 -0000	1.9
+++ shader.c	14 May 2003 08:44:44 -0000
@@ -30,7 +30,7 @@
 
 #include "d3d8_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(d3d);
+WINE_DEFAULT_DEBUG_CHANNEL(d3d_shader);
 
 /* Shader debugging - Change the following line to enable debugging of software
       vertex shaders                                                             */
@@ -42,6 +42,7 @@
 # define TRACE_VECTOR(name)
 #endif
 
+
 /**
  * DirectX9 SDK download
  *  http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.asp
@@ -582,12 +583,16 @@
 
   /* vshader_program_parse(vshader); */
 #if 0
+  TRACE("Input:\n");
   TRACE_VECTOR(vshader->data->C[0]);
   TRACE_VECTOR(vshader->data->C[1]);
   TRACE_VECTOR(vshader->data->C[2]);
   TRACE_VECTOR(vshader->data->C[3]);
   TRACE_VECTOR(vshader->data->C[4]);
+  TRACE_VECTOR(vshader->data->C[5]);
+  TRACE_VECTOR(vshader->data->C[6]);
   TRACE_VECTOR(vshader->data->C[7]);
+  TRACE_VECTOR(vshader->data->C[8]);
   TRACE_VECTOR(input->V[D3DVSDE_POSITION]);
   TRACE_VECTOR(input->V[D3DVSDE_BLENDWEIGHT]);
   TRACE_VECTOR(input->V[D3DVSDE_BLENDINDICES]);
@@ -762,8 +767,8 @@
       /* to next opcode token */
       pToken += curOpcode->num_params;
     }
-
 #if 0
+    TRACE("End of current instruction:\n");
     TRACE_VECTOR(output->oPos);
     TRACE_VECTOR(output->oD[0]);
     TRACE_VECTOR(output->oD[1]);
@@ -777,6 +782,14 @@
     TRACE_VECTOR(R[5]);
 #endif
   }
+#if 0
+    TRACE("Output:\n");
+    TRACE_VECTOR(output->oPos);
+    TRACE_VECTOR(output->oD[0]);
+    TRACE_VECTOR(output->oD[1]);
+    TRACE_VECTOR(output->oT[0]);
+    TRACE_VECTOR(output->oT[1]);
+#endif
   return D3D_OK;
 }
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux