Bug 33276

Summary: "invalid enumerant" during: Cubemap ID generation
Product: Mesa Reporter: Alexander Konotop <alexander.konotop>
Component: Drivers/DRI/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Alexander Konotop 2011-01-19 09:17:50 UTC
ERROR: OpenGL error "invalid enumerant" during: Cubemap ID generation
and segfault.

I'm using driver from Debian Sid (unstable) repository, so it doesn't have to be old. The package version is 1:6.13.1-2+squeeze1, but in Debian sometimes package versioning differs a lot from the native software versioning. The problem appears while trying to start vdrift. The similar report is here:
http://vdrift.net/Forum/viewtopic.php?t=1499&postdays=0&postorder=asc&start=0
On that forum someone wrote that the problem could raise while calling glGenTextures(1, &new_handle). I'm a programmer but I never tried to write games so I don't know where is this function. Maybe it's vdrift internal, maybe it's from mesa library.
Strace doesn't show anything useful, Xorg.0.log shows nothing about the game crash.
I don't even know if it is a vdrift bug or driver bug. I just didn't see similar reports here and thought it would be useful.

P.S. 1. I tried the game on Radeon RS482/R300, the man on the vdrift forum reported an error while using RS780/R600.
     2. I can play some other 3d games without any errors and quite fast.
Comment 1 Alex Deucher 2011-01-19 09:50:21 UTC
Are you using the r300 classic or r300 gallium 3D driver?
Comment 2 Alexander Konotop 2011-01-19 10:18:29 UTC
(In reply to comment #1)
> Are you using the r300 classic or r300 gallium 3D driver?

$ glxinfo | grep OpenGL
OpenGL vendor string: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 (RS400 5975) 20090101  NO-TCL DRI2
OpenGL version string: 1.5 Mesa 7.7.1
OpenGL extensions:

$ glxinfo | Gallium outputs nothing
Comment 3 Alexander Konotop 2011-01-19 10:20:24 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Are you using the r300 classic or r300 gallium 3D driver?
> 
> $ glxinfo | grep OpenGL
> OpenGL vendor string: DRI R300 Project
> OpenGL renderer string: Mesa DRI R300 (RS400 5975) 20090101  NO-TCL DRI2
> OpenGL version string: 1.5 Mesa 7.7.1
> OpenGL extensions:
> 
> $ glxinfo | Gallium outputs nothing
sorry,
$ glxinfo | grep Gallium,
not
$ glxinfo | Gallium
Comment 4 Alex Deucher 2011-01-19 10:25:08 UTC
You are using the classic driver.  You might want to try the r300 gallium driver.
Comment 5 Alexander Konotop 2011-01-19 10:31:15 UTC
(In reply to comment #4)
> You are using the classic driver.  You might want to try the r300 gallium
> driver.
Ok, thank's. But debian doesn't have gallium driver in a repository, I have to build it myself. Will it be useful for you if I try? If not - I'll try later and maybe never ), if yes - I'll try soon.
Comment 6 Alexander Konotop 2011-01-19 10:55:40 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > You are using the classic driver.  You might want to try the r300 gallium
> > driver.
> Ok, thank's. But debian doesn't have gallium driver in a repository, I have to
> build it myself. Will it be useful for you if I try? If not - I'll try later
> and maybe never ), if yes - I'll try soon.

Oh, it's much simplier than I thought! I've just added 2 repositories:
from here https://launchpad.net/~xorg-edgers/+archive/drivers-only
and from here https://launchpad.net/~xorg-edgers/+archive/radeon
They're for ubuntu lucid but work great on debian sid too. Very fast and vdrift now starts. I think you have to close this report now. Anyone who has similar problems just has to use gallium driver. It works, I've tested.
Comment 7 Alex Deucher 2011-01-19 12:06:24 UTC
Use the gallium driver.
Comment 8 Michel Dänzer 2011-01-20 02:35:12 UTC
(In reply to comment #5)
> But debian doesn't have gallium driver in a repository, [...]

Actually, the libgl1-mesa-dri package in Debian ships the Gallium driver as of version 7.9-1 in experimental.

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.