All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 89148] r300g: Kernel rejected CS in Wine d3d multisample test
@ 2015-02-14 16:26 bugzilla-daemon
  2015-02-14 16:32 ` bugzilla-daemon
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: bugzilla-daemon @ 2015-02-14 16:26 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 89148
           Summary: r300g: Kernel rejected CS in Wine d3d multisample test
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r300
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: stefandoesinger@gmx.at
        QA Contact: dri-devel@lists.freedesktop.org

When running Wine's d3d8 and d3d9 tests in r300g an invalid command stream is
sent to the kernel:

[  916.508352] [drm:radeon_cs_packet_parse] *ERROR* Unknown packet type 1 at
2451 !
[  916.508358] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[  916.508902] [drm:radeon_cs_packet_parse] *ERROR* Unknown packet type 1 at 69
!
[  916.508905] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

The user space driver notices the error and writes a message to stderr. The
test that triggered the invalid command subsequently fails.

The failing line in the tests is
http://source.winehq.org/git/wine.git/blob/f75d1b0c2f77d8c85f7c2a9bcc3545f14e271a86:/dlls/d3d8/tests/visual.c#l3704
. The test performs a copy from a multisampled color buffer to system memory.
Wined3d first resolves the multisampled renderbuffer to a non-multisampled
texture and calls glGetTexImage. Interestingly it is the glGetTexImage step
that fails. The texture has format GL_BGRA, type GL_UNSIGNED_INT_8_8_8_8_REV
and internal format GL_SRGB8_ALPHA8.

We call glGetTexImage in plenty of places in this configuration, and this is
the only case where this fails. I'll try to pin this down a bit further.

The bug can be reproduced by running make visual.ok in dlls/d3d8/tests in a
Wine build tree.

System information:
Wine commit ID: f75d1b0c2f77d8c85f7c2a9bcc3545f14e271a86
Mesa commit ID: e333035c47a6a4cc88f0f9ca2bced500538bebae
Kernel: 3.19
libdrm: 2.4.59
X server: 1.16.3
Distribution: Gentoo

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

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

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

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

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

end of thread, other threads:[~2015-03-10 10:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-14 16:26 [Bug 89148] r300g: Kernel rejected CS in Wine d3d multisample test bugzilla-daemon
2015-02-14 16:32 ` bugzilla-daemon
2015-02-16 19:18 ` bugzilla-daemon
2015-02-17  9:36 ` bugzilla-daemon
2015-02-17 11:43 ` bugzilla-daemon
2015-02-18 15:19 ` bugzilla-daemon
2015-02-21 11:06 ` bugzilla-daemon
2015-02-21 12:01 ` bugzilla-daemon
2015-02-21 12:10 ` bugzilla-daemon
2015-02-24  8:59 ` bugzilla-daemon
2015-02-24 22:23 ` bugzilla-daemon
2015-02-26  9:48 ` bugzilla-daemon
2015-02-26 11:17 ` bugzilla-daemon
2015-02-26 12:00 ` bugzilla-daemon
2015-03-10 10:36 ` 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.