Bug 74784 - [hyperz] Strange artifacts when rendering trees in Dota 2
Summary: [hyperz] Strange artifacts when rendering trees in Dota 2
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 75112
  Show dependency treegraph
 
Reported: 2014-02-10 10:37 UTC by Bruno Jiménez
Modified: 2014-09-03 09:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Strange artifacts in trees (194.42 KB, image/jpeg)
2014-02-10 10:37 UTC, Bruno Jiménez
Details
dmesg log (92.29 KB, text/plain)
2014-02-10 19:17 UTC, Bruno Jiménez
Details
xorg log (39.55 KB, text/plain)
2014-02-10 19:17 UTC, Bruno Jiménez
Details

Description Bruno Jiménez 2014-02-10 10:37:17 UTC
Created attachment 93753 [details]
Strange artifacts in trees

Hi,

When playing Dota 2, randomly and depending on the ligh and the perspective, some random artifacts appear in trees. They also appear in other places, but the trees are the most visible ones.

My graphics card is an AMD HD5470M (AMD Cedar) and I am using Arch linux 64 bits and mesa compiled from git at commit 356aff3.

I thought this problem could be related to this other bug report: https://bugs.freedesktop.org/show_bug.cgi?id=72895 but applying that patch doesn't help.

The attached screenshot shows the problem with the trees.

If you need anything else, just ask.
Comment 1 Alex Deucher 2014-02-10 15:34:15 UTC
Please attach your xorg log and dmesg output.  Are using using the llvm backend in r600g?  If so, does disabling it help?  Also, if this is a regression, can you bisect?
Comment 2 Bruno Jiménez 2014-02-10 15:57:13 UTC
Yes, I am using the llvm backend (you mean the --enable-r600-llvm-compiler configure option, don't you? )

I will compile a mesa package without that option, and tonight I will see if it continues to happend and I will attach the xorg and dmesg logs.

And yes, it is a regression, although the best date I can give as not happening is the 29th of December.

If disabling the llvm backend doesn't help, I will start bisecting.

Thanks for all!
Comment 3 Bruno Jiménez 2014-02-10 19:17:12 UTC
Created attachment 93795 [details]
dmesg log

Theres like 440 lines that look like this:

radeon 0000:01:00.0: evergreen_cs_track_validate_cb:413 cb invalid format 0 for 1 (0x00000000)
radeon 0000:01:00.0: evergreen_packet3_check:1918 invalid cmd s[drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
Comment 4 Bruno Jiménez 2014-02-10 19:17:41 UTC
Created attachment 93796 [details]
xorg log
Comment 5 Alex Deucher 2014-02-10 19:19:41 UTC
This may be a duplicate of bug 68451.  Make sure your kernel has this patch:

drm/radeon: skip colorbuffer checking if COLOR_INFO.FORMAT is set to INVALID
Comment 6 Bruno Jiménez 2014-02-10 19:50:34 UTC
No, Arch doesn't seem to apply that patch. But I am still using kernel 3.12.9, should it be there too?

Also, that bug report was reopened on the 19 Dec, but I think (I may be wrong) I recompiled mesa after that and didn't see anything wrong.

And compiling without --enable-r600-llvm-compiler doesn't help either.

If I can help with anything else, just ask.

Thanks
Comment 7 Bruno Jiménez 2014-02-16 12:07:36 UTC
With mesa at commit 6d1cecb (Friday evening) this problem is fixed.

Thanks!

P.D: Maybe it was related to the hyperz problem of r600g drivers, as I am using a revision that is after this commit http://cgit.freedesktop.org/mesa/mesa/commit/?id=01e637114914453451becc0dc8afe60faff48d84
Comment 8 Andreas Boll 2014-02-17 18:08:28 UTC
(In reply to comment #7)
> With mesa at commit 6d1cecb (Friday evening) this problem is fixed.
> 
> Thanks!
> 
> P.D: Maybe it was related to the hyperz problem of r600g drivers, as I am
> using a revision that is after this commit
> http://cgit.freedesktop.org/mesa/mesa/commit/
> ?id=01e637114914453451becc0dc8afe60faff48d84

Could you set the following environment variable to re-enable hyperz?

R600_DEBUG=hyperz
Comment 9 Bruno Jiménez 2014-02-17 21:44:45 UTC
With 'R600_DEBUG=hyperz' the problem happens again, so I'm afraid that it's something related to the hyperz.

If I can help with anything else, just ask.
Comment 10 Alexandre Demers 2014-02-18 01:29:08 UTC
The bug is not fixed, HyperZ has only been disabled by default. Please, keep opened to track the problem until HyperZ is fixed.
Comment 11 Marek Olšák 2014-09-01 20:54:08 UTC
Could you please test if this is fixed with current Mesa git?
Comment 12 Bruno Jiménez 2014-09-03 09:04:42 UTC
Hi,

I have just tried with 'R600_DEBUG=hyperz' to enable hyperz with mesa built from yesterday master.

I have played a match with a hero that used to cause failures with some of his abilities, but as far as I can tell, there has been no problem.

So it seems that this bug has been resolved (^_^)

If you need anything else just ask.

Thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.