Bug#532980: libgl1-mesa-dri: some games crash at the start
Package: libgl1-mesa-dri
Version: 7.4.1-1
Severity: important
Tags: patch
I encountered this problem in enemy territory, but as far as I know it also appears with quake3
(and probably all games on q3 engine). Here is log from et:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 1
Minor opcode of failed request: 0
Serial number of failed request: 39
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 18
Minor opcode of failed request: 0
Serial number of failed request: 40
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 18
Minor opcode of failed request: 0
Serial number of failed request: 41
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 8
Minor opcode of failed request: 0
Serial number of failed request: 42
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 12
Minor opcode of failed request: 0
Serial number of failed request: 43
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 18
Minor opcode of failed request: 0
Serial number of failed request: 46
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 128
Minor opcode of failed request: 7
Serial number of failed request: 51
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 153
Minor opcode of failed request: 26
Serial number of failed request: 51
Segmentation fault
I found probable solution (but i didn't check it) at:
https://bugs.freedesktop.org/show_bug.cgi?id=21653
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
index 791f598..a977bed 100644
--- a/src/mesa/drivers/dri/radeon/radeon_screen.c
+++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
@@ -283,12 +283,12 @@ radeonFillInModes( __DRIscreenPrivate *psp,
* with a stencil buffer. It will be a sw fallback, but some apps won't
* care about that.
*/
- stencil_bits_array[0] = 0;
+ stencil_bits_array[0] = stencil_bits;
stencil_bits_array[1] = (stencil_bits == 0) ? 8 : stencil_bits;
msaa_samples_array[0] = 0;
- depth_buffer_factor = ((depth_bits != 0) || (stencil_bits != 0)) ? 2 : 1;
+ depth_buffer_factor = (stencil_bits == 0) ? 2 : 1;
back_buffer_factor = (have_back_buffer) ? 2 : 1;
if (pixel_bits == 16) {
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libgl1-mesa-dri depends on:
ii libc6 2.9-13 GNU C Library: Shared libraries
ii libdrm-intel1 2.4.11-1 Userspace interface to intel-speci
ii libdrm2 2.4.11-1 Userspace interface to kernel DRM
ii libexpat1 2.0.1-4 XML parsing C library - runtime li
libgl1-mesa-dri recommends no packages.
Versions of packages libgl1-mesa-dri suggests:
pn libglide3 <none> (no description available)
-- no debconf information
Reply to: