Skip to contentSkip to conversation

Xonotic render green (bisected)

Bug 90439 [email protected] 1 participant 17 messages May 13, 2015 – May 26, 2015

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 90439
Summary: Xonotic render green (bisected)
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 115745
--> https://bugs.freedesktop.org/attachment.cgi?id=115745&action=edit
Good

llvm r237140 bisected where Xonotic start to render mostly green artifacts on textures.

Attached R600_DEBUG=ps,vs,gs outputs from good on llvm r237139

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=90439

--- Comment #1 from smoki <[email protected]> ---
Created attachment 115747
--> https://bugs.freedesktop.org/attachment.cgi?id=115747&action=edit
Bad

And bad with llvm r237140

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=90439

--- Comment #2 from smoki <[email protected]> ---

mesa is 58715b72396133350c1549381553121f936a198e, kernel 4.1-rc3, hardware
Athlon 5350 (Kabini), etc...

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=90439

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

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

            Summary|Xonotic render green        |[LLVM] Xonotic render green
                   |(bisected)                  |(bisected)
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

#4 lore raw
In reply to [email protected]

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

--- Comment #3 from Michel Dänzer <[email protected]> ---
You said on IRC that the same commit also broke some piglit tests. If so, please attach the good and bad R600_DEBUG=ps,vs,gs output for one of those.

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=90439

--- Comment #4 from smoki <[email protected]> ---
Created attachment 115763
--> https://bugs.freedesktop.org/attachment.cgi?id=115763&action=edit
piglit-good

Yes, example output is from:

R600_DEBUG=ps,vs,gs ./bin/copy-pixels -samples=8 -auto

on r237139

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=90439

--- Comment #5 from smoki <[email protected]> ---
Created attachment 115764
--> https://bugs.freedesktop.org/attachment.cgi?id=115764&action=edit
piglit-bad

and bad with r237140

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=90439

--- Comment #6 from smoki <[email protected]> ---
Uploaded piglit comparison within these llvm commits

https://dl.dropboxusercontent.com/u/74553632/bug90439.tar.bz2

So basicaly the same ~130 piglits fail, just like in bug 89034 if i enable
sub-reg liveness.

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

#8 lore raw
In reply to [email protected]

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

smoki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical

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

#10 lore raw
In reply to [email protected]

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

--- Comment #8 from smoki <[email protected]> ---
Created attachment 115962
--> https://bugs.freedesktop.org/attachment.cgi?id=115962&action=edit
pass

Hi Tom, good and bad diff taken from glsl-fs-abs-03 test.

121,125c121,125

<     v_interp_p1_f32 v4, v0, 2, 0, [m0]       ; C8100200
<     v_interp_p2_f32 v4, [v4], v1, 2, 0, [m0] ; C8110201
<     v_cvt_pkrtz_f16_f32_e64 v0, |v2|, |v3|   ; D25E0300 00020702
<     v_cvt_pkrtz_f16_f32_e64 v1, |v4|, 1.0    ; D25E0101 0001E504
<     exp 15, 0, 1, 1, 1, v0, v1, v0, v1       ; F8001C0F 01000100

---

Quoted 5 lines
	v_interp_p1_f32 v0, v0, 2, 0, [m0]       ; C8000200
	v_interp_p2_f32 v0, [v0], v1, 2, 0, [m0] ; C8010201
	v_cvt_pkrtz_f16_f32_e64 v1, |v2|, |v3|   ; D25E0301 00020702
	v_cvt_pkrtz_f16_f32_e64 v0, |v0|, 1.0    ; D25E0100 0001E500
	exp 15, 0, 1, 1, 1, v1, v0, v1, v0       ; F8001C0F 00010001

130c130
< VGPRS: 8
---

Quoted 1 line

VGPRS: 4

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

#11 lore raw
In reply to [email protected]

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

--- Comment #9 from smoki <[email protected]> ---
Created attachment 115963
--> https://bugs.freedesktop.org/attachment.cgi?id=115963&action=edit
fail

fail on svn237140 attachment

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

#12 lore raw
In reply to [email protected]

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

--- Comment #10 from Michel Dänzer <[email protected]> --- Created attachment 115965
--> https://bugs.freedesktop.org/attachment.cgi?id=115965&action=edit
Make sure v_interp_p1_f32 doesn't use the source register as destination

Does this proof-of-concept LLVM patch fix the problem?

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

#13 lore raw
In reply to [email protected]

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

--- Comment #11 from smoki <[email protected]> --- (In reply to Michel Dänzer from comment #10)

Quoted 4 lines

Created attachment 115965 [details] [review]
Make sure v_interp_p1_f32 doesn't use the source register as destination

Does this proof-of-concept LLVM patch fix the problem?

Bingo! That seems fixed everyting.

On top of that also i can enable SubRegLiveness without a problem.

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

#14 lore raw
In reply to [email protected]

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

--- Comment #12 from Tom Stellard <[email protected]> --- Can you try this branch:
http://cgit.freedesktop.org/~tstellar/llvm/log/?h=vinterp-fix

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

#15 lore raw
In reply to [email protected]

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

--- Comment #13 from smoki <[email protected]> --- (In reply to Tom Stellard from comment #12)

Quoted 2 lines

Can you try this branch:
http://cgit.freedesktop.org/~tstellar/llvm/log/?h=vinterp-fix

Works fine, apps render fine and no piglit regression.

With that mainlined, this one and bug 89034 can be marked as fixed.

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

#16 lore raw
In reply to [email protected]

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

smoki <[email protected]> changed:

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

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

--- Comment #14 from smoki <[email protected]> ---

Patches mainlined. Closing.

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