Bug 28395 - [llvmpipe] src/gallium/drivers/llvmpipe/lp_screen.c:168:llvmpipe_get_param: Assertion `0' failed.
Summary: [llvmpipe] src/gallium/drivers/llvmpipe/lp_screen.c:168:llvmpipe_get_param: A...
Status: CLOSED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium blocker
Assignee: Dave Airlie
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-05 00:38 UTC by Vinson Lee
Modified: 2010-06-07 12:36 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2010-06-05 00:38:41 UTC
mesa: 42ebe3dfd9b0803913e0d932909ca5872d937c20 (master)

Run any piglit test.

$ ./bin/crash-cubemap-order
...
src/gallium/drivers/llvmpipe/lp_screen.c:168:llvmpipe_get_param: Assertion `0' failed.

(gdb) bt
#0  0x00d6bdbf in _debug_assert_fail (expr=0x1392381 "0", 
    file=0x1392358 "src/gallium/drivers/llvmpipe/lp_screen.c", line=168, function=0x13925a0 "llvmpipe_get_param")
    at src/gallium/auxiliary/util/u_debug.c:233
#1  0x00b39bfa in llvmpipe_get_param (screen=0x9df0bf0, param=PIPE_CAP_TEXTURE_SWIZZLE)
    at src/gallium/drivers/llvmpipe/lp_screen.c:168
#2  0x00cabcc9 in st_init_extensions (st=0xa6bfe08) at src/mesa/state_tracker/st_extensions.c:251
#3  0x00ca9534 in st_create_context_priv (ctx=0xa67e598, pipe=0x9e23fa0)
    at src/mesa/state_tracker/st_context.c:150
#4  0x00ca9616 in st_create_context (pipe=0x9e23fa0, visual=0xbfcd4ff4, share=0x0)
    at src/mesa/state_tracker/st_context.c:184
#5  0x00c337d0 in st_api_create_context (stapi=0x147e5f8, smapi=0x9e23040, visual=0x9e23d54, shared_stctxi=0x0)
    at src/mesa/state_tracker/st_manager.c:618
#6  0x00b8474a in XMesaCreateContext (v=0x9e23c70, share_list=0x0)
    at src/gallium/state_trackers/glx/xlib/xm_api.c:814
#7  0x00b87b78 in glXCreateContext (dpy=0x9de5a70, visinfo=0x9e23d70, share_list=0x0, direct=1)
    at src/gallium/state_trackers/glx/xlib/glx_api.c:1059
#8  0x002607f8 in __glutCreateWindow (parent=0x0, x=0, y=0, width=100, height=100, gameMode=0)
    at src/glut/glx/glut_win.c:609
#9  0x00260bf0 in glutCreateWindow (title=0xbfcd55c9 "./bin/crash-cubemap-order") at src/glut/glx/glut_win.c:731
#10 0x0804a0f3 in main (argc=1, argv=0xbfcd5354) at piglit/tests/bugs/crash-cubemap-order.c:49

(gdb) frame 1
#1  0x00b39bfa in llvmpipe_get_param (screen=0x9df0bf0, param=PIPE_CAP_TEXTURE_SWIZZLE)
    at src/gallium/drivers/llvmpipe/lp_screen.c:168
168	      assert(0);
(gdb) l
163	   case PIPE_CAP_MAX_FS_PREDS:
164	      return LP_MAX_TGSI_PREDS;
165	   case PIPE_CAP_DEPTHSTENCIL_CLEAR_SEPARATE:
166	      return 1;
167	   default:
168	      assert(0);
169	      return 0;
170	   }
171	}
172
Comment 1 Vinson Lee 2010-06-05 01:02:36 UTC
42ebe3dfd9b0803913e0d932909ca5872d937c20 is the first bad commit
commit 42ebe3dfd9b0803913e0d932909ca5872d937c20
Author: Dave Airlie <airlied@redhat.com>
Date:   Tue Apr 27 21:06:44 2010 +1000

    mesa/st: add support for EXT_texture_swizzle.
    
    This passes on r300g, the only bit I'm not really sure about is the handling
    of the sampler_view in st_atom_texture.c, I unreference it there if the swizzle
    value changes and I also have to create a new set of functions to create a new
    one since the u_sampler.c ones don't handle swizzle so much.
    
    adds r300g + softpipe enables, I think other drivers could pass easily enough.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

:040000 040000 1f820317789be234f75670e541addc0837a0fca0 5bbe2aea2a627d23d8fff0e98dd0e2dc45e840de M	src
bisect run success
Comment 2 Brian Paul 2010-06-07 08:31:54 UTC
This was fixed as of Mesa commit acb20e7208341fb6a2b81ac10aa01f17e93a1dea
Comment 3 Vinson Lee 2010-06-07 12:36:29 UTC
mesa: b4483823d9c1205fb9ab8cf5b4c36ee610347a36 (master)

Verified fixed.


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.