Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
d3d9_debugging [2014/09/13 23:49] okias TGSI_PRINT_SANITY |
d3d9_debugging [2022/07/11 10:41] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
Compile both Mesa-3D and Wine with **CFLAGS** and **CXXFLAGS** set to debug. | Compile both Mesa-3D and Wine with **CFLAGS** and **CXXFLAGS** set to debug. | ||
- | < | + | < |
- | * **-Og** is better than -O0 and disable optimalization which interfere | + | * **-Og** is better than -O0 and disable optimalization which interferes |
- | * **-ggdb, -pg, -g** add debug informations | + | * **-ggdb, -g** adds debug information |
* **-gdwarf-2, | * **-gdwarf-2, | ||
+ | * you can also add **-pg** for profiling. Beware - may cause compilation issues. | ||
Also configure Mesa-3D with < | Also configure Mesa-3D with < | ||
- | Make **sure**, you had **disabled striping debug symbols** if you using distribution | + | Make **sure**, you have **disabled striping debug symbols** if you are using distribution |
+ | |||
+ | A problem can be located in either wine or Mesa. | ||
+ | If it's in mesa, you'll need to use [[https:// | ||
+ | |||
+ | when you comparing logs from ALWAYS_SOFTWARE, | ||
+ | |||
+ | '' | ||
- | It depends on issue, you need to figure out, where is problem. | ||
- | If it's in mesa, you'll need use | ||
- | * **NINE_DEBUG** variable, to know what D3D9 ST doing. Pass **NINE_DEBUG=help** to get all options. | ||
- | * **NINE_TGSI_DUMP=1** variable for dumping generated TGSI code. | ||
- | * **TGSI_PRINT_SANITY=1** will precisely check TGSI and assert in case of error | ||
For wine, **WINEDEBUG**=+d3dadapter9, | For wine, **WINEDEBUG**=+d3dadapter9, | ||
- | For surpasing annoying dbghelp warnings pass // | ||
- | You maybe also interested in apitrace. | + | You also may be interested in apitrace. |
== APITrace == | == APITrace == | ||
{{ : | {{ : | ||
- | * For debugging Windows | + | |
- | * Windows version is almost always required for replaying | + | |
+ | * The Windows version is almost always required for replaying | ||
+ | |||
+ | When uploading APITrace .trace file, please repack it with brotli (best compression -> '' | ||
+ | * [[https:// | ||
+ | * [[http:// | ||
- | * [[https:// | ||
- | * [[http:// |