From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 89148] r300g: Kernel rejected CS in Wine d3d multisample test Date: Sat, 14 Feb 2015 16:26:23 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2029254503==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id AA3C16E034 for ; Sat, 14 Feb 2015 08:26:23 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2029254503== Content-Type: multipart/alternative; boundary="1423931183.2aC70.31482"; charset="UTF-8" --1423931183.2aC70.31482 Date: Sat, 14 Feb 2015 16:26:23 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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. --1423931183.2aC70.31482 Date: Sat, 14 Feb 2015 16:26:23 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
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.
--1423931183.2aC70.31482-- --===============2029254503== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============2029254503==--