All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 83432] New: r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD]
@ 2014-09-03 10:47 bugzilla-daemon
  2014-09-03 12:00 ` [Bug 83432] " bugzilla-daemon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2014-09-03 10:47 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 3708 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=83432

          Priority: medium
            Bug ID: 83432
          Assignee: dri-devel@lists.freedesktop.org
           Summary: r600_query.c:269:r600_emit_query_end: Assertion
                    `ctx->num_pipelinestat_queries > 0' failed [Gallium
                    HUD]
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: lil_tux@web.de
          Hardware: All
            Status: NEW
           Version: git
         Component: Drivers/Gallium/r600
           Product: Mesa

Created attachment 105675
  --> https://bugs.freedesktop.org/attachment.cgi?id=105675&action=edit
gdb bt full

r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries
> 0' failed.

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0x7fffead44700 (LWP 30641)]
0x00007ffff0446979 in _debug_assert_fail (expr=0x7ffff072f078
"ctx->num_pipelinestat_queries > 0", file=0x7ffff072efe8 "r600_query.c",
line=269, 
    function=0x7ffff072f210 <__func__.9395> "r600_emit_query_end") at
util/u_debug.c:309
309        os_abort();
(gdb) bt
#0  0x00007ffff0446979 in _debug_assert_fail (expr=0x7ffff072f078
"ctx->num_pipelinestat_queries > 0", file=0x7ffff072efe8 "r600_query.c",
line=269, 
    function=0x7ffff072f210 <__func__.9395> "r600_emit_query_end") at
util/u_debug.c:309
#1  0x00007ffff054882b in r600_emit_query_end (ctx=0xb5ea700, query=0x3a0cc890)
at r600_query.c:269
#2  0x00007ffff0549e05 in r600_suspend_nontimer_queries (ctx=0xb5ea700) at
r600_query.c:805
#3  0x00007ffff05462cf in r600_preflush_suspend_features (ctx=0xb5ea700) at
r600_pipe_common.c:136
#4  0x00007ffff056342a in r600_context_gfx_flush (context=0xb5ea700, flags=1,
fence=0x0) at r600_hw_context.c:253
#5  0x00007ffff0562f2f in r600_need_cs_space (ctx=0xb5ea700, num_dw=16393,
count_draw_in=1 '\001') at r600_hw_context.c:96
#6  0x00007ffff0596077 in r600_need_gfx_cs_space (ctx=0xb5ea700, num_dw=16,
include_draw_vbo=true) at r600_state_common.c:2396
#7  0x00007ffff05482fe in r600_emit_query_begin (ctx=0xb5ea700,
query=0x3a0cc890) at r600_query.c:162
#8  0x00007ffff0549ec4 in r600_resume_nontimer_queries (ctx=0xb5ea700) at
r600_query.c:817
#9  0x00007ffff0560806 in r600_blitter_end (ctx=0xb5ea700) at r600_blit.c:99
#10 0x00007ffff056106c in r600_blit_decompress_color (ctx=0xb5ea700,
rtex=0x3708fb30, first_level=0, last_level=0, first_layer=0, last_layer=0) at
r600_blit.c:316
#11 0x00007ffff05612ff in r600_decompress_subresource (ctx=0xb5ea700,
tex=0x3708fb30, level=0, first_layer=0, last_layer=0) at r600_blit.c:381
#12 0x00007ffff056276c in r600_blit (ctx=0xb5ea700, info=0x7fffead43800) at
r600_blit.c:812
#13 0x00007ffff0284aff in st_BlitFramebuffer (ctx=0x7fffe2c61010, srcX0=0,
srcY0=0, srcX1=482, srcY1=272, dstX0=0, dstY0=272, dstX1=482, dstY1=0,
mask=16384, filter=9728)
    at ../../src/mesa/state_tracker/st_cb_blit.c:263
#14 0x00007ffff008fec9 in _mesa_BlitFramebuffer (srcX0=0, srcY0=0, srcX1=482,
srcY1=272, dstX0=0, dstY0=272, dstX1=482, dstY1=0, mask=16384, filter=9728) at
../../src/mesa/main/blit.c:509
[..]
(gdb) p ctx.num_pipelinestat_queries 
$3 = 0

