reactos/sdk/tools/winesync/d3dx9_staging
winesync e362e098a3 [WINESYNC] d3dx9_36: Filter out D3DCompile warning messages that are not present with D3DCompileShader. (try 4)
This patch fixes vertex processing issue of bug 33770.

The problem comes from the fact that even if the call succeeds,
the game interprets a non null error_messages pointer as an error.

By calling D3DCompile we use a newer version of the compiler which is more
strict and generates the following warning.
  - warning X3206: 'dot': implicit truncation of vector type
  - warning X3206: implicit truncation of vector type
  - warning X3206: 'mul': implicit truncation of vector type
D3DCompileShader does not generate such warnings.

These is confirmed in the DX SDK release note:
New Warning X3206: Implicit Truncation of Vector Type
Beginning in the August 2009 release of the DirectX SDK, the compiler will warn
when an implicit truncation of a vector type occurs.

The warnings cannot be disable so this patch filters out these strings in D3DCompileShader
and reset the error messages pointer if the resulting buffer is empty.

Try 2:
  - only filter out lines containing "X3206:" in case d3dcompiler_43 has localization

Try 3:
  - use move in place instead of copying the buffer

Try 4:
  - filter simplification by Sebastian and remove 'mul' testing left-out in search string

wine-staging patch by Christian Costa <titan.costa@gmail.com>
2020-02-26 18:19:18 +01:00
..
0001-d3dx9__Return_D3DFMT_A8R8G8B8_in_D3DXGetImageInfoFromFileInMemory_for_32_bpp_BMP_with_alpha.diff [WINESYNC] d3dx9: Return D3DFMT_A8R8G8B8 in D3DXGetImageInfoFromFileInMemory for 32 bpp BMP with alpha. 2020-02-26 18:19:18 +01:00
0002-d3dx9_36__Recognize_bump_luminance_X8L8V8U8_when_loading_dds_file.diff [WINESYNC] d3dx9_36: Recognize bump luminance X8L8V8U8 when loading dds file. 2020-02-26 18:19:18 +01:00
0003-d3dx9_36__Add_format_description_for_X8L8V8U8_for_format_conversions.diff [WINESYNC] d3dx9_36: Add format description for X8L8V8U8 for format conversions. 2020-02-26 18:19:18 +01:00
0004-d3dx9_36__Improve_stub_for_ID3DXEffectImpl_CloneEffect.diff [WINESYNC] d3dx9_36: Improve stub for ID3DXEffectImpl_CloneEffect. 2020-02-26 18:19:18 +01:00
0005-d3dx9_36__Implement_D3DXDisassembleShader._(v2).diff [WINESYNC] d3dx9_36: Implement D3DXDisassembleShader. (v2) 2020-02-26 18:19:18 +01:00
0006-d3dx9_36_tests__Add_initial_tests_for_D3DXDisassembleShader.diff [WINESYNC] d3dx9_36/tests: Add initial tests for D3DXDisassembleShader. 2020-02-26 18:19:18 +01:00
0007-d3dx9_36_tests__Add_additional_tests_for_special_cases.diff [WINESYNC] d3dx9_36/tests: Add additional tests for special cases. 2020-02-26 18:19:18 +01:00
0008-d3dx9_36_tests__Remove_useless__n_within_some_ok_messages.diff [WINESYNC] d3dx9_36/tests: Remove useless \n within some ok messages. 2020-02-26 18:19:18 +01:00
0009-d3dx9_36__Add_semi-stub_for_D3DXOptimizeVertices.diff [WINESYNC] d3dx9_36: Add semi-stub for D3DXOptimizeVertices. 2020-02-26 18:19:18 +01:00
0010-d3dx9____Add_D3DXSHProjectCubeMap_stub.diff [WINESYNC] d3dx9_*: Add D3DXSHProjectCubeMap stub 2020-02-26 18:19:18 +01:00
0011-d3dx9__Implement_D3DXComputeTangent.diff [WINESYNC] d3dx9: Implement D3DXComputeTangent 2020-02-26 18:19:18 +01:00
0012-d3dx9_36__Add_support_for_FOURCC_surface_to_save_dds_surface_to_memory.diff [WINESYNC] d3dx9_36: Add support for FOURCC surface to save_dds_surface_to_memory. 2020-02-26 18:19:18 +01:00
0013-d3dx9_36__Improve_D3DXSaveTextureToFile_to_save_simple_texture_to_dds_file.diff [WINESYNC] d3dx9_36: Improve D3DXSaveTextureToFile to save simple texture to dds file. 2020-02-26 18:19:18 +01:00
0014-d3dx9_36__add_DXTn_support.diff [WINESYNC] d3dx9_36: add DXTn support 2020-02-26 18:19:18 +01:00
0015-d3dx9_36__Implement_ID3DXFontImpl_DrawText.diff [WINESYNC] d3dx9_36: Implement ID3DXFontImpl_DrawText. 2020-02-26 18:19:18 +01:00
0016-d3dx9_36__Fix_horizontal_centering_in_ID3DXFont_DrawText.diff [WINESYNC] d3dx9_36: Fix horizontal centering in ID3DXFont_DrawText. 2020-02-26 18:19:18 +01:00
0017-d3dx9_36__Support_NULL_terminated_strings_in_ID3DXFont_DrawText.diff [WINESYNC] d3dx9_36: Support NULL terminated strings in ID3DXFont_DrawText 2020-02-26 18:19:18 +01:00
0018-d3dx9_36__ID3DXFont_DrawText_calc_rect_can_be_null.diff [WINESYNC] d3dx9_36: ID3DXFont_DrawText calc_rect can be null 2020-02-26 18:19:18 +01:00
0019-d3dx9_36__Return_dummy_skininfo_interface_in_D3DXLoadSkinMeshFromXof_when_skin_information_is_unavailable.diff [WINESYNC] d3dx9_36: Return dummy skininfo interface in D3DXLoadSkinMeshFromXof when skin information is unavailable. 2020-02-26 18:19:18 +01:00
0020-d3dx9_36_tests__Add_initial_tests_for_dummy_skininfo_interface.diff [WINESYNC] d3dx9_36/tests: Add initial tests for dummy skininfo interface. 2020-02-26 18:19:18 +01:00
0021-d3dx9_36__Filter_out_D3DCompile_warning_messages_that_are_not_present_with_D3DCompileShader._(try_4).diff [WINESYNC] d3dx9_36: Filter out D3DCompile warning messages that are not present with D3DCompileShader. (try 4) 2020-02-26 18:19:18 +01:00