All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 105532] Broken map generation in Northgard game
@ 2018-03-15 22:10 bugzilla-daemon
  2018-03-15 22:21 ` bugzilla-daemon
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-03-15 22:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1573 bytes --]

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

            Bug ID: 105532
           Summary: Broken map generation in Northgard game
           Product: Mesa
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: alexander@tsoy.me
        QA Contact: dri-devel@lists.freedesktop.org

Created attachment 138148
  --> https://bugs.freedesktop.org/attachment.cgi?id=138148&action=edit
northgard_screenshot.png

Map generation is broken in Northgard game in single player mode. See
screenshot. Game developers describe map generation process as follows [1]:
"The game rendering seems to be working fine, only map generation seems to be
broken on some drivers. This involves rendering 2D vectorized shapes and then
reading back the resulting graphics buffer. Nothing fancy, but we had some
issues in OpenGL with some Intel HD drivers on Windows in the past. Using
DirectX (same code, just different driver) did fix the issue for these users."

Map generation is working fine with llvmpipe driver
(LIBGL_ALWAYS_SOFTWARE=true).

OpenGL renderer string: AMD Radeon (TM) R9 380 Series (TONGA / DRM 3.19.0 /
4.14.26-gentoo, LLVM 6.0.0)

[1]
http://steamcommunity.com/app/466560/discussions/0/1698293255121560931/?ctp=4#c1698293255133166837

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3200 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
@ 2018-03-15 22:21 ` bugzilla-daemon
  2018-06-08  8:51 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-03-15 22:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 299 bytes --]

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

--- Comment #1 from Alexander Tsoy <alexander@tsoy.me> ---
Also very often map generation process just hangs or repeat many times
(according to the progress bar).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1062 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
  2018-03-15 22:21 ` bugzilla-daemon
@ 2018-06-08  8:51 ` bugzilla-daemon
  2018-06-27  5:25 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-06-08  8:51 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 651 bytes --]

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

--- Comment #2 from Nicolas Cannasse <ncannasse@gmail.com> ---
Hi,

I'm Northgard technical director.

We are creating buffers to draw various 2D shapes into textures for map
generation. Then we download the textures from GPU to CPU for additional
processing. These textures are then used to generate the landscape. For some
reason unknown to us the textures generated in some case appears to be
corrupted, resulting in these weird height maps. We haven't been able to
investigate the issue in details atm.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1418 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
  2018-03-15 22:21 ` bugzilla-daemon
  2018-06-08  8:51 ` bugzilla-daemon
@ 2018-06-27  5:25 ` bugzilla-daemon
  2018-06-29 17:14 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-06-27  5:25 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1085 bytes --]

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

--- Comment #3 from Timothy Arceri <t_arceri@yahoo.com.au> ---
(In reply to Nicolas Cannasse from comment #2)
> Hi,
> 
> I'm Northgard technical director.
> 
> We are creating buffers to draw various 2D shapes into textures for map
> generation. Then we download the textures from GPU to CPU for additional
> processing. These textures are then used to generate the landscape. For some
> reason unknown to us the textures generated in some case appears to be
> corrupted, resulting in these weird height maps. We haven't been able to
> investigate the issue in details atm.

If you could capture a trace of the issue in renderdoc or apitrace [1] upload
it somewhere and provide the link we might be able to investigate it. But
currently I can't get a trace because the HashLink virtual machine crashes.
Maybe you guys could try compiling with HL/C and try grabbing a trace with the
binary?

[1] https://github.com/apitrace/apitrace

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2001 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
                   ` (2 preceding siblings ...)
  2018-06-27  5:25 ` bugzilla-daemon
@ 2018-06-29 17:14 ` bugzilla-daemon
  2018-06-29 17:24 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-06-29 17:14 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1219 bytes --]

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

Christian Lanig <freedesktop@lanig.email> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |freedesktop@lanig.email

--- Comment #4 from Christian Lanig <freedesktop@lanig.email> ---
I have looked in the game folder. It seems like the game is using Haxe.
I don't really know what Haxe is but in the folder there is also Northgard.exe
and several .dll files. So I assume that Haxe does something comparable to
Wine.

Already having Wine 3.7 installed for another game I just ran: wine
Northgard.exe and bingo, the game seems to run just fine - at least the map is
OK and I could do basic stuff like building a house.

So assuming that Haxe is comparable to Wine and does run the Windows-executable
as well, we might conclude that the data that Haxe passes the mesa drivers is
not identical to the data that Wine passes them.

