Skip to contentSkip to conversation

About 700 piglit regressions is what could go wrong

Bug 92900 [email protected] 1 participant 8 messages Nov 11, 2015 – Nov 17, 2015

lore
Share & tools
lore

[email protected]

author Acked-by Marek Olšák
#0 lore raw

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

Bug ID: 92900
Summary: [regression bisected] About 700 piglit regressions is
what could go wrong
Product: Mesa
Version: 11.0
Hardware: x86-64 (AMD64)
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/R100
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

About 700 piglit tests regressed on r100. This includes, but is not limited to:

All 648 subcases of clipflat
fbo-1d
fbo-clearmipmap
fbo-sys-sub-blit
gen-nonzero-unit
...

At least fbo-clearmipmap bisected to the following commit. I did this bisect using 'git bisect run' with that one test, and I haven't verified all the others yet.

Tested on:

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV200 [Radeon 7500/7500 LE]

This commit is in Mesa 11.0.

d21320f6258b2e1780a15c1ca718963d8a15ca18 is the first bad commit commit d21320f6258b2e1780a15c1ca718963d8a15ca18

Author: Roland Scheidegger <[email protected]>
Date:   Thu Jul 16 03:18:20 2015 +0200

radeon: fix some potential big endian issues

The formats chosen (both by texture format choser, fbo storage allocation) are different for big endian not just for rgba8 but also lower bit width formats (why I don't actually know). Even the function to test for
renderable
formats used different formats, however the actual colorbuffer setup did
not.
And the blitter did not take that into account neither. Untested (what could possibly go wrong...).

Signature · 2 lines
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

#1 lore raw

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

--- Comment #1 from Roland Scheidegger <[email protected]> --- Oops, my bad...
This commit was based on code analysis (and some reports that things don't quite work on big endian) - texturing and backend doing completely different things wrt le/be. But for the LE case I don't really see any actual differences. Except maybe the missing case for MESA_FORMAT_B8G8R8X8_UNORM in blitter setup - the tx_table doesn't contain it because it's never chosen by the texture format chooser (albeit the same blit code still tries to handle it for backend setup, and we don't skip it above, so that's slightly buggy). Maybe we still get this by the winsys buffers? If so adding it to the tx_table might be necessary. I can't actually test this, though...

Signature · 2 lines
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
In reply to [email protected]

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

--- Comment #2 from Marek Olšák <[email protected]> ---
If there are no simple way to fix this, the best course of action is to revert the commit.

Signature · 2 lines
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

#3 lore raw
In reply to [email protected]

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

--- Comment #3 from Roland Scheidegger <[email protected]> --- (In reply to Marek Olšák from comment #2)

Quoted 2 lines

If there are no simple way to fix this, the best course of action is to revert the commit.

Well if it's the missing B8G8R8X8 stuff this could be added trivially to the table like so:
[ MESA_FORMAT_B8G8R8X8_UNORM ] = { RADEON_TXFORMAT_ARGB8888, 0 }, [ MESA_FORMAT_X8R8G8B8_UNORM ] = { RADEON_TXFORMAT_ARGB8888, 0 },

Other than that, I really don't see anything which could make a difference on le systems.

Roland

Signature · 2 lines
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

author Tested-by Ian Romanick
#4 lore raw
In reply to [email protected]

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

--- Comment #4 from Ian Romanick <[email protected]> --- (In reply to Roland Scheidegger from comment #3)

Quoted 8 lines

(In reply to Marek Olšák from comment #2)

Quoted 2 lines

If there are no simple way to fix this, the best course of action is to revert the commit.

Well if it's the missing B8G8R8X8 stuff this could be added trivially to the table like so:
[ MESA_FORMAT_B8G8R8X8_UNORM ] = { RADEON_TXFORMAT_ARGB8888, 0 }, [ MESA_FORMAT_X8R8G8B8_UNORM ] = { RADEON_TXFORMAT_ARGB8888, 0 },

That fixes the problem here. If you want to send that as a patch, you can put

on it.

Quoted 4 lines

Other than that, I really don't see anything which could make a difference on le systems.

Roland

Signature · 2 lines
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

#5 lore raw
In reply to [email protected]

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

--- Comment #5 from Roland Scheidegger <[email protected]> --- (In reply to Ian Romanick from comment #4)

Quoted 8 lines

That fixes the problem here. If you want to send that as a patch, you can put

on it.

Thanks for testing! Patches sent.

Signature · 2 lines
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
In reply to [email protected]

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

Roland Scheidegger <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Roland Scheidegger <[email protected]> --- Fixed by 983614dbede7b94cba1bad9f3e8627fc5e14bb91. Sorry for that regression...

Signature · 2 lines
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

#7 lore raw
In reply to [email protected]

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

--- Comment #7 from Ian Romanick <[email protected]> --- (In reply to Roland Scheidegger from comment #6)

Quoted 2 lines

Fixed by 983614dbede7b94cba1bad9f3e8627fc5e14bb91. Sorry for that regression...

It happens. You can CC me on future radeon and r200 patches, and I'll try to test them.

Signature · 2 lines
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