Skip to contentSkip to conversation

New: [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

Bug 27729 [email protected] 1 participant 24 messages Apr 19, 2010 – May 19, 2010

lore
Share & tools
lore
#0 lore raw

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

           Summary: [r300g - RV530] main/mipmap.c:144: do_row: Assertion
                    `comps >= 1' failed
           Product: Mesa
           Version: git
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: Drivers/DRI/r300
        AssignedTo: [email protected]
        ReportedBy: [email protected]

Created an attachment (id=35152)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35152)
Command line output + backtrace

Using r300g up to 57e71b85020fff33d3e5701d0ef61e9fb84b0af4 the game 0ad crashes with:
pyrogenesis: main/mipmap.c:144: do_row: Assertion `comps >= 1' failed.

This seems a different problem than bug #27634 and could maybe be a mesa core problem. Command line output + backtrace is attached.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

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

--- Comment #1 from Brian Paul <[email protected]> 2010-04-19 08:56:59 PDT --- I suspect this is a problem with compressed textures.

Can you go up the stack trace into fallback_generate_mipmap() and print the value of texObj->Image[face][baseLevel]->TexFormat ?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #2 from Fabio Pedretti <[email protected]> 2010-04-20 01:52:18 PDT --- (In reply to comment #1)

Quoted 4 lines

I suspect this is a problem with compressed textures.

Can you go up the stack trace into fallback_generate_mipmap() and print the value of texObj->Image[face][baseLevel]->TexFormat ?

(gdb) print texObj->Image[face][baseLevel]->TexFormat $1 = 45

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #3 from Fabio Pedretti <[email protected]> 2010-04-26 02:13:56 PDT --- Created an attachment (id=35287)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35287)
updated r300g backtrace

It now crashes with a different assertion (backtrace attached for both r300g and swrastg).

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #4 from Fabio Pedretti <[email protected]> 2010-04-26 02:14:33 PDT --- Created an attachment (id=35288)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35288)
swrastg backtrace

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #5 from Fabio Pedretti <[email protected]> 2010-04-26 02:16:19 PDT --- Note that I have libtxc_dxtn.so installed, but it crashes with different bt even without it.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #6 from Brian Paul <[email protected]> 2010-04-27 07:30:15 PDT --- I think I have this fixed now. Can you re-test with mesa commit db14a8022a2a957c83b1fe33a84af3cdb1952d68 or later?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #7 from Fabio Pedretti <[email protected]> 2010-04-27 08:31:26 PDT --- (In reply to comment #6)

Quoted 2 lines

I think I have this fixed now. Can you re-test with mesa commit db14a8022a2a957c83b1fe33a84af3cdb1952d68 or later?

With 7567f05199f1ca114cc57e3a11ac101d3707f819 it's still crashing with the same backtraces of comment #3 and comment #4.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #8 from Brian Paul <[email protected]> 2010-04-27 08:43:18 PDT --- Created an attachment (id=35312)
View: https://bugs.freedesktop.org/attachment.cgi?id=35312
Review: https://bugs.freedesktop.org/review?bug=27729&attachment=35312

patch for r300g is_format_supported()

Here's a patch for r300g (totally untested) that might help. If it doesn't, maybe you could debug further and fix the patch.

I think the softpipe bug is something else. Could you provide the values of the vars at the failure point?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #9 from Fabio Pedretti <[email protected]> 2010-04-27 09:03:57 PDT --- (In reply to comment #8)

Quoted 1 line

Created an attachment (id=35312)

View: https://bugs.freedesktop.org/attachment.cgi?id=35312
Review: https://bugs.freedesktop.org/review?bug=27729&attachment=35312

Quoted 4 lines

patch for r300g is_format_supported()

Here's a patch for r300g (totally untested) that might help. If it doesn't, maybe you could debug further and fix the patch.

OK, with that patch r300g now crashes similar to swrastg.

Quoted 2 lines

I think the softpipe bug is something else. Could you provide the values of the vars at the failure point?

(gdb) p index
$2 = 1
(gdb) p t->psizoutindex
$3 = -1
(gdb) p t->prevInstWrotePsiz
$4 = 0 '\000'
(gdb) p t->outputMapping[index]
$5 = 19828484

Other vars?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #10 from Fabio Pedretti <[email protected]> 2010-04-27 09:13:58 PDT ---

Quoted 10 lines

(gdb) p index
$2 = 1
(gdb) p t->psizoutindex
$3 = -1
(gdb) p t->prevInstWrotePsiz
$4 = 0 '\000'
(gdb) p t->outputMapping[index]
$5 = 19828484

Other vars?

That was with r300g. With swrastg:
(gdb) p t->outputMapping[index]
$1 = 19617796

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#11 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #11 from Brian Paul <[email protected]> 2010-04-27 15:16:15 PDT --- Can you do "export ST_DEBUG=mesa,tgsi" and re-run? That should print the GPU instructions to stderr. Please attach that output to the bug report. Thanks.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #12 from Fabio Pedretti <[email protected]> 2010-04-28 01:16:27 PDT --- Created an attachment (id=35316)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35316)
swrastg debug output with "ST_DEBUG=mesa,tgsi"

(In reply to comment #11)

Quoted 2 lines

Can you do "export ST_DEBUG=mesa,tgsi" and re-run? That should print the GPU instructions to stderr. Please attach that output to the bug report. Thanks.

Output with swrastg and mesa up to 37e98e5cd217075d58456753ed8450dc116fe32c is attached.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#13 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

--- Comment #13 from Brian Paul <[email protected]> 2010-04-28 09:27:29 PDT --- I've moved some of the debug code to get more useful info from "ST_DEBUG=mesa,tgsi".

Can you repeat the test with the latest Mesa code (commit ce0844b44cb3924323ed1fd2b75cda4dbd0013c7) or later? Thanks.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#14 lore raw

[Bug 27729] [r300g - RV530] main/mipmap.c:144: do_row: Assertion `comps >= 1' failed

In reply to [email protected]

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

Fabio Pedretti <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #35316|0                           |1

is obsolete| |

--- Comment #14 from Fabio Pedretti <[email protected]> 2010-04-29 01:03:47 PDT --- Created an attachment (id=35327)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35327)
swrastg debug output with "ST_DEBUG=mesa,tgsi"

Anyway you may also want to try the game yourself from
http://trac.wildfiregames.com/wiki/LatestRelease since it appears it will be a common open source game when finished.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 27729] [r300g, mesa] gallium compressed texture problems

In reply to [email protected]

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

Fabio Pedretti <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|[r300g - RV530]             |[r300g, mesa] gallium
                   |main/mipmap.c:144: do_row:  |compressed texture problems
                   |Assertion `comps >= 1'      |
                   |failed                      |
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#16 lore raw

[Bug 27729] [r300g, mesa] gallium compressed texture problems

In reply to [email protected]

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

Fabio Pedretti <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #15 from Fabio Pedretti <[email protected]> 2010-04-29 01:11:49 PDT --- In the meantime 95bfc8f32571751c5c9ec6d8e84f5e3c28d1b20e has been committed from Marek Olšák which is a subset of attached "patch for r300g is_format_supported()", but which appears to also fix the r300g problem.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#17 lore raw

[Bug 27729] [r300g, mesa] gallium compressed texture problems

In reply to [email protected]

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

--- Comment #16 from Marek Olšák <[email protected]> 2010-04-29 05:11:00 PDT --- (In reply to comment #15)

Quoted 3 lines

In the meantime 95bfc8f32571751c5c9ec6d8e84f5e3c28d1b20e has been committed from Marek Olšák which is a subset of attached "patch for r300g is_format_supported()", but which appears to also fix the r300g problem.

Yes but the S3TC code appears to be bloody slow, e.g. the TA3D game seems to load a new texture everytime a new GUI element shows up and during that the game basically locks up for 5 seconds with 100% CPU load. This is unbearable.

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#18 lore raw

[Bug 27729] [r300g, mesa] gallium compressed texture problems

In reply to [email protected]

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

Fabio Pedretti <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #35152|0                           |1

is obsolete| |

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#19 lore raw

[Bug 27729] [r300g, mesa] gallium compressed texture problems

In reply to [email protected]

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

Fabio Pedretti <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #35287|0                           |1

is obsolete| |

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#20 lore raw

[Bug 27729] [r300g, mesa] gallium compressed texture problems

In reply to [email protected]

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

--- Comment #17 from Marek Olšák <[email protected]> 2010-05-08 07:52:40 PDT --- Is this still an issue with current Mesa git?

Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#21 lore raw

[Bug 27729] [r300g, mesa] gallium compressed texture problems

In reply to [email protected]

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

--- Comment #18 from Fabio Pedretti <[email protected]> 2010-05-10 00:43:49 PDT --- Created an attachment (id=35535)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35535)
updated r300g backtrace with ST_DEBUG=mesa,tgsi with mesa 7c5e2672

(In reply to comment #17)

Quoted 1 line

Is this still an issue with current Mesa git?

With mesa up to 7c5e2672f050644bcab6902b11d0ff4036603bb3 both r300g and swrast are still crashing, but now in a different way. Game log + backtrace are attached.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#22 lore raw

[Bug 27729] [r300g, mesa] gallium compressed texture problems

In reply to [email protected]

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

--- Comment #19 from Fabio Pedretti <[email protected]> 2010-05-10 00:44:24 PDT --- Created an attachment (id=35536)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35536)
updated swrastg backtrace with ST_DEBUG=mesa,tgsi with mesa 7c5e2672

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#23 lore raw

[Bug 27729] [r300g, mesa] gallium compressed texture problems

In reply to [email protected]

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

Fabio Pedretti <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #20 from Fabio Pedretti <[email protected]> 2010-05-19 00:40:21 PDT --- This appears to be fixed, the game is however still crashing later, see bug #28169.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.