"H. Verbeet" hverbeet@gmail.com writes:
It should be noted that native d3d rounds to nearest even while Wine doesn't. Applications are not supposed to depend on that though.
Changelog:
- Add a mova rounding test
The test fails here:
../../../tools/runtest -q -P wine -M d3d9.dll -T ../../.. -p d3d9_test.exe.so visual.c && touch visual.ok visual.c:405: Test failed: Expected color 00ffff00, got 00000000 (for input -2.400000) visual.c:405: Test failed: Expected color 00ffff00, got 00000000 (for input -1.600000) visual.c:405: Test failed: Expected color 0000ffff, got 00000000 (for input -0.400000) visual.c:405: Test failed: Expected color 0000ffff, got 00000000 (for input 0.400000) visual.c:405: Test failed: Expected color 00ff00ff, got 00000000 (for input 1.600000) visual.c:405: Test failed: Expected color 00ff00ff, got 00000000 (for input 2.400000) make: *** [visual.ok] Error 6
On 28/02/07, Alexandre Julliard julliard@winehq.org wrote:
The test fails here:
../../../tools/runtest -q -P wine -M d3d9.dll -T ../../.. -p d3d9_test.exe.so visual.c && touch visual.ok visual.c:405: Test failed: Expected color 00ffff00, got 00000000 (for input -2.400000) visual.c:405: Test failed: Expected color 00ffff00, got 00000000 (for input -1.600000) visual.c:405: Test failed: Expected color 0000ffff, got 00000000 (for input -0.400000) visual.c:405: Test failed: Expected color 0000ffff, got 00000000 (for input 0.400000) visual.c:405: Test failed: Expected color 00ff00ff, got 00000000 (for input 1.600000) visual.c:405: Test failed: Expected color 00ff00ff, got 00000000 (for input 2.400000) make: *** [visual.ok] Error 6
Could you run that with +d3d_caps and possibly dump the value of caps.VertexShaderVersion? On a default Wine install that test should be getting skipped because our ARB shader backend doesn't support vs_2_0.
"H. Verbeet" hverbeet@gmail.com writes:
Could you run that with +d3d_caps and possibly dump the value of caps.VertexShaderVersion? On a default Wine install that test should be getting skipped because our ARB shader backend doesn't support vs_2_0.
The version is 3.0, because it's using the software shader on this box:
trace:d3d_caps:IWineD3DImpl_GetDeviceCaps (0x158de0)->(Adptr:0, DevType: 1, pCaps: 0x1aa6c0) trace:d3d_caps:IWineD3DImpl_GetAdapterCount (0x158de0): Mostly stub, only returns primary display trace:d3d_caps:WineD3D_CreateFakeGLContext getting context... trace:d3d_caps:WineD3D_CreateFakeGLContext incrementing ref from 0 trace:d3d_caps:IWineD3DImpl_FillGLCaps (0x158df4, 0x7c027110) trace:d3d_caps:IWineD3DImpl_FillGLCaps Filling vendor string Mesa project: www.mesa3d.org trace:d3d_caps:IWineD3DImpl_FillGLCaps found GL_VENDOR ("Mesa project: www.mesa3d.org")->(0x0001) trace:d3d_caps:IWineD3DImpl_FillGLCaps found GL_VERSION ("1.2 (1.5 Mesa 6.5.1)")->6.5->(0x00060005) trace:d3d_caps:IWineD3DImpl_FillGLCaps found GL_RENDERER ("Mesa GLX Indirect")->(0x0020) trace:d3d_caps:IWineD3DImpl_FillGLCaps ClipPlanes support - num Planes=6 trace:d3d_caps:IWineD3DImpl_FillGLCaps Lights support - max lights=8 trace:d3d_caps:IWineD3DImpl_FillGLCaps Maximum texture size support - max texture size=2048 trace:d3d_caps:IWineD3DImpl_FillGLCaps Maximum point size support - max point size=20.000000 trace:d3d_caps:IWineD3DImpl_FillGLCaps GL_Extensions reported: trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_depth_texture trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_imaging trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB imaging support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_multitexture trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB Multitexture support - GL_MAX_TEXTURE_UNITS_ARB=8 trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_point_parameters trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB Point parameters support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_point_sprite trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB point sprite support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_shadow trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_shadow_ambient trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_texture_border_clamp trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB Texture border clamp support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_texture_cube_map trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB Texture Cube Map support trace:d3d_caps:IWineD3DImpl_FillGLCaps IMPLIED: NVIDIA (NV) Texture Gen Reflection support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_texture_env_add trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB Texture Env Add support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_texture_env_combine trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB Texture Env combine support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_texture_env_crossbar trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_texture_env_dot3 trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB Dot3 support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_texture_mirrored_repeat trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB Texture mirrored repeat support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_texture_non_power_of_two trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ARB NPOT texture support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_texture_rectangle trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_transpose_matrix trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ARB_window_pos trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_abgr trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_bgra trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_blend_color trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_blend_func_separate trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_blend_logic_op trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_blend_minmax trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Blend minmax support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_blend_subtract trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_clip_volume_hint trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_copy_texture trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_draw_range_elements trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_fog_coord trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Fog coord support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_framebuffer_object trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Frame Buffer Object support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_multi_draw_arrays trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_packed_pixels trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_point_parameters trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Point parameters support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_polygon_offset trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_rescale_normal trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_secondary_color trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Secondary coord support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_separate_specular_color trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_shadow_funcs trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_stencil_wrap trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Stencil wrap support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_subtexture trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_texture trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_texture3D trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT_texture3D support trace:d3d_caps:IWineD3DImpl_FillGLCaps Max texture3D size: 8 trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_texture_edge_clamp trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_texture_env_add trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Texture Env Add support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_texture_env_combine trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Texture Env combine support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_texture_env_dot3 trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Dot3 support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_texture_lod_bias trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Texture LOD bias support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_texture_object trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_texture_rectangle trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_vertex_array trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_APPLE_packed_pixels trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ATI_texture_env_combine3 trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ATI Texture Env combine (3) support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ATI_texture_mirror_once trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: ATI Texture Mirror Once support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_ATIX_texture_env_combine3 trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_IBM_texture_mirrored_repeat trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_INGR_blend_func_separate trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_MESA_pack_invert trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_MESA_ycbcr_texture trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_NV_blend_square trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_NV_point_sprite trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_NV_texgen_reflection trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: NVIDIA (NV) Texture Gen Reflection support trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_NV_texture_rectangle trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_SGIS_generate_mipmap trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_SGIS_texture_border_clamp trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_SGIS_texture_edge_clamp trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_SGIS_texture_lod trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_SGIX_depth_texture trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_SGIX_shadow trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_SGIX_shadow_ambient trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_SUN_multi_draw_arrays trace:d3d_caps:IWineD3DImpl_FillGLCaps GLX_Extensions reported: trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_ARB_get_proc_address trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_ARB_multisample trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_EXT_import_context trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_EXT_visual_info trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_EXT_visual_rating trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_MESA_copy_sub_buffer trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_OML_swap_method trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_SGI_make_current_read trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_SGIS_multisample trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_SGIX_fbconfig trace:d3d_caps:IWineD3DImpl_FillGLCaps - GLX_EXT_texture_from_pixmap trace:d3d_caps:WineD3D_ReleaseFakeGLContext decrementing ref from 1 trace:d3d_caps:IWineD3DImpl_GetDeviceCaps Software vertex shader version 3.0 enabled trace:d3d_caps:IWineD3DImpl_GetDeviceCaps Pixel shader functionality not available
On 01/03/07, Alexandre Julliard julliard@winehq.org wrote:
"H. Verbeet" hverbeet@gmail.com writes:
Could you run that with +d3d_caps and possibly dump the value of caps.VertexShaderVersion? On a default Wine install that test should be getting skipped because our ARB shader backend doesn't support vs_2_0.
The version is 3.0, because it's using the software shader on this box:
Ah right. Software shaders don't work at all at the moment, and I don't expect them to start working anytime soon either, so we should probably just remove them completely.
"Alexandre Julliard" julliard@winehq.org wrote:
trace:d3d_caps:IWineD3DImpl_FillGLCaps - GL_EXT_secondary_color trace:d3d_caps:IWineD3DImpl_FillGLCaps FOUND: EXT Secondary coord support
Looks like a typo in the "FOUND:" message above: coord vs. color.