r300: Invalid read in Xnine.shademode test when using draw for vs
With forced software vertex processing RADEON_DEBUG=notcl
==19476== Invalid read of size 4
==19476== at 0x57C1E7D: draw_is_vs_window_space (draw_context.c:266)
==19476== by 0x57C1E7D: draw_update_clip_flags (draw_context.c:275)
==19476== by 0x571365F: r300_bind_rs_state (r300_state.c:1371)
==19476== by 0x57F9248: blitter_set_common_draw_rect_state (u_blitter.c:1385)
==19476== by 0x57FCCF3: util_blitter_clear_custom.constprop.0 (u_blitter.c:1600)
==19476== by 0x5739BBA: r300_clear (r300_blit.c:379)
==19476== by 0x56D5DF5: nine_context_clear_fb_priv (nine_state.c:2361)
==19476== by 0x5650A23: NineDevice9_Clear (device9.c:2168)
==19476== by 0x1AC58C: test_shademode() (NineTests.cpp:8396)
==19476== by 0x2E3F82: Xnine_shademode_Test::TestBody() (NineTests.cpp:23917)
==19476== by 0x32F169: HandleSehExceptionsInMethodIfSupported<testing::Test, void> (gtest.cc:2605)
==19476== by 0x32F169: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2641)
==19476== by 0x322976: Run (gtest.cc:2680)
==19476== by 0x322976: testing::Test::Run() (gtest.cc:2670)
==19476== by 0x322B08: Run (gtest.cc:2857)
==19476== by 0x322B08: testing::TestInfo::Run() (gtest.cc:2830)
==19476== Address 0x1458488c is 3,204 bytes inside a block of size 3,424 free'd
==19476== at 0x4837867: free (in /usr/lib/i386-linux-gnu/valgrind/vgpreload_memcheck-x86-linux.so)
==19476== by 0x587F436: vs_llvm_delete (draw_vs_llvm.c:82)
==19476== by 0x571079B: r300_delete_vs_state (r300_state.c:2045)
==19476== by 0x56EFF92: NineVertexShader9_dtor (vertexshader9.c:145)
==19476== by 0x565C59C: NineUnknown_Release (iunknown.c:148)
==19476== by 0x1ACFA4: test_shademode() (NineTests.cpp:8430)
==19476== by 0x2E3F82: Xnine_shademode_Test::TestBody() (NineTests.cpp:23917)
==19476== by 0x32F169: HandleSehExceptionsInMethodIfSupported<testing::Test, void> (gtest.cc:2605)
==19476== by 0x32F169: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2641)
==19476== by 0x322976: Run (gtest.cc:2680)
==19476== by 0x322976: testing::Test::Run() (gtest.cc:2670)
==19476== by 0x322B08: Run (gtest.cc:2857)
==19476== by 0x322B08: testing::TestInfo::Run() (gtest.cc:2830)
==19476== by 0x323134: Run (gtest.cc:3011)
==19476== by 0x323134: testing::TestSuite::Run() (gtest.cc:2990)
==19476== by 0x323859: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5722)
==19476== Block was alloc'd at
==19476== at 0x4838A16: calloc (in /usr/lib/i386-linux-gnu/valgrind/vgpreload_memcheck-x86-linux.so)
==19476== by 0x587F481: draw_create_vs_llvm (draw_vs_llvm.c:90)
==19476== by 0x57DF1CE: draw_create_vertex_shader (draw_vs.c:79)
==19476== by 0x571ABD5: r300_draw_init_vertex_shader (r300_vs_draw.c:365)
==19476== by 0x571265D: r300_create_vs_state (r300_state.c:1986)
==19476== by 0x56ACE2A: nine_ureg_create_shader (nine_shader.c:4043)
==19476== by 0x56D30A7: nine_create_shader_with_so_and_destroy (nine_shader.c:4057)
==19476== by 0x56D30A7: nine_translate_shader (nine_shader.c:4274)
==19476== by 0x56EFBD2: NineVertexShader9_ctor.part.0 (vertexshader9.c:78)
==19476== by 0x56F0BCE: NineVertexShader9_ctor (vertexshader9.c:53)
==19476== by 0x56F0BCE: NineVertexShader9_new (vertexshader9.c:314)
==19476== by 0x5651D55: NineDevice9_CreateVertexShader (device9.c:3486)
==19476== by 0x1ABD6D: test_shademode() (NineTests.cpp:8352)
==19476== by 0x2E3F82: Xnine_shademode_Test::TestBody() (NineTests.cpp:23917)
==19476==
==19476== Invalid read of size 4
==19476== at 0x57C22F5: draw_update_viewport_flags (draw_context.c:298)
==19476== by 0x57C22F5: draw_set_viewport_states (draw_context.c:401)
==19476== by 0x5713B5E: r300_set_viewport_states (r300_state.c:1733)
==19476== by 0x57F9CBA: blitter_set_rectangle (u_blitter.c:872)
==19476== by 0x57F9CBA: blitter_draw (u_blitter.c:1406)
==19476== by 0x570F495: r300_blitter_draw_rectangle (r300_render.c:1184)
==19476== by 0x57FCD21: util_blitter_clear_custom.constprop.0 (u_blitter.c:1601)
==19476== by 0x5739BBA: r300_clear (r300_blit.c:379)
==19476== by 0x56D5DF5: nine_context_clear_fb_priv (nine_state.c:2361)
==19476== by 0x5650A23: NineDevice9_Clear (device9.c:2168)
==19476== by 0x1AC58C: test_shademode() (NineTests.cpp:8396)
==19476== by 0x2E3F82: Xnine_shademode_Test::TestBody() (NineTests.cpp:23917)
==19476== by 0x32F169: HandleSehExceptionsInMethodIfSupported<testing::Test, void> (gtest.cc:2605)
==19476== by 0x32F169: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2641)
==19476== by 0x322976: Run (gtest.cc:2680)
==19476== by 0x322976: testing::Test::Run() (gtest.cc:2670)
==19476== Address 0x1458488c is 3,204 bytes inside a block of size 3,424 free'd
==19476== at 0x4837867: free (in /usr/lib/i386-linux-gnu/valgrind/vgpreload_memcheck-x86-linux.so)
==19476== by 0x587F436: vs_llvm_delete (draw_vs_llvm.c:82)
==19476== by 0x571079B: r300_delete_vs_state (r300_state.c:2045)
==19476== by 0x56EFF92: NineVertexShader9_dtor (vertexshader9.c:145)
==19476== by 0x565C59C: NineUnknown_Release (iunknown.c:148)
==19476== by 0x1ACFA4: test_shademode() (NineTests.cpp:8430)
==19476== by 0x2E3F82: Xnine_shademode_Test::TestBody() (NineTests.cpp:23917)
==19476== by 0x32F169: HandleSehExceptionsInMethodIfSupported<testing::Test, void> (gtest.cc:2605)
==19476== by 0x32F169: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2641)
==19476== by 0x322976: Run (gtest.cc:2680)
==19476== by 0x322976: testing::Test::Run() (gtest.cc:2670)
==19476== by 0x322B08: Run (gtest.cc:2857)
==19476== by 0x322B08: testing::TestInfo::Run() (gtest.cc:2830)
==19476== by 0x323134: Run (gtest.cc:3011)
==19476== by 0x323134: testing::TestSuite::Run() (gtest.cc:2990)
==19476== by 0x323859: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5722)
==19476== Block was alloc'd at
==19476== at 0x4838A16: calloc (in /usr/lib/i386-linux-gnu/valgrind/vgpreload_memcheck-x86-linux.so)
==19476== by 0x587F481: draw_create_vs_llvm (draw_vs_llvm.c:90)
==19476== by 0x57DF1CE: draw_create_vertex_shader (draw_vs.c:79)
==19476== by 0x571ABD5: r300_draw_init_vertex_shader (r300_vs_draw.c:365)
==19476== by 0x571265D: r300_create_vs_state (r300_state.c:1986)
==19476== by 0x56ACE2A: nine_ureg_create_shader (nine_shader.c:4043)
==19476== by 0x56D30A7: nine_create_shader_with_so_and_destroy (nine_shader.c:4057)
==19476== by 0x56D30A7: nine_translate_shader (nine_shader.c:4274)
==19476== by 0x56EFBD2: NineVertexShader9_ctor.part.0 (vertexshader9.c:78)
==19476== by 0x56F0BCE: NineVertexShader9_ctor (vertexshader9.c:53)
==19476== by 0x56F0BCE: NineVertexShader9_new (vertexshader9.c:314)
==19476== by 0x5651D55: NineDevice9_CreateVertexShader (device9.c:3486)
==19476== by 0x1ABD6D: test_shademode() (NineTests.cpp:8352)
==19476== by 0x2E3F82: Xnine_shademode_Test::TestBody() (NineTests.cpp:23917)
==19476==
==19476== Invalid read of size 4
==19476== at 0x57C1E7D: draw_is_vs_window_space (draw_context.c:266)
==19476== by 0x57C1E7D: draw_update_clip_flags (draw_context.c:275)
==19476== by 0x571365F: r300_bind_rs_state (r300_state.c:1371)
==19476== by 0x57F9248: blitter_set_common_draw_rect_state (u_blitter.c:1385)
==19476== by 0x57FD7B6: util_blitter_blit_generic (u_blitter.c:2223)
==19476== by 0x57FE8BF: util_blitter_blit (u_blitter.c:2263)
==19476== by 0x573A4C8: r300_blit (r300_blit.c:879)
==19476== by 0x56E9EDB: present (swapchain9.c:881)
==19476== by 0x56E9EDB: NineSwapChain9_Present (swapchain9.c:981)
==19476== by 0x564FAF9: NineDevice9_Present (device9.c:1083)
==19476== by 0x1ACFCB: test_shademode() (NineTests.cpp:8433)
==19476== by 0x2E3F82: Xnine_shademode_Test::TestBody() (NineTests.cpp:23917)
==19476== by 0x32F169: HandleSehExceptionsInMethodIfSupported<testing::Test, void> (gtest.cc:2605)
==19476== by 0x32F169: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2641)
==19476== by 0x322976: Run (gtest.cc:2680)
==19476== by 0x322976: testing::Test::Run() (gtest.cc:2670)
==19476== Address 0x11d302f4 is 3,204 bytes inside a block of size 3,424 free'd
==19476== at 0x4837867: free (in /usr/lib/i386-linux-gnu/valgrind/vgpreload_memcheck-x86-linux.so)
==19476== by 0x587F436: vs_llvm_delete (draw_vs_llvm.c:82)
==19476== by 0x571079B: r300_delete_vs_state (r300_state.c:2045)
==19476== by 0x56EFF92: NineVertexShader9_dtor (vertexshader9.c:145)
==19476== by 0x565C59C: NineUnknown_Release (iunknown.c:148)
==19476== by 0x1ACFA4: test_shademode() (NineTests.cpp:8430)
==19476== by 0x2E3F82: Xnine_shademode_Test::TestBody() (NineTests.cpp:23917)
==19476== by 0x32F169: HandleSehExceptionsInMethodIfSupported<testing::Test, void> (gtest.cc:2605)
==19476== by 0x32F169: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2641)
==19476== by 0x322976: Run (gtest.cc:2680)
==19476== by 0x322976: testing::Test::Run() (gtest.cc:2670)
==19476== by 0x322B08: Run (gtest.cc:2857)
==19476== by 0x322B08: testing::TestInfo::Run() (gtest.cc:2830)
==19476== by 0x323134: Run (gtest.cc:3011)
==19476== by 0x323134: testing::TestSuite::Run() (gtest.cc:2990)
==19476== by 0x323859: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:5722)
==19476== Block was alloc'd at
==19476== at 0x4838A16: calloc (in /usr/lib/i386-linux-gnu/valgrind/vgpreload_memcheck-x86-linux.so)
==19476== by 0x587F481: draw_create_vs_llvm (draw_vs_llvm.c:90)
==19476== by 0x57DF1CE: draw_create_vertex_shader (draw_vs.c:79)
==19476== by 0x571ABD5: r300_draw_init_vertex_shader (r300_vs_draw.c:365)
==19476== by 0x571265D: r300_create_vs_state (r300_state.c:1986)
==19476== by 0x56ACE2A: nine_ureg_create_shader (nine_shader.c:4043)
==19476== by 0x56D30A7: nine_create_shader_with_so_and_destroy (nine_shader.c:4057)
==19476== by 0x56D30A7: nine_translate_shader (nine_shader.c:4274)
==19476== by 0x56EFBD2: NineVertexShader9_ctor.part.0 (vertexshader9.c:78)
==19476== by 0x56F0BCE: NineVertexShader9_ctor (vertexshader9.c:53)
==19476== by 0x56F0BCE: NineVertexShader9_new (vertexshader9.c:314)
==19476== by 0x5651D55: NineDevice9_CreateVertexShader (device9.c:3486)
==19476== by 0x1ABD6D: test_shademode() (NineTests.cpp:8352)
==19476== by 0x2E3F82: Xnine_shademode_Test::TestBody() (NineTests.cpp:23917)