Bug 11681 - Neverwinter nights fails to start with direct rendering enabled on tdfx.
Summary: Neverwinter nights fails to start with direct rendering enabled on tdfx.
Status: RESOLVED WONTFIX
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/TDFX (show other bugs)
Version: 6.5
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Adam Jackson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-20 21:03 UTC by Dominic Ringuet
Modified: 2014-03-20 21:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
my xorg.conf, everything seems fine there (2.42 KB, text/plain)
2007-07-23 10:43 UTC, Dominic Ringuet
Details
Xorg.log, everything seems fine AFAICS (37.71 KB, text/plain)
2007-07-23 10:46 UTC, Dominic Ringuet
Details
Nwn is a bit ugly but still playable (516 bytes, patch)
2007-07-23 12:33 UTC, Dominic Ringuet
Details | Splinter Review

Description Dominic Ringuet 2007-07-20 21:03:26 UTC
Using xorg 7.2, so far every other applications runs fine.
Running ./nwn returns to the prompt:
./nwn: line 13: 28621 Aborted                 ./nwmain $@

Disabling direct rendering, it runs (but unaccelerated).

gdb:
#0  0xb7fd6410 in __kernel_vsyscall ()
#1  0xb7cb97b1 in raise () from /lib/libc.so.6
#2  0xb7cbafc8 in abort () from /lib/libc.so.6
#3  0xb7cb2ebc in __assert_fail () from /lib/libc.so.6
#4  0xb5c4099c in tdfxCompressedTexImage2D (ctx=0xe449b18, target=3553, 
    level=0, internalFormat=33779, width=64, height=64, border=0, 
    imageSize=4096, data=0xed89552, texObj=0xed0a8c0, texImage=0xed09408)
    at tdfx_tex.c:1618
#5  0xb5cb00dc in _mesa_CompressedTexImage2DARB (target=3553, level=0, 
    internalFormat=33779, width=64, height=64, border=0, imageSize=4096, 
    data=0xed89552) at main/teximage.c:3368
#6  0x084c94af in ?? ()
#7  0x0851e838 in ?? ()
#8  0x0851e45b in ?? ()
#9  0x0851f585 in ?? ()
#10 0x0852221c in ?? ()
#11 0x084f93e7 in ?? ()
#12 0x080540d3 in ?? ()
#13 0x0804fd88 in ?? ()
#14 0xb7ca67c8 in __libc_start_main () from /lib/libc.so.6
#15 0x0804f851 in ?? ()

strace:
open("./texturepacks/Textures_Tpc.erf", O_RDONLY) = 11
fstat64(11, {st_mode=S_IFREG|0664, st_size=31358448, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xaf184000
_llseek(11, 446464, [446464], SEEK_SET) = 0
read(11, "\0\0\0\0/\305\316\274\274\374\336\266\377\377\0\0\0\0\0"..., 2472) = 2472
read(11, "@\0\0\0@\0\0\0\4\0\0\0\0\20\0\0\230\226v=\0\0\0\0\0\0\0"..., 4096) = 4096
read(11, "\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0\0\0\0"..., 4096) = 4096
close(11)                               = 0
munmap(0xaf184000, 4096)                = 0
open("./data/textures_01.bif", O_RDONLY) = 11
fstat64(11, {st_mode=S_IFREG|0644, st_size=63052761, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xaf184000
_llseek(11, 18595840, [18595840], SEEK_SET) = 0
read(11, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 475) = 475
read(11, "\0\0\2\0\0\0\0\0\0\0\0\0\20\0\20\0 \10\377\377\377\3\377"..., 4096) = 4096
close(11)                               = 0
munmap(0xaf184000, 4096)                = 0
write(2, "nwmain: tdfx_tex.c:1618: tdfxCom"..., 94) = 94
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
write(7, "--------------------------------"..., 288) = 288
tgkill(28670, 28670, SIGABRT)           = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
Process 28670 detached
Comment 1 Dominic Ringuet 2007-07-21 11:45:08 UTC
Additional informations:

Same thing with freshly compiled Mesa-7.0
libtxc_dxtn has been installed but to no avail.
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT is the internalFormat.
Worked flawlessly with X11R6.8.2

#4  0xb5707b6e in tdfxCompressedTexImage2D (ctx=0xe4497e0, target=3553, 
    level=0, internalFormat=33779, width=64, height=64, border=0, 
    imageSize=4096, data=0xeb3de3a, texObj=0xeabf1a8, texImage=0xeac4e08)
    at tdfx_tex.c:1618
        fxMesa = (tdfxContextPtr) 0xe3fe478
        ti = (tdfxTexInfo *) 0x83f3
        mml = (tdfxMipMapLevel *) 0x0
        mesaFormat = 246173192
        __PRETTY_FUNCTION__ = "tdfxCompressedTexImage2D"
#5  0xb57ac5b2 in _mesa_CompressedTexImage2DARB (target=3553, level=0, 
    internalFormat=33779, width=64, height=64, border=0, imageSize=4096, 
    data=0xeb3de3a) at main/teximage.c:3355
        texUnit = (struct gl_texture_unit *) 0xe4545c0
        texObj = (struct gl_texture_object *) 0xeabf1a8
        texImage = (struct gl_texture_image *) 0xeac4e08
        error = 0
        ctx = (GLcontext *) 0xe4497e0

Any way to fall back to software rendering for some extensions?
*may be related to bug 3165?
Comment 2 Erik Andren 2007-07-23 04:47:50 UTC
Please post (not pasting) your xorg.conf and your xorg.log
Comment 3 Dominic Ringuet 2007-07-23 10:43:47 UTC
Created attachment 10849 [details]
my xorg.conf, everything seems fine there
Comment 4 Dominic Ringuet 2007-07-23 10:46:22 UTC
Created attachment 10850 [details]
Xorg.log, everything seems fine AFAICS
Comment 5 Dominic Ringuet 2007-07-23 11:01:58 UTC
That may seems newbeeish, but commenting out line 129 in src/mesa/drivers/dri/tdfx/tdfx_context.c:

{ "GL_EXT_texture_compression_s3tc",   NULL },

allows the game to start but the textures looks quite ugly; there should be a better way around.
Comment 6 Dominic Ringuet 2007-07-23 12:33:21 UTC
Created attachment 10857 [details] [review]
Nwn is a bit ugly but still playable

The game offered better graphics quality with some previous versions of Mesa, but still it is now running and playable. Gamma is not working ingame and as mentioned above, textures are rough. If someone could give me a hint, that would be appreciated.
Comment 7 Adam Jackson 2014-03-20 21:24:47 UTC
Mesa no longer has a tdfx driver.


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.