Skip to contentSkip to conversation

New: [r300g] Compiz fails to start using gallium on rv350.

Bug 28003 [email protected] 1 participant 11 messages May 6, 2010 – May 10, 2010

lore
Share & tools
lore
#0 lore raw

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

Summary: [r300g] Compiz fails to start using gallium on rv350.
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

Compiz will only start with GALLIUM_ABORT_ON_ASSERT=0 or it crashes. I bisected and on current master 7ed2f953c0b109d35ddb4c58effb18bd0fac4592 the message is:

r300: Implementation error: Format mismatch in r300_surface_copy

    : src: b8g8r8a8_unorm dst: b8g8r8x8_unorm

r300_blit.c:134:r300_surface_copy: Assertion `0' failed.
debug_get_bool_option: GALLIUM_ABORT_ON_ASSERT = TRUE

while with the first bad commit found 968bf9634ec03e61441834603f13f0c914bbb0ce the message is:

r300_blit.c:136:r300_surface_copy: Assertion `dst->texture->format == src->texture->format' failed.
debug_get_bool_option: GALLIUM_ABORT_ON_ASSERT = TRUE

This last good commit is: 821abff8c03031603111abc17dabe7cfa28a31e1

I will provide any further requested information.

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 28003] [r300g] Compiz fails to start using gallium on rv350.

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

--- Comment #1 from Marek Olšák <[email protected]> 2010-05-06 15:24:58 PDT --- This is a state tracker bug. We shouldn't get two different formats in surface_copy.

Could you please give me a backtrace?

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
#2 lore raw

[Bug 28003] [r300g] Compiz fails to start using gallium on rv350.

In reply to [email protected]

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

--- Comment #2 from Scott Moreau <[email protected]> 2010-05-06 19:43:42 PDT --- Created an attachment (id=35476)
--> (https://bugs.freedesktop.org/attachment.cgi?id=35476)
compiz output

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 28003] [r300g] Compiz fails to start using gallium on rv350.

In reply to [email protected]

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

Michel Dänzer <[email protected]> changed:

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

--- Comment #3 from Michel Dänzer <[email protected]> 2010-05-07 00:49:58 PDT --- (In reply to comment #1)

Quoted 2 lines

This is a state tracker bug. We shouldn't get two different formats in surface_copy.

Indeed. There should never be a need for copies for texture-from-pixmap anyway, should probably use a sampler view.

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
#4 lore raw

[Bug 28003] [r300g] Compiz fails to start using gallium on rv350.

In reply to [email protected]

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

Chia-I Wu <[email protected]> changed:

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

--- Comment #4 from Chia-I Wu <[email protected]> 2010-05-07 01:53:20 PDT --- (In reply to comment #3)

Quoted 2 lines

Indeed. There should never be a need for copies for texture-from-pixmap anyway, should probably use a sampler view.

The assertion failure is hit when using an RGBA pixmap as an RGB texture. It was discussed here

http://www.mail-archive.com/[email protected]/msg12992.html

and using a sampler view should be the correct fix to my knowledge.

I might not be able to find the time to work on it anytime soon. If no one volunteers, setting GLX_BIND_TO_TEXTURE_RGB_EXT to GLX_FALSE for RGBA visuals should be a valid workaround, if compiz does check the attribute.

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 28003] [r300g] Compiz fails to start using gallium on rv350.

In reply to [email protected]

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

--- Comment #5 from Michel Dänzer <[email protected]> 2010-05-07 02:18:21 PDT --- (In reply to comment #4)

Quoted 1 line

I might not be able to find the time to work on it anytime soon.

FWIW I think it's a regression of one of your EGL reworks though.

Quoted 2 lines

If no one volunteers, setting GLX_BIND_TO_TEXTURE_RGB_EXT to GLX_FALSE for RGBA visuals should be a valid workaround, if compiz does check the attribute.

I suspect that would take about the same amount of work, and I wouldn't consider it very useful (not sure if compiz/kwin/... could even handle it).

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
#6 lore raw

[Bug 28003] [r300g] Compiz fails to start using gallium on rv350.

In reply to [email protected]

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

--- Comment #6 from Chia-I Wu <[email protected]> 2010-05-07 03:11:11 PDT --- Created an attachment (id=35484)
View: https://bugs.freedesktop.org/attachment.cgi?id=35484
Review: https://bugs.freedesktop.org/review?bug=28003&attachment=35484

work around the assertion failure

Does this patch help? It effectively reverts 968bf9634ec03e61441834603f13f0c914bbb0ce by ignoring internal_format in st/mesa. It is better than reverting the commit in that the workaround is closer to the bug (both in st/mesa).

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 28003] [r300g] Compiz fails to start using gallium on rv350.

In reply to [email protected]

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

--- Comment #7 from Chia-I Wu <[email protected]> 2010-05-07 03:19:48 PDT --- (In reply to comment #5)

Quoted 10 lines

(In reply to comment #4)

Quoted 1 line

I might not be able to find the time to work on it anytime soon.

FWIW I think it's a regression of one of your EGL reworks though.

Quoted 2 lines

If no one volunteers, setting GLX_BIND_TO_TEXTURE_RGB_EXT to GLX_FALSE for RGBA visuals should be a valid workaround, if compiz does check the attribute.

I suspect that would take about the same amount of work, and I wouldn't consider it very useful (not sure if compiz/kwin/... could even handle it).

Ok, I've created a patch to work around the bug triggered by 968bf963. It restores the old (and wrong) behavior, but with comments. Could you or Scott help me verify the patch?

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 28003] [r300g] Compiz fails to start using gallium on rv350.

In reply to [email protected]

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

--- Comment #8 from Chia-I Wu <[email protected]> 2010-05-07 03:23:55 PDT --- (In reply to comment #7)

Quoted 2 lines

Ok, I've created a patch to work around the bug triggered by 968bf963. It restores the old (and wrong) behavior, but with comments. Could you or Scott

                    ^^^^^^^^^

I meant, "wrong, but better than the assertion failure". I am sorry to introduce the regression in the first place.

Quoted 1 line

help me verify the patch?

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 28003] [r300g] Compiz fails to start using gallium on rv350.

In reply to [email protected]

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

--- Comment #9 from Scott Moreau <[email protected]> 2010-05-08 17:24:56 PDT --- (In reply to comment #8)

Quoted 7 lines

(In reply to comment #7)

Quoted 2 lines

Ok, I've created a patch to work around the bug triggered by 968bf963. It restores the old (and wrong) behavior, but with comments. Could you or Scott

                    ^^^^^^^^^

I meant, "wrong, but better than the assertion failure". I am sorry to introduce the regression in the first place.

Quoted 1 line

help me verify the patch?

Thanks for everyones replies. I applied the patch against latest master and it works around the issue. I enabled ccsm>Workarounds>Force Sync Between X and GLX because of redraw/refresh issues using firefox but still having problems with it though compiz works without any warnings or errors.

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 28003] [r300g] Compiz fails to start using gallium on rv350.

In reply to [email protected]

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

Chia-I Wu <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #10 from Chia-I Wu <[email protected]> 2010-05-09 20:31:04 PDT --- Thanks for testing. I've committed the patch and am closing the bug. Feel free to open a new bug if you have other issues.

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.