Skip to content

Implement nine profile (runs nine-tests)

David Heidelberg requested to merge dh/piglit:brooklyn_nine-nine into main

This profile is useful for testing the Gallium Nine state tracker [1]

Can be invoked manually by:

./piglit run nine.py results/

Manual modifications done to visual.h: sed -i "s/static void/static enum piglit_result/" tests/nine/visual.h

[1] https://docs.mesa3d.org/gallium-nine.html


To improve in future:

  • currently we fail after first failed part of sub-test, which isn't optimal, but we cannot catch the failure other way (without rewriting the whole wine tests)
  • join forces with WINE team on improving coding so it can be more nicely integrated outside of WINE

Replacement of mesa!19246 (closed) .

Current output (on intel-tgl):

./bin/nine.program_test
PIGLIT: {"enumerate subtests": ["test_sanity", "depth_clamp_test", "stretchrect_test", "lighting_test", "test_specular_lighting", "test_clear_different_size_surfaces", "color_fill_test", "fog_test", "test_cube_wrap", "z_range_test", "maxmip_test", "offscreen_test", "ds_size_test", "test_blend", "test_shademode", "srgbtexture_test", "release_buffer_test", "float_texture_test", "g16r16_texture_test", "pixelshader_blending_test", "texture_transform_flags_test", "fixed_function_decl_test", "conditional_np2_repeat_test", "fixed_function_bumpmap_test", "tssargtemp_test", "np2_stretch_rect_test", "yuv_color_test", "yuv_layout_test", "zwriteenable_test", "alphatest_test", "test_viewport", "test_constant_clamp_vs", "test_compare_instructions", "test_mova", "loop_index_test", "sgn_test", "clip_planes_test", "test_vshader_input", "test_vshader_float16", "stream_test", "fog_with_shader_test", "texbem_test", "texdepth_test", "texkill_test", "volume_v16u16_test", "constant_clamp_ps_test", "cnd_test", "dp2add_ps_test", "unbound_sampler_test", "nested_loop_test", "pretransformed_varying_test", "vface_register_test", "test_fragment_coords", "multiple_rendertargets_test", "texop_test", "texop_range_test", "alphareplicate_test", "dp3_alpha_test", "depth_buffer_test", "depth_buffer2_test", "intz_test", "shadow_test", "fp_special_test", "depth_bounds_test", "srgbwrite_format_test", "update_surface_test", "multisample_get_rtdata_test", "test_multisample_get_front_buffer_data", "zenable_test", "fog_special_test", "volume_srgb_test", "volume_dxtn_test", "add_dirty_rect_test", "multisampled_depth_buffer_test", "resz_test", "stencil_cull_test", "test_per_stage_constant", "test_3dc_formats", "test_fog_interpolation", "test_negative_fixedfunction_fog", "test_position_index", "test_table_fog_zw", "test_signed_formats", "test_multisample_mismatch", "test_texcoordindex", "test_vertex_blending", "test_updatetexture", "test_depthbias", "test_flip", "test_uninitialized_varyings", "test_multisample_init", "test_depth_stencil_init", "test_texture_blending", "test_color_clamping", "test_line_antialiasing_blending", "test_dsy", "test_evict_bound_resources", "test_max_index16", "test_backbuffer_resize", "test_drawindexedprimitiveup", "test_vertex_texture", "test_mvp_software_vertex_shaders", "test_null_format", "test_color_vertex", "test_sysmem_draw", "test_nrm_instruction", "test_mismatched_sample_types", "test_draw_mapped_buffer", "test_alpha_to_coverage", "test_sample_mask"]}
PIGLIT: {"subtest": {"test_sanity" : "pass"}}
PIGLIT: {"subtest": {"depth_clamp_test" : "pass"}}
PIGLIT: {"subtest": {"stretchrect_test" : "pass"}}
PIGLIT: {"subtest": {"lighting_test" : "pass"}}
PIGLIT: {"subtest": {"test_specular_lighting" : "pass"}}
PIGLIT: {"subtest": {"test_clear_different_size_surfaces" : "pass"}}
skip Offscreenplain D3DFMT_P8 surfaces not supported, skipping colorfill test
skip Offscreenplain D3DFMT_DXT1 surfaces not supported, skipping colorfill test
PIGLIT: {"subtest": {"color_fill_test" : "pass"}}
fog_test Transformed vertex with linear table fog has color 00ffff00
PIGLIT: {"subtest": {"fog_test" : "fail"}}
PIGLIT: {"subtest": {"test_cube_wrap" : "pass"}}
PIGLIT: {"subtest": {"z_range_test" : "pass"}}
PIGLIT: {"subtest": {"maxmip_test" : "pass"}}
PIGLIT: {"subtest": {"offscreen_test" : "pass"}}
PIGLIT: {"subtest": {"ds_size_test" : "pass"}}
PIGLIT: {"subtest": {"test_blend" : "pass"}}
PIGLIT: {"subtest": {"test_shademode" : "pass"}}
skip A1R5G5R5 textures with SRGBREAD are not supported.
skip X1R5G5R5 textures with SRGBREAD are not supported.
PIGLIT: {"subtest": {"srgbtexture_test" : "pass"}}
PIGLIT: {"subtest": {"release_buffer_test" : "pass"}}
PIGLIT: {"subtest": {"float_texture_test" : "pass"}}
PIGLIT: {"subtest": {"g16r16_texture_test" : "pass"}}
PIGLIT: {"subtest": {"pixelshader_blending_test" : "pass"}}
../src/intel/isl/isl.c:2235: FINISHME: ../src/intel/isl/isl.c:isl_surf_supports_ccs: CCS for 3D textures is disabled, but a workaround is available.
PIGLIT: {"subtest": {"texture_transform_flags_test" : "pass"}}
PIGLIT: {"subtest": {"fixed_function_decl_test" : "pass"}}
skip Card has unconditional NP2 support, skipping conditional NP2 tests
PIGLIT: {"subtest": {"conditional_np2_repeat_test" : "pass"}}
skip L6V5U5 / D3DTOP_BUMPENVMAPLUMINANCE not supported, skipping tests.
PIGLIT: {"subtest": {"fixed_function_bumpmap_test" : "pass"}}
PIGLIT: {"subtest": {"tssargtemp_test" : "pass"}}
PIGLIT: {"subtest": {"np2_stretch_rect_test" : "pass"}}
skip D3DFMT_UYVY is not supported.
skip D3DFMT_YUY2 is not supported.
PIGLIT: {"subtest": {"yuv_color_test" : "pass"}}
skip D3DFMT_UYVY is not supported.
skip D3DFMT_YUY2 is not supported.
skip D3DFMT_YV12 is not supported.
skip D3DFMT_NV12 is not supported.
PIGLIT: {"subtest": {"yuv_layout_test" : "pass"}}
PIGLIT: {"subtest": {"zwriteenable_test" : "pass"}}
PIGLIT: {"subtest": {"alphatest_test" : "pass"}}
check_rect_ Viewport (0, 0) - (640, 480): pixel (1, 121) has color ff000000, expected ffffffff.
check_rect_ Viewport (0, 0, 0.5) - (640, 480, 0.0): pixel (1, 121) has color ff000000, expected ffffffff.
check_rect_ Viewport (0, 0) - (320, 240): pixel (1, 61) has color ff000000, expected ffffffff.
check_rect_ Viewport (0, 0) - (1280, 960): pixel (1, 241) has color ff000000, expected ffffffff.
check_rect_ Viewport (0, 0) - (2000, 1600): pixel (1, 401) has color ff000000, expected ffffffff.
check_rect_ Viewport (100, 100) - (640, 480): pixel (101, 221) has color ff000000, expected ffffffff.
PIGLIT: {"subtest": {"test_viewport" : "pass"}}
PIGLIT: {"subtest": {"test_constant_clamp_vs" : "pass"}}
PIGLIT: {"subtest": {"test_compare_instructions" : "pass"}}
PIGLIT: {"subtest": {"test_mova" : "pass"}}
PIGLIT: {"subtest": {"loop_index_test" : "pass"}}
PIGLIT: {"subtest": {"sgn_test" : "pass"}}
PIGLIT: {"subtest": {"clip_planes_test" : "pass"}}
PIGLIT: {"subtest": {"test_vshader_input" : "pass"}}
PIGLIT: {"subtest": {"test_vshader_float16" : "pass"}}
stream_test IDirect3DDevice9_GetStreamSourceFreq unexpected result, hr 0, ind 0.
PIGLIT: {"subtest": {"stream_test" : "fail"}}
fog_with_shader_test fog vs0 ps1 fvm0 ftm3 1: got color 0000ff00, expected 00ff0000 +-5%
PIGLIT: {"subtest": {"fog_with_shader_test" : "fail"}}
PIGLIT: {"subtest": {"texbem_test" : "pass"}}
PIGLIT: {"subtest": {"texdepth_test" : "pass"}}
PIGLIT: {"subtest": {"texkill_test" : "pass"}}
PIGLIT: {"subtest": {"volume_v16u16_test" : "pass"}}
PIGLIT: {"subtest": {"constant_clamp_ps_test" : "pass"}}
PIGLIT: {"subtest": {"cnd_test" : "pass"}}
PIGLIT: {"subtest": {"dp2add_ps_test" : "pass"}}
PIGLIT: {"subtest": {"unbound_sampler_test" : "pass"}}
PIGLIT: {"subtest": {"nested_loop_test" : "pass"}}
pretransformed_varying_test Test fog returned color 0x00668c8c, expected 0x00666666 (todo).
PIGLIT: {"subtest": {"pretransformed_varying_test" : "fail"}}
PIGLIT: {"subtest": {"vface_register_test" : "pass"}}
test_fragment_coords vPos: Pixel 320,239 has color 0x00000000, expected 0x0000ff00
PIGLIT: {"subtest": {"test_fragment_coords" : "fail"}}
PIGLIT: {"subtest": {"multiple_rendertargets_test" : "pass"}}
PIGLIT: {"subtest": {"texop_test" : "pass"}}
PIGLIT: {"subtest": {"texop_range_test" : "pass"}}
PIGLIT: {"subtest": {"alphareplicate_test" : "pass"}}
PIGLIT: {"subtest": {"dp3_alpha_test" : "pass"}}
PIGLIT: {"subtest": {"depth_buffer_test" : "pass"}}
PIGLIT: {"subtest": {"depth_buffer2_test" : "pass"}}
PIGLIT: {"subtest": {"intz_test" : "pass"}}
PIGLIT: {"subtest": {"shadow_test" : "pass"}}
fp_special_test Expected color 0x000000ff, 0x00007f00, 0x0000ff00 or 0x00007f00 for instruction "def1", got 0x00000000.
PIGLIT: {"subtest": {"fp_special_test" : "fail"}}
skip No NVDB (depth bounds test) support, skipping tests.
PIGLIT: {"subtest": {"depth_bounds_test" : "pass"}}
PIGLIT: {"subtest": {"srgbwrite_format_test" : "pass"}}
PIGLIT: {"subtest": {"update_surface_test" : "pass"}}
PIGLIT: {"subtest": {"multisample_get_rtdata_test" : "pass"}}
test_multisample_get_front_buffer_data Got unexpected color 0x00000000.
PIGLIT: {"subtest": {"test_multisample_get_front_buffer_data" : "fail"}}
PIGLIT: {"subtest": {"zenable_test" : "pass"}}
fog_special_test Expected right color 0x00ff0000, got 0x0000ff00, case 4.
PIGLIT: {"subtest": {"fog_special_test" : "fail"}}
PIGLIT: {"subtest": {"volume_srgb_test" : "pass"}}
PIGLIT: {"subtest": {"volume_dxtn_test" : "pass"}}
add_dirty_rect_test Got unexpected color 0x0000ff00.
PIGLIT: {"subtest": {"add_dirty_rect_test" : "fail"}}
PIGLIT: {"subtest": {"multisampled_depth_buffer_test" : "pass"}}
PIGLIT: {"subtest": {"resz_test" : "pass"}}
PIGLIT: {"subtest": {"stencil_cull_test" : "pass"}}
PIGLIT: {"subtest": {"test_per_stage_constant" : "pass"}}
PIGLIT: {"subtest": {"test_3dc_formats" : "pass"}}
test_fog_interpolation Got unexpected color 0x000000ff, case 4.
PIGLIT: {"subtest": {"test_fog_interpolation" : "fail"}}
test_negative_fixedfunction_fog Got unexpected color 0x0000ff00, case 1.
PIGLIT: {"subtest": {"test_negative_fixedfunction_fog" : "fail"}}
nine:nine_translate_shader Encountered buggy shader
PIGLIT: {"subtest": {"test_position_index" : "pass"}}
test_table_fog_zw Got unexpected color 0x00000000, expected 0x004cb200, case 0.
PIGLIT: {"subtest": {"test_table_fog_zw" : "fail"}}
skip Format D3DFMT_L6V5U5 not supported, skipping.
PIGLIT: {"subtest": {"test_signed_formats" : "pass"}}
test_multisample_mismatch Got unexpected color 0x00000000.
PIGLIT: {"subtest": {"test_multisample_mismatch" : "fail"}}
PIGLIT: {"subtest": {"test_texcoordindex" : "pass"}}
PIGLIT: {"subtest": {"test_vertex_blending" : "pass"}}
test_updatetexture Got unexpected color 0x007fffff, case 0, 15.
PIGLIT: {"subtest": {"test_updatetexture" : "fail"}}
test_depthbias Got unexpected color 0000ff00 at x=62, format 80.
PIGLIT: {"subtest": {"test_depthbias" : "fail"}}
PIGLIT: {"subtest": {"test_flip" : "pass"}}
test_uninitialized_varyings Got unexpected color 0xff000000, case 0.
PIGLIT: {"subtest": {"test_uninitialized_varyings" : "fail"}}
PIGLIT: {"subtest": {"test_multisample_init" : "pass"}}
PIGLIT: {"subtest": {"test_depth_stencil_init" : "pass"}}
PIGLIT: {"subtest": {"test_texture_blending" : "pass"}}
PIGLIT: {"subtest": {"test_color_clamping" : "pass"}}
trace Line antialiasing support: 0x20.
PIGLIT: {"subtest": {"test_line_antialiasing_blending" : "pass"}}
PIGLIT: {"subtest": {"test_dsy" : "pass"}}
PIGLIT: {"subtest": {"test_evict_bound_resources" : "pass"}}
PIGLIT: {"subtest": {"test_max_index16" : "pass"}}
PIGLIT: {"subtest": {"test_backbuffer_resize" : "pass"}}
PIGLIT: {"subtest": {"test_drawindexedprimitiveup" : "pass"}}
PIGLIT: {"subtest": {"test_vertex_texture" : "pass"}}
test_mvp_software_vertex_shaders Got unexpected hr 0.
PIGLIT: {"subtest": {"test_mvp_software_vertex_shaders" : "fail"}}
test_null_format Expected color 0x00000000 at (520, 320), got 0x00ff0000.
PIGLIT: {"subtest": {"test_null_format" : "fail"}}
PIGLIT: {"subtest": {"test_color_vertex" : "pass"}}
test_sysmem_draw Got unexpected hr 0x8876086c.
PIGLIT: {"subtest": {"test_sysmem_draw" : "fail"}}
PIGLIT: {"subtest": {"test_nrm_instruction" : "pass"}}
PIGLIT: {"subtest": {"test_mismatched_sample_types" : "pass"}}
PIGLIT: {"subtest": {"test_draw_mapped_buffer" : "pass"}}
PIGLIT: {"subtest": {"test_alpha_to_coverage" : "pass"}}
PIGLIT: {"subtest": {"test_sample_mask" : "pass"}}
PIGLIT: {"result": "fail" }
Edited by David Heidelberg

Merge request reports

Loading