Looks like resume_nontimer_queries/emit_query_begin is recursing into
suspend_nontimer_queries/emit_query_end


Was running on HD6850 `OpenGL version string: 3.0 Mesa 10.4.0-devel
(git-2adf7ee)'
With
GALLIUM_HUD="fps,draw-calls;samples-passed+primitives-generated;ia-vertices+ia-primitives;vs-invocations+ps-invocations+hs-invocations+ds-invocations;VRAM-usage+GTT-usage"
R600_DEBUG=hyperz. Though, I assume GALLIUM_HUD="fps" could be enough.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 5293 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 83432] r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD]
  2014-09-03 10:47 [Bug 83432] New: r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD] bugzilla-daemon
@ 2014-09-03 12:00 ` bugzilla-daemon
  2014-09-03 12:19 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2014-09-03 12:00 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 343 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=83432

--- Comment #1 from Marek Olšák <maraeo@gmail.com> ---
Created attachment 105678
  --> https://bugs.freedesktop.org/attachment.cgi?id=105678&action=edit
possible fix

Could you please test this patch?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1457 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 83432] r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD]
  2014-09-03 10:47 [Bug 83432] New: r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD] bugzilla-daemon
  2014-09-03 12:00 ` [Bug 83432] " bugzilla-daemon
@ 2014-09-03 12:19 ` bugzilla-daemon
  2014-09-03 16:25 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2014-09-03 12:19 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 620 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=83432

Marek Olšák <maraeo@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #105678|0                           |1
        is obsolete|                            |

--- Comment #2 from Marek Olšák <maraeo@gmail.com> ---
Created attachment 105679
  --> https://bugs.freedesktop.org/attachment.cgi?id=105679&action=edit
possible fix 2

Please try this instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2320 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 83432] r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD]
  2014-09-03 10:47 [Bug 83432] New: r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD] bugzilla-daemon
  2014-09-03 12:00 ` [Bug 83432] " bugzilla-daemon
  2014-09-03 12:19 ` bugzilla-daemon
@ 2014-09-03 16:25 ` bugzilla-daemon
  2014-09-03 17:05 ` bugzilla-daemon
  2014-09-04 14:16 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2014-09-03 16:25 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 452 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=83432

--- Comment #3 from Heiko <lil_tux@web.de> ---
(In reply to comment #2)
> Created attachment 105679 [details] [review]
> possible fix 2
> 
> Please try this instead.

Hello Marek, the patch seems to resolve the issue. Didn't hit the assertion
anymore. The patch does also affect the non-statistics/non-hud path, doesn't
it?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1682 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 83432] r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD]
  2014-09-03 10:47 [Bug 83432] New: r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD] bugzilla-daemon
                   ` (2 preceding siblings ...)
  2014-09-03 16:25 ` bugzilla-daemon
@ 2014-09-03 17:05 ` bugzilla-daemon
  2014-09-04 14:16 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2014-09-03 17:05 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 303 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=83432

--- Comment #4 from Marek Olšák <maraeo@gmail.com> ---
Yes, it does, but you have to really lucky and have a lot of queries active to
be able to hit the assertion.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1216 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 83432] r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD]
  2014-09-03 10:47 [Bug 83432] New: r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD] bugzilla-daemon
                   ` (3 preceding siblings ...)
  2014-09-03 17:05 ` bugzilla-daemon
@ 2014-09-04 14:16 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2014-09-04 14:16 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 548 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=83432

Marek Olšák <maraeo@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Marek Olšák <maraeo@gmail.com> ---
Fixed by 3dbf55c1be5a8867616e475d943c776d8245d0c. Closing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2229 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-04 14:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-03 10:47 [Bug 83432] New: r600_query.c:269:r600_emit_query_end: Assertion `ctx->num_pipelinestat_queries > 0' failed [Gallium HUD] bugzilla-daemon
2014-09-03 12:00 ` [Bug 83432] " bugzilla-daemon
2014-09-03 12:19 ` bugzilla-daemon
2014-09-03 16:25 ` bugzilla-daemon
2014-09-03 17:05 ` bugzilla-daemon
2014-09-04 14:16 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.