As a result I am quite sure that the key to the answer is in Haxe and not in
the game executable.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2532 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-06-29 17:14 ` bugzilla-daemon
@ 2018-06-29 17:24 ` bugzilla-daemon
  2018-06-29 17:32 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-06-29 17:24 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 297 bytes --]

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

--- Comment #5 from Alexander Tsoy <alexander@tsoy.me> ---
(In reply to Christian Lanig from comment #4)
There are native linux binaries in the linux subfolder.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1100 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
                   ` (4 preceding siblings ...)
  2018-06-29 17:24 ` bugzilla-daemon
@ 2018-06-29 17:32 ` bugzilla-daemon
  2018-06-29 17:47 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-06-29 17:32 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 508 bytes --]

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

--- Comment #6 from Eric Engestrom <fdo-bugs@engestrom.ch> ---
>From a quick search, Haxe can be found on github [1] and its website [2] has
some explanations as well, including how it uses a bytecode VM [3] to work
cross-platform (essentially the same way java does it).

[1] https://github.com/HaxeFoundation/haxe
[2] https://haxe.org
[3] https://hashlink.haxe.org

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1398 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
                   ` (5 preceding siblings ...)
  2018-06-29 17:32 ` bugzilla-daemon
@ 2018-06-29 17:47 ` bugzilla-daemon
  2018-07-21  9:09 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-06-29 17:47 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 686 bytes --]

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

--- Comment #7 from Christian Lanig <freedesktop@lanig.email> ---
(In reply to Alexander Tsoy from comment #5)
> (In reply to Christian Lanig from comment #4)
> There are native linux binaries in the linux subfolder.

Yes. You are right. I renamed Northgard.exe and the game still starts. I
thought that Haxe would somewhere start the Windows binary after loading the
data file because shipping it to Linux users didn't make that much sense to me.
I'm sorry for the confusion.

Still, Haxe might be useful to localize the roots of the issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1570 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-06-29 17:47 ` bugzilla-daemon
@ 2018-07-21  9:09 ` bugzilla-daemon
  2018-07-21 15:17 ` bugzilla-daemon
  2018-07-25  4:41 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-07-21  9:09 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 538 bytes --]

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

Alexander Tsoy <alexander@tsoy.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTOURBUG
             Status|NEW                         |RESOLVED

--- Comment #8 from Alexander Tsoy <alexander@tsoy.me> ---
Latest game update fixed this bug for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2020 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
                   ` (7 preceding siblings ...)
  2018-07-21  9:09 ` bugzilla-daemon
@ 2018-07-21 15:17 ` bugzilla-daemon
  2018-07-25  4:41 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-07-21 15:17 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 254 bytes --]

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

--- Comment #9 from Christian Lanig <freedesktop@lanig.email> ---
I can confirm this for Hawaii, Polaris 20 and Raven.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1084 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug 105532] Broken map generation in Northgard game
  2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
                   ` (8 preceding siblings ...)
  2018-07-21 15:17 ` bugzilla-daemon
@ 2018-07-25  4:41 ` bugzilla-daemon
  9 siblings, 0 replies; 11+ messages in thread
From: bugzilla-daemon @ 2018-07-25  4:41 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 962 bytes --]

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

--- Comment #10 from Timothy Arceri <t_arceri@yahoo.com.au> ---
(In reply to Christian Lanig from comment #7)
> (In reply to Alexander Tsoy from comment #5)
> > (In reply to Christian Lanig from comment #4)
> > There are native linux binaries in the linux subfolder.
> 
> Yes. You are right. I renamed Northgard.exe and the game still starts. I
> thought that Haxe would somewhere start the Windows binary after loading the
> data file because shipping it to Linux users didn't make that much sense to
> me. I'm sorry for the confusion.
> 
> Still, Haxe might be useful to localize the roots of the issue.

As per my reply in comment 3. The game runs in the HashLink virtual machine.
Which is why I was requesting a trace grabbed via a build of the game compiled
with HL/C which produces a native binary instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2014 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-07-25  4:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-15 22:10 [Bug 105532] Broken map generation in Northgard game bugzilla-daemon
2018-03-15 22:21 ` bugzilla-daemon
2018-06-08  8:51 ` bugzilla-daemon
2018-06-27  5:25 ` bugzilla-daemon
2018-06-29 17:14 ` bugzilla-daemon
2018-06-29 17:24 ` bugzilla-daemon
2018-06-29 17:32 ` bugzilla-daemon
2018-06-29 17:47 ` bugzilla-daemon
2018-07-21  9:09 ` bugzilla-daemon
2018-07-21 15:17 ` bugzilla-daemon
2018-07-25  4:41 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.