[Bug 31161] New: Need For Speed Hot Pursuit (2010): GL_INVALID_ENUM (0x500) from glTexSubImage2D
http://bugs.winehq.org/show_bug.cgi?id=31161 Bug #: 31161 Summary: Need For Speed Hot Pursuit (2010): GL_INVALID_ENUM (0x500) from glTexSubImage2D Product: Wine Version: 1.5.8 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs(a)winehq.org ReportedBy: vanuan(a)gmail.com Classification: Unclassified I tried running the game under opensource video drivers and couldn't see the menu. Also I have a plenty of messages: err:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_INVALID_ENUM (0x500) from glTexSubImage2D @ surface.c / 2369 Googling around: https://bugs.freedesktop.org/show_bug.cgi?id=49484 tells it is because "an application tries to use a (D3D) format (e.g. DXT/s3tc) even though it's not available." I think it is a bug in wine. It should check for available formats and stop if requested is not available and print a message how to fix it. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #1 from John Yani <vanuan(a)gmail.com> 2012-07-07 08:06:30 CDT --- This is a format that is not recognized: fixme:d3d:debug_d3dformat Unrecognized 0x434f5441 (as fourcc: ATOC) WINED3DFORMAT! fixme:d3d:wined3d_get_format Can't find format unrecognized (0x434f5441) in the format lookup table fixme:d3d:debug_d3dformat Unrecognized 0x5a574152 (as fourcc: RAWZ) WINED3DFORMAT! fixme:d3d:wined3d_get_format Can't find format unrecognized (0x5a574152) in the format lookup table -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #2 from John Yani <vanuan(a)gmail.com> 2012-07-07 08:22:16 CDT --- This article might be useful http://aras-p.info/texts/D3D9GPUHacks.html -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #3 from John Yani <vanuan(a)gmail.com> 2012-07-07 09:53:45 CDT --- Parameters to glTexSubImage2D: d3d_surface:surface_upload_data glTexSubImage2D, target 0xde1, level 0, x 0, y 0, w 8, h 64, format 0, type 0, addr 0x6ddc6680. Why format and type are 0? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #4 from Henri Verbeet <hverbeet(a)gmail.com> 2012-07-07 10:01:54 CDT --- Typically because you don't have s3tc support. I'll see if I can improve the message a bit to make it more obvious. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #5 from Henri Verbeet <hverbeet(a)gmail.com> 2012-07-07 10:13:58 CDT --- Created attachment 40909 --> http://bugs.winehq.org/attachment.cgi?id=40909 patch Actually, you wouldn't get that message for DXTn surfaces, though you might for float textures. Could you see what the attached patch outputs? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #6 from John Yani <vanuan(a)gmail.com> 2012-07-07 10:19:24 CDT --- It outputs: fixme:d3d_surface:surface_allocate_surface No GL internal format for format WINED3DFMT_DXT1. fixme:d3d_surface:surface_allocate_surface No GL internal format for format WINED3DFMT_DXT5. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #7 from John Yani <vanuan(a)gmail.com> 2012-07-07 10:24:41 CDT --- Running with MESA_DEBUG=1 shows: Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable Its strange, because I have libtxc-dxtn-s2tc0 installed. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #8 from Henri Verbeet <hverbeet(a)gmail.com> 2012-07-07 10:24:59 CDT --- Yeah, that's missing s3tc support. The glTexSubImage2D() call confused me for a bit because it shouldn't be called for compressed formats, but if the format is missing WINED3DFMT_FLAG_COMPRESSED wouldn't be set either. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #9 from Henri Verbeet <hverbeet(a)gmail.com> 2012-07-07 10:25:57 CDT --- (In reply to comment #7)
Its strange, because I have libtxc-dxtn-s2tc0 installed. Note that Wine needs the 32-bit version of that package though.
-- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #10 from John Yani <vanuan(a)gmail.com> 2012-07-07 11:00:31 CDT ---
Note that Wine needs the 32-bit version of that package though.
Actually I had it installed. But it seems like there is a bug in ubuntu i386 package. I had to create a proper symbolic link: sudo ln -s libtxc_dxtn_s2tc.so.0 /usr/lib/i386-linux-gnu/libtxc_dxtn.so Now I can see the menu. To summarize: 1) If you're using opensource graphics drivers, you have to install libtxc-dxtn-s2tc 2) make sure you have libtxc-dxtn-s2tc0:i386 installed. 3) run with MESA_DEBUG=1 to see if there are warning couldn't open libtxc_dxtn.so 4) If you're in Ubuntu 12.04 rewrite a link /usr/lib/i386-linux-gnu/libtxc_dxtn.so to point to /usr/lib/i386-linux-gnu/libtxc_dxtn_s2tc.so.0 Hopefully, this thread will help somebody. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |UPSTREAM --- Comment #11 from Austin English <austinenglish(a)gmail.com> 2012-07-09 14:34:54 CDT --- Packaging bug. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 Scott Ritchie <scott(a)open-vote.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |scott(a)open-vote.org --- Comment #12 from Scott Ritchie <scott(a)open-vote.org> 2012-07-09 16:32:35 CDT --- Why is Wine looking for a .so file (rather than .so.#) after build time? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 --- Comment #13 from John Yani <vanuan(a)gmail.com> 2012-07-09 16:34:48 CDT --- What *.so file do you mean? If you mean libtxc_dxtn.so, than it's not wine, it's mesa. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=31161 Lennart Weller <lhw(a)ring0.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lhw(a)ring0.de --- Comment #14 from Lennart Weller <lhw(a)ring0.de> 2012-07-10 18:22:24 CDT --- The bug was already fixed in 0~git20110809-2 in debian. The package has not been synced to ubuntu precise only quantal. I requested a manual sync just now.[1] [1] http://packages.debian.org/changelogs/pool/main/s/s2tc/s2tc_0~git20110809-3/... [2] https://bugs.launchpad.net/bugs/1023197 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=31161 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #15 from Bruno Jesus <00cpxxx(a)gmail.com> --- (In reply to Lennart Weller from comment #14)
The bug was already fixed in 0~git20110809-2 in debian. The package has not been synced to ubuntu precise only quantal. I requested a manual sync just now.[1]
[1] http://packages.debian.org/changelogs/pool/main/s/s2tc/s2tc_0~git20110809-3/ changelog [2] https://bugs.launchpad.net/bugs/1023197
Upstream bug fixed, closing. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org