Bug 45885

Summary: [PNV]oglc depth-stencil(advanced.packed_depth_stencil_int.shader1D) regressed
Product: Mesa Reporter: fangxun <xunx.fang>
Component: Drivers/DRI/i915Assignee: Ian Romanick <idr>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: high    
Version: git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 42993    

Description fangxun 2012-02-10 03:50:50 UTC
System Environment:
--------------------------
Arch:           i386
Platform:       Pineview
Libdrm:         (master)2.4.31-1-g2cfac57d364d0166ed9472b086c16aea376f495a
Mesa:           (8.0)e86d90eb208292916c8a04c5d75499492003dd16
Xserver:      (server-1.11-branch)xorg-server-1.11.3
Xf86_video_intel:  (master)2.17.0-644-g4d8369f8e60fd4f5a0ef49f3e9866ea5ecb21927
Kernel:         (drm-intel-fixes) 617cf884810b44384fe8e9431e9babeb80a2ff37

Bug detailed description:
------------------------- 
It segfaults at mesa 8.0 branch on pineview. It also segfaults on mesa master branch. Below cases also segfault:
depth-stencil(advanced.packed_depth_stencil_int.shader1D)
depth-stencil(advanced.packed_depth_stencil_int.shader2D) 
depth-stencil(advanced.packed_depth_stencil_int.shader1D_sized) 
(depth-stencil(advanced.packed_depth_stencil_int.shader2D_sized)
Following case fails on pineview:
(GL30)depth-stencil(advanced.packed_depth_stencil_border)
 
Bisect fails due to some mesa commit build failure. The last known bad commit is
Mesa(8.0)c85402aba91755808729fadf57a9f92285f4e61a, the last known good commit is Mesa(7.11)7722a54e60c9da080b557d6596e4c9d363ead515.

(gdb) bt
#0  0xb7c211da in fetch_texel_1d_f_s8_z24 (texImage=0x9f92548, i=32, j=0, k=0, texel=0xbfff8c8c) at swrast/s_texfetch_tmp.h:1520
#1  0xb7c29f52 in sample_depth_texture (ctx=0x9d9e5a8, tObj=0x9f92200, n=1, texcoords=0xbfff8d98, lambda=0xbfff8ce8, texel=0xbfff8da8) at swrast/s_texfilter.c:3460
#2  0xb7bd99cb in vp_fetch_texel (ctx=0x9d9e5a8, texcoord=0xbfff8d98, lambda=0, unit=0, color=0xbfff8da8) at tnl/t_vb_program.c:200
#3  0xb7c027d9 in fetch_texel (ctx=0x9d9e5a8, program=0xa0e33b8, machine=0x9f57540) at program/prog_execute.c:408
#4  _mesa_execute_program (ctx=0x9d9e5a8, program=0xa0e33b8, machine=0x9f57540) at program/prog_execute.c:1662
#5  0xb7bd9e45 in run_vp (ctx=0x9d9e5a8, stage=0x9e15ac8) at tnl/t_vb_program.c:392
#6  0xb7bd8693 in _tnl_run_pipeline (ctx=0x9d9e5a8) at tnl/t_pipeline.c:163
#7  0xb7aff3a0 in intelRunPipeline (ctx=0x9d9e5a8) at intel_tris.c:1095
#8  0xb7bd8c98 in _tnl_draw_prims (ctx=0x9d9e5a8, arrays=0x9e037b0, prim=0x9e02098, nr_prims=1, ib=0x0, min_index=0, max_index=3) at tnl/t_draw.c:523
#9  0xb7bd9969 in _tnl_vbo_draw_prims (ctx=0x9d9e5a8, arrays=0x9e037b0, prim=0x9e02098, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=3,
    tfb_vertcount=0x0) at tnl/t_draw.c:423
#10 0xb7bc992a in vbo_exec_vtx_flush (exec=0x9e01c78, keepUnmapped=1 '\001') at vbo/vbo_exec_draw.c:407
#11 0xb7bc5d27 in vbo_exec_FlushVertices_internal (exec=0x9e01c78, unmap=<value optimized out>) at vbo/vbo_exec_api.c:444
#12 0xb7bc5d5f in vbo_exec_FlushVertices (ctx=0x9d9e5a8, flags=1) at vbo/vbo_exec_api.c:1195
#13 0xb7b81d97 in use_shader_program (ctx=<value optimized out>, type=<value optimized out>, shProg=0x0) at main/shaderapi.c:881
#14 0xb7b8226f in _mesa_use_program (ctx=0x9d9e5a8, shProg=0x0) at main/shaderapi.c:922
#15 0xb7b826a2 in _mesa_UseProgramObjectARB (program=0) at main/shaderapi.c:1433
#16 0x08124828 in CreateAndRunShaderDS(unsigned int, unsigned int, unsigned char) ()
#17 0x08125412 in DSShaderTest(DSTestContext*) ()
#18 0x08127a03 in DSExec(testParameters*) ()
#19 0x08e11998 in callFunctionHandleExceptionsInner(long (*)(testParameters*), testParameters*, char*) ()
#20 0x08e11ae7 in callFunctionHandleExceptions(long (*)(testParameters*), testParameters*) ()
#21 0x08e10599 in DriverExec(long (*)(testParameters*), testParameters*) ()
#22 0x08df1959 in Driver(std::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, std::vector<driverRec*, std::allocator<driverRec*> > const&, std::vector<boost::shared_ptr<PrePostTestAction>, std::allocator<boost::shared_ptr<PrePostTestAction> > > const&, std::vector<boost::shared_ptr<PrePostTestcaseAction>, std::allocator<boost::shared_ptr<PrePostTestcaseAction> > > const&) ()
#23 0x08df1d6e in (anonymous namespace)::MyMessagePump::idle() ()
#24 0x08dc4b6a in MessagePump::process_messages() ()
#25 0x08df25b8 in ExecutionManager::execute_schedules() ()
#26 0x08d7edeb in tkShellExecute(std::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&, std::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&) ()
#27 0x08d88552 in main ()


Reproduce steps:
----------------
1. start X
2. ./oglconform -z -s -suite all -v 2 -test depth-stencil advanced.packed_depth_stencil_int.shader1D
Comment 1 Ian Romanick 2012-02-10 15:29:01 UTC
This test did not previously pass, but it also did not previously crash.

Some analysis has shown that the bad mapping of vertex textures (see bug #45882) is at fault here as well.  I'm closing this bug as a duplicate of that bug.

*** This bug has been marked as a duplicate of bug 45882 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.