Bug#783281: xserver-xorg-video-radeon: cant resume after sleep

2015-04-27 Thread Michel Dänzer
On 25.04.2015 11:42, Prekates Alexandros wrote:
> Package: xserver-xorg-video-radeon
> Version: 1:7.5.0-1
> Severity: important
> 
> 
> My debian 8 + xfce system when screen turns black (propably saving power)
> becomes unresponsive to mouse and keybrd events.
> 
> I press the cases' power button  and after seens some lines pulsating in a
> black background i get the message:
> 
> [drm;770_stop_dpm] "ERROR' Could not force DPM to low.
> ata1.00: revalidation failed (errno=5)

Are you sure the problem is because of the graphics driver, not e.g.
related to the ATA error? E.g. have you tried suspend/resume with the
radeon kernel driver disabled via something like radeon.modeset=0 on the
kernel command line?


-- 
Earthling Michel Dänzer   |   http://www.amd.com
Libre software enthusiast | Mesa and X developer


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/553df37f.4000...@daenzer.net



Bug#783507: xserver-xorg: segfault on intel hardware

2015-04-27 Thread Daniel Kahn Gillmor
Package: xserver-xorg
Version: 1:7.7+7
Severity: normal

I had run X11 on this thinkpad X220 via the following command on tty1:

  exec startx 2>> ~/.xsession-errors

I recently suspended my machine; during this run, it had only been using LVDS.

I woke the machine back up, plugged in a DisplayPort connector, and
went to unlock xscreensaver.

I succesfully unlocked xscreensaver, and then X11 segfaulted.

here's the data from ~/.xsession-errors:

---
(EE) 
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x7f8a42933d46]
(EE) 1: /usr/bin/X (0x7f8a4277d000+0x1baf29) [0x7f8a42937f29]
(EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7f8a40471000+0x35180) 
[0x7f8a404a6180]
(EE) 3: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7f8a3c87a000+0x25bc5) 
[0x7f8a3c89fbc5]
(EE) 4: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7f8a3c87a000+0xb972a) 
[0x7f8a3c93372a]
(EE) 5: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7f8a3c87a000+0xc3f03) 
[0x7f8a3c93df03]
(EE) 6: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7f8a3c87a000+0x50e03) 
[0x7f8a3c8cae03]
(EE) 7: /usr/bin/X (0x7f8a4277d000+0x13d3b1) [0x7f8a428ba3b1]
(EE) 8: /usr/bin/X (0x7f8a4277d000+0x133064) [0x7f8a428b0064]
(EE) 9: /usr/bin/X (0x7f8a4277d000+0x573f7) [0x7f8a427d43f7]
(EE) 10: /usr/bin/X (0x7f8a4277d000+0x5b596) [0x7f8a427d8596]
(EE) 11: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf5) 
[0x7f8a40492b45]
(EE) 12: /usr/bin/X (0x7f8a4277d000+0x4590e) [0x7f8a427c290e]
(EE) 
(EE) Segmentation fault at address 0x18
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting


This is an awkward thing to try to reproduce (i haven't tried in
depth, since i need to continue using the machine); if you have any
suggestions for additional data that would be useful, or ways i should
invoke X11 to help gather data, please let me know.

-dkg




-- Package-specific info:
X server symlink status:

lrwxrwxrwx 1 root root 13 Dec 11  2012 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 2401376 Feb 10 19:35 /usr/bin/Xorg

VGA-compatible devices on PCI bus:
--
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core 
Processor Family Integrated Graphics Controller [8086:0126] (rev 09)

/etc/X11/xorg.conf does not exist.

Contents of /etc/X11/xorg.conf.d:
-
total 8
-rw-r--r-- 1 root root 148 Feb  7 20:53 20-intel.conf
-rw-r--r-- 1 root root 475 Dec 14  2012 20-thinkpad.conf

/etc/modprobe.d contains no KMS configuration files.

Kernel version (/proc/version):
---
Linux version 3.16.0-4-amd64 (debian-ker...@lists.debian.org) (gcc version 
4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt9-2 (2015-04-13)

Xorg X server log files on system:
--
-rw-r--r-- 1 root root 38655 Oct 11  2014 /var/log/Xorg.3.log
-rw-r--r-- 1 root root 24341 Mar 22 14:52 /var/log/Xorg.2.log
-rw-r--r-- 1 root root 31141 Apr 17 13:47 /var/log/Xorg.1.log
-rw-r--r-- 1 root root 19966 Apr 27 11:11 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file (/var/log/Xorg.0.log):
-
[28.289] 
X.Org X Server 1.16.4
Release Date: 2014-12-20
[28.290] X Protocol Version 11, Revision 0
[28.290] Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
[28.290] Current Operating System: Linux alice 3.16.0-4-amd64 #1 SMP Debian 
3.16.7-ckt9-2 (2015-04-13) x86_64
[28.290] Kernel command line: BOOT_IMAGE=/vmlinuz-3.16.0-4-amd64 
root=/dev/mapper/vg_alice0-root ro quiet
[28.290] Build Date: 11 February 2015  12:32:02AM
[28.290] xorg-server 2:1.16.4-1 (http://www.debian.org/support) 
[28.290] Current version of pixman: 0.32.6
[28.290]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[28.290] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[28.290] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 27 06:41:46 
2015
[28.291] (==) Using config directory: "/etc/X11/xorg.conf.d"
[28.291] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[28.294] (==) No Layout section.  Using the first Screen section.
[28.294] (==) No screen section available. Using defaults.
[28.294] (**) |-->Screen "Default Screen Section" (0)
[28.294] (**) |   |-->Monitor ""
[28.295] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[28.295] (**) |   |-->Device "Intel Graphics"
[28.295] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[28.295] (==) Automatically adding devices
[28.295] (==

Processed: Bug#778187: xorg-server: ftbfs with GCC-5

2015-04-27 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 patch fixed-upstream
Bug #778187 [src:xorg-server] xorg-server: ftbfs with GCC-5
Added tag(s) fixed-upstream and patch.

-- 
778187: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778187
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b778187.143015106728586.transcr...@bugs.debian.org



Bug#778187: xorg-server: ftbfs with GCC-5

2015-04-27 Thread James Cowgill
Control: tags -1 patch fixed-upstream

On Thu, 12 Feb 2015 10:38:13 + Matthias Klose  wrote:
> The package fails to build in a test rebuild on at least amd64 with
> gcc-5/g++-5, but succeeds to build with gcc-4.9/g++-4.9. The
> severity of this report may be raised before the stretch release.

Fixed upstream. The patch applied there is attached.

http://cgit.freedesktop.org/xorg/xserver/commit/?id=21b896939c5bb242f3aacc37baf12379e43254b6

Thanks,
James
From 21b896939c5bb242f3aacc37baf12379e43254b6 Mon Sep 17 00:00:00 2001
From: Egbert Eich 
Date: Tue, 3 Mar 2015 16:27:05 +0100
Subject: symbols: Fix sdksyms.sh to cope with gcc5

Gcc5 adds additional lines stating line numbers before and
after __attribute__() which need to be skipped.

Signed-off-by: Egbert Eich 
Tested-by: Daniel Stone 
Signed-off-by: Peter Hutterer 

diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh
index 2305073..05ac410 100755
--- a/hw/xfree86/sdksyms.sh
+++ b/hw/xfree86/sdksyms.sh
@@ -350,13 +350,25 @@ BEGIN {
 if (sdk) {
 	n = 3;
 
+# skip line numbers GCC 5 adds before __attribute__
+while ($n == "" || $0 ~ /^# [0-9]+ "/) {
+   getline;
+   n = 1;
+}
+
 	# skip attribute, if any
 	while ($n ~ /^(__attribute__|__global)/ ||
 	# skip modifiers, if any
 	$n ~ /^\*?(unsigned|const|volatile|struct|_X_EXPORT)$/ ||
 	# skip pointer
-	$n ~ /^[a-zA-Z0-9_]*\*$/)
+	$n ~ /^[a-zA-Z0-9_]*\*$/) {
 	n++;
+# skip line numbers GCC 5 adds after __attribute__
+while ($n == "" || $0 ~ /^# [0-9]+ "/) {
+   getline;
+   n = 1;
+}
+}
 
 	# type specifier may not be set, as in
 	#   extern _X_EXPORT unsigned name(...)
-- 
cgit v0.10.2



signature.asc
Description: This is a digitally signed message part


mesa: Changes to 'debian-experimental'

2015-04-27 Thread Timo Aaltonen
 .gitignore   |
1 
 Android.common.mk|   
18 
 Android.mk   |   
10 
 CleanSpec.mk |
8 
 Makefile.am  |   
15 
 VERSION  |
2 
 autogen.sh   |
4 
 bin/.cherry-ignore   |   
12 
 common.py|   
97 
 configure.ac |  
174 
 debian/changelog |   
14 
 debian/libegl1-mesa.symbols  |
3 
 debian/not-installed |
4 
 docs/GL3.txt |  
107 
 docs/README.WIN32|
4 
 docs/contents.html   |
1 
 docs/dispatch.html   |
5 
 docs/egl.html|   
43 
 docs/faq.html|   
13 
 docs/index.html  |   
49 
 docs/install.html|
9 
 docs/llvmpipe.html   |   
32 
 docs/openvg.html |   
59 
 docs/relnotes.html   |
8 
 docs/relnotes/10.4.5.html|  
114 
 docs/relnotes/10.4.6.html|  
143 
 docs/relnotes/10.4.7.html|  
134 
 docs/relnotes/10.5.0.html|
5 
 docs/relnotes/10.5.1.html|  
217 +
 docs/relnotes/10.5.2.html|  
130 
 docs/relnotes/10.5.3.html|  
125 
 docs/relnotes/10.5.4.html|  
125 
 docs/relnotes/10.6.0.html|   
79 
 docs/relnotes/7.6.html   |
2 
 docs/sourcetree.html |
2 
 docs/specs/MESA_image_dma_buf_export.txt |  
142 
 docs/viewperf.html   |   
94 
 include/EGL/eglmesaext.h |
8 
 include/GL/internal/dri_interface.h  |
4 
 include/GL/osmesa.h  |
6 
 include/GL/wmesa.h   |  
140 
 include/VG/openvg.h  |  
746 ---
 include/VG/vgext.h   |  
233 -
 include/VG/vgplatform.h  |   
92 
 include/VG/vgu.h |  
131 
 include/c11/threads_posix.h  |
7 
 include/c99_alloca.h |   
49 
 include/c99_compat.h |   
13 
 include/c99_math.h   |  
215 +
 include/no_extern_c.h|   
48 
 include/pci_ids/i915_pci_ids.h   |
4 
 include/pci_ids/i965_pci_ids.h   |
8 
 m4/ax_check_python_mako_module.m4|
6 
 scons/gallium.py |  
137 
 scons/llvm.py|
5 
 src/Makefile.am  |
8 
 src/SConscript   |
7 
 src/egl/drivers/dri2/Android.mk  |   
16 
 src/egl/drivers/dri2/Makefile.am |
2 
 src/egl/drivers/dri2/egl_dri2.c  |   
60 
 src/egl/driv

mesa: Changes to 'ubuntu'

2015-04-27 Thread Timo Aaltonen
 VERSION   |2 
 bin/.cherry-ignore|   14 
 configure.ac  |  151 --
 debian/changelog  |   20 
 debian/libegl1-mesa.symbols   |1 
 debian/patches/egl-platform-mir.patch |   73 +--
 docs/relnotes/10.5.0.html |5 
 docs/relnotes/10.5.1.html |  217 +
 docs/relnotes/10.5.2.html |  129 +
 include/c11/threads_posix.h   |7 
 m4/ax_check_python_mako_module.m4 |6 
 src/Makefile.am   |5 
 src/egl/drivers/dri2/Makefile.am  |2 
 src/egl/drivers/dri2/platform_drm.c   |   16 
 src/egl/main/eglarray.h   |4 
 src/egl/main/eglconfig.c  |2 
 src/egl/main/eglconfig.h  |   14 
 src/egl/main/eglcontext.h |4 
 src/egl/main/eglcurrent.c |2 
 src/egl/main/eglcurrent.h |8 
 src/egl/main/egldisplay.h |   10 
 src/egl/main/egldriver.h  |6 
 src/egl/main/eglimage.h   |4 
 src/egl/main/egllog.h |6 
 src/egl/main/eglscreen.h  |4 
 src/egl/main/eglsurface.h |6 
 src/egl/main/eglsync.h|2 
 src/gallium/auxiliary/indices/u_indices_gen.py|8 
 src/gallium/auxiliary/os/os_mman.h|4 
 src/gallium/drivers/freedreno/a2xx/a2xx.xml.h |4 
 src/gallium/drivers/freedreno/a2xx/ir-a2xx.c  |3 
 src/gallium/drivers/freedreno/a3xx/a3xx.xml.h |   24 -
 src/gallium/drivers/freedreno/a3xx/fd3_program.c  |5 
 src/gallium/drivers/freedreno/a4xx/a4xx.xml.h |   38 +
 src/gallium/drivers/freedreno/a4xx/fd4_draw.c |5 
 src/gallium/drivers/freedreno/a4xx/fd4_emit.c |   13 
 src/gallium/drivers/freedreno/a4xx/fd4_emit.h |1 
 src/gallium/drivers/freedreno/a4xx/fd4_gmem.c |9 
 src/gallium/drivers/freedreno/a4xx/fd4_program.c  |   42 -
 src/gallium/drivers/freedreno/a4xx/fd4_texture.c  |   10 
 src/gallium/drivers/freedreno/adreno_common.xml.h |4 
 src/gallium/drivers/freedreno/adreno_pm4.xml.h|4 
 src/gallium/drivers/freedreno/freedreno_resource.c|   11 
 src/gallium/drivers/freedreno/freedreno_state.c   |4 
 src/gallium/drivers/freedreno/ir3/disasm-a3xx.c   |  157 +++---
 src/gallium/drivers/freedreno/ir3/instr-a3xx.h|   41 -
 src/gallium/drivers/freedreno/ir3/ir3.c   |   64 +-
 src/gallium/drivers/freedreno/ir3/ir3.h   |   11 
 src/gallium/drivers/freedreno/ir3/ir3_compiler.c  |  113 -
 src/gallium/drivers/freedreno/ir3/ir3_depth.c |2 
 src/gallium/drivers/freedreno/ir3/ir3_group.c |   71 +--
 src/gallium/drivers/freedreno/ir3/ir3_legalize.c  |   40 +
 src/gallium/drivers/freedreno/ir3/ir3_shader.c|1 
 src/gallium/drivers/freedreno/ir3/ir3_shader.h|4 
 src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c |   11 
 src/gallium/drivers/r300/r300_blit.c  |9 
 src/gallium/drivers/r300/r300_fs.c|   18 
 src/gallium/drivers/r300/r300_texture.c   |   36 -
 src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c   |2 
 src/gallium/drivers/radeonsi/si_shader.c  |2 
 src/gallium/state_trackers/clover/core/kernel.hpp |2 
 src/gallium/state_trackers/egl/Makefile.sources   |1 
 src/gallium/state_trackers/egl/SConscript |3 
 src/gallium/state_trackers/egl/x11/dri2.c |1 
 src/glsl/ast_to_hir.cpp   |6 
 src/glsl/linker.cpp   |   15 
 src/glsl/lower_const_arrays_to_uniforms.cpp   |4 
 src/glsl/opt_algebraic.cpp|   15 
 src/glx/glxext.c  |9 
 src/loader/loader.c   |2 
 src/mapi/Makefile.am  |2 
 src/mapi/stub.c   |2 
 src/mesa/drivers/common/meta_tex_subimage.c   |  110 ++--
 src/mesa/drivers/dri/i915/intel_fbo.c 

mesa: Changes to 'debian-unstable'

2015-04-27 Thread Timo Aaltonen
 .dir-locals.el |2 
 .gitignore |1 
 Android.common.mk  |   14 
 Makefile.am|  114 
 VERSION|2 
 bin/.cherry-ignore |   28 
 configure.ac   |  135 
 debian/README.source   |2 
 debian/changelog   |   11 
 debian/control |1 
 debian/libegl1-mesa.symbols|1 
 debian/source/local-options|1 
 debian/watch   |2 
 docs/GL3.txt   |   15 
 docs/index.html|   44 
 docs/install.html  |6 
 docs/relnotes.html |8 
 docs/relnotes/10.3.4.html  |  106 
 docs/relnotes/10.3.5.html  |   88 
 docs/relnotes/10.3.6.html  |  124 
 docs/relnotes/10.3.7.html  |   93 
 docs/relnotes/10.4.2.html  |4 
 docs/relnotes/10.4.3.html  |  145 
 docs/relnotes/10.4.4.html  |  100 
 docs/relnotes/10.5.0.html  |  212 
 docs/relnotes/10.5.1.html  |  217 
 docs/relnotes/10.5.2.html  |  130 
 docs/relnotes/10.5.3.html  |  125 
 docs/relnotes/10.5.4.html  |  124 
 include/D3D9/d3d9.h|   10 
 include/D3D9/d3d9types.h   |   18 
 include/EGL/eglplatform.h  |   10 
 include/GL/glext.h |  266 
 include/GL/internal/dri_interface.h|1 
 include/c11/threads_posix.h|7 
 include/c99/stdbool.h  |3 
 include/c99_compat.h   |6 
 include/pci_ids/i965_pci_ids.h |   15 
 install-lib-links.mk   |   11 
 m4/ax_check_python_mako_module.m4  |   63 
 m4/ax_prog_flex.m4 |4 
 scons/gallium.py   |   12 
 scons/llvm.py  |   16 
 src/Makefile.am|   24 
 src/SConscript |5 
 src/egl/drivers/dri2/Android.mk|8 
 src/egl/drivers/dri2/Makefile.am   |5 
 src/egl/drivers/dri2/SConscript|   40 
 src/egl/drivers/dri2/egl_dri2.c|   51 
 src/egl/drivers/dri2/egl_dri2.h|3 
 src/egl/drivers/dri2/platform_android.c|2 
 src/egl/drivers/dri2/platform_drm.c|   18 
 src/egl/drivers/dri2/platform_wayland.c|   58 
 src/egl/drivers/dri2/platform_x11.c|   27 
 src/egl/drivers/haiku/SConscript   |   34 
 src/egl/drivers/haiku/egl_haiku.cpp|  436 
 src/egl/main/Makefile.am   |5 
 src/egl/main/SConscript|   16 
 src/egl/main/eglapi.c  |   19 
 src/egl/main/eglarray.h|4 
 src/egl/main/eglconfig.c   |2 
 src/egl/main/eglconfig.h   |   14 
 src/egl/main/eglcontext.h  |4 
 src/egl/main/eglcurrent.c  |2 
 src/egl/main/eglcurrent.h  |8 
 src/egl/main/egldisplay.c  |7 
 src/egl/main/egldisplay.h  |   12 
 src/egl/main/egldriver.c   |6 
 src/egl/main/egldriver.h   |6 
 src/egl/main/eglglobals.c 

mesa: Changes to 'upstream-experimental'

2015-04-27 Thread Timo Aaltonen
Rebased ref, commits from common ancestor:
commit 6fc0cd2f52ddc4a1e7026c9c46fd6da3968fa439
Author: Gediminas Jakutis 
Date:   Sun Apr 12 02:58:33 2015 +0300

gallium/hud: add more options to customize HUD panes

Extends the syntax of GALLIUM_HUD environment variable to:
- Add options to set the size and exact location of each pane.
- Add an option to limit the maximum allowed value of the X axis on a
  pane, clamping the graph down to not go above this value.
- Add an option to auto-adjust the value of the Y axis down to the
  highest value still visible on the graph.

v2:
- Make the patch simpler and smaller.
- With dynamic auto-adjusting on, adjust the Y axis once per pane
  update instead of updating once every several seconds.
- No longer mishandle pane height when having more than one graph per
  pane.

diff --git a/src/gallium/auxiliary/hud/hud_context.c 
b/src/gallium/auxiliary/hud/hud_context.c
index e46c68c..00ec205 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -569,9 +569,36 @@ hud_pane_set_max_value(struct hud_pane *pane, uint64_t 
value)
pane->yscale = -(int)pane->inner_height / (float)pane->max_value;
 }
 
+static void
+hud_pane_update_dyn_ceiling(struct hud_graph *gr, struct hud_pane *pane)
+{
+   unsigned i;
+   float tmp = 0.0f;
+
+   if (pane->dyn_ceil_last_ran != gr->index) {
+  LIST_FOR_EACH_ENTRY(gr, &pane->graph_list, head) {
+ for (i = 0; i <  gr->num_vertices; ++i) {
+tmp = gr->vertices[i * 2 + 1] > tmp ?
+  gr->vertices[i * 2 + 1] : tmp;
+ }
+  }
+
+  /* Avoid setting it lower than the initial starting height. */
+  tmp = tmp > pane->initial_max_value ? tmp : pane->initial_max_value;
+  hud_pane_set_max_value(pane, tmp);
+   }
+
+   /*
+* Mark this adjustment run so we could avoid repeating a full update
+* again needlessly in case the pane has more than one graph.
+*/
+   pane->dyn_ceil_last_ran = gr->index;
+}
+
 static struct hud_pane *
 hud_pane_create(unsigned x1, unsigned y1, unsigned x2, unsigned y2,
-unsigned period, uint64_t max_value)
+unsigned period, uint64_t max_value, uint64_t ceiling,
+boolean dyn_ceiling)
 {
struct hud_pane *pane = CALLOC_STRUCT(hud_pane);
 
@@ -590,6 +617,10 @@ hud_pane_create(unsigned x1, unsigned y1, unsigned x2, 
unsigned y2,
pane->inner_height = pane->inner_y2 - pane->inner_y1;
pane->period = period;
pane->max_num_vertices = (x2 - x1 + 2) / 2;
+   pane->ceiling = ceiling;
+   pane->dyn_ceiling = dyn_ceiling;
+   pane->dyn_ceil_last_ran = 0;
+   pane->initial_max_value = max_value;
hud_pane_set_max_value(pane, max_value);
LIST_INITHEAD(&pane->graph_list);
return pane;
@@ -633,6 +664,9 @@ hud_pane_add_graph(struct hud_pane *pane, struct hud_graph 
*gr)
 void
 hud_graph_add_value(struct hud_graph *gr, uint64_t value)
 {
+   gr->current_value = value;
+   value = value > gr->pane->ceiling ? gr->pane->ceiling : value;
+
if (gr->index == gr->pane->max_num_vertices) {
   gr->vertices[0] = 0;
   gr->vertices[1] = gr->vertices[(gr->index-1)*2+1];
@@ -646,7 +680,9 @@ hud_graph_add_value(struct hud_graph *gr, uint64_t value)
   gr->num_vertices++;
}
 
-   gr->current_value = value;
+   if (gr->pane->dyn_ceiling == true) {
+  hud_pane_update_dyn_ceiling(gr, gr->pane);
+   }
if (value > gr->pane->max_value) {
   hud_pane_set_max_value(gr->pane, value);
}
@@ -683,6 +719,69 @@ parse_string(const char *s, char *out)
return i;
 }
 
+static char *
+read_pane_settings(char *str, unsigned * const x, unsigned * const y,
+   unsigned * const width, unsigned * const height,
+   uint64_t * const ceiling, boolean * const dyn_ceiling)
+{
+   char *ret = str;
+   unsigned tmp;
+
+   while (*str == '.') {
+  ++str;
+  switch (*str) {
+  case 'x':
+ ++str;
+ *x = strtoul(str, &ret, 10);
+ str = ret;
+ break;
+
+  case 'y':
+ ++str;
+ *y = strtoul(str, &ret, 10);
+ str = ret;
+ break;
+
+  case 'w':
+ ++str;
+ tmp = strtoul(str, &ret, 10);
+ *width = tmp > 80 ? tmp : 80; /* 80 is chosen arbitrarily */
+ str = ret;
+ break;
+
+  /*
+   * Prevent setting height to less than 50. If the height is set to less,
+   * the text of the Y axis labels on the graph will start overlapping.
+   */
+  case 'h':
+ ++str;
+ tmp = strtoul(str, &ret, 10);
+ *height = tmp > 50 ? tmp : 50;
+ str = ret;
+ break;
+
+  case 'c':
+ ++str;
+ tmp = strtoul(str, &ret, 10);
+ *ceiling = tmp > 10 ? tmp : 10;
+ str = ret;
+ break;
+
+  case 'd':
+ ++str;
+ ret = str;
+ *dyn_ceiling = true;
+ break;
+
+  default:

mesa: Changes to 'upstream-unstable'

2015-04-27 Thread Timo Aaltonen
Rebased ref, commits from common ancestor:
commit ea0d1f575c214c09ba3df12644a960e86e031766
Author: Emil Velikov 
Date:   Fri Apr 24 22:27:09 2015 +0100

Add release notes for the 10.5.4 release

Signed-off-by: Emil Velikov 

diff --git a/docs/relnotes/10.5.4.html b/docs/relnotes/10.5.4.html
new file mode 100644
index 000..78767cc
--- /dev/null
+++ b/docs/relnotes/10.5.4.html
@@ -0,0 +1,124 @@
+http://www.w3.org/TR/html4/loose.dtd";>
+
+
+  
+  Mesa Release Notes
+  
+
+
+
+
+  The Mesa 3D Graphics Library
+
+
+
+
+
+Mesa 10.5.4 Release Notes / April 24, 2015
+
+
+Mesa 10.5.4 is a bug fix release which fixes bugs found since the 10.5.3 
release.
+
+
+Mesa 10.5.4 implements the OpenGL 3.3 API, but the version reported by
+glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) /
+glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used.
+Some drivers don't support all the features required in OpenGL 3.3.  OpenGL
+3.3 is only available if requested at context creation
+because compatibility contexts are not supported.
+
+
+
+SHA256 checksums
+
+TBD
+
+
+
+New features
+None
+
+Bug fixes
+
+This list is likely incomplete.
+
+
+
+https://bugs.freedesktop.org/show_bug.cgi?id=69226";>Bug 69226 
- Cannot enable basic shaders with Second Life aborts attempt
+
+https://bugs.freedesktop.org/show_bug.cgi?id=71591";>Bug 71591 
- Second Life shaders fail to compile (extension declared in middle of 
shader)
+
+https://bugs.freedesktop.org/show_bug.cgi?id=81025";>Bug 81025 
- [IVB/BYT Bisected]Piglit 
spec_ARB_draw_indirect_arb_draw_indirect-draw-elements-prim-restart-ugly 
fails
+
+https://bugs.freedesktop.org/show_bug.cgi?id=89457";>Bug 89457 
- [BSW Bisected]ogles3conform ES3-CTS.gtf.GL3Tests.shadow.shadow_execution_vert 
fails
+
+https://bugs.freedesktop.org/show_bug.cgi?id=89957";>Bug 89957 
- vm protection faults in piglit lest: texsubimage cube_map_array pbo
+
+
+
+
+Changes
+
+Brian Paul (1):
+
+  glsl: rewrite glsl_type::record_key_hash() to avoid buffer overflow
+
+
+Dave Airlie (2):
+
+  st/mesa: convert sub image for cube map arrays to 2d arrays for 
upload
+  st/mesa: align cube map arrays layers
+
+
+Emil Velikov (11):
+
+  docs: Add 256 sums for the 10.5.3 release
+  radeonsi: remove unused si_dump_key()
+  android: use LOCAL_SHARED_LIBRARIES over TARGET_OUT_HEADERS
+  android: add $(mesa_top)/src include to the whole of mesa
+  android: egl: add libsync_cflags to the build
+  android: dri/common: conditionally include drm_cflags/set 
__NOT_HAVE_DRM_H
+  android: add HAVE__BUILTIN_* and HAVE_FUNC_ATTRIBUTE_* defines
+  android: add $(mesa_top)/src/mesa/main to the includes list
+  android: dri: link against libmesa_util
+  android: mesa: fix the path of the SSE4_1 optimisations
+  Update version to 10.5.4
+
+
+Ian Romanick (1):
+
+  nir: Fix typo in "ushr by 0" algebraic replacement
+
+
+Kenneth Graunke (2):
+
+  i965: Fix software primitive restart with indirect draws.
+  drirc: Add "Second Life" quirk 
(allow_glsl_extension_directive_midshader).
+
+
+Kristian Høgsberg (1):
+
+  i965: Rewrite ir_tex to ir_txl with lod 0 for vertex shaders
+
+
+Marek Olšák (2):
+
+  glsl_to_tgsi: fix out-of-bounds constant access and crash for 
uniforms
+  glsl_to_tgsi: don't use a potentially-undefined immediate for 
ir_query_levels
+
+
+Mathias Froehlich (1):
+
+  i965: Flush batchbuffer containing the query on glQueryCounter.
+
+
+Mauro Rossi (2):
+
+  android: mesa: generate the format_{un,}pack.[ch] sources
+  android: add inital NIR build
+
+
+
+
+
+

commit 776e47a305d33ec04a05ac2d81691b884baa9e62
Author: Emil Velikov 
Date:   Fri Apr 24 22:22:47 2015 +0100

Update version to 10.5.4

Signed-off-by: Emil Velikov 

diff --git a/VERSION b/VERSION
index 1e9c35f..927fa80 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-10.5.3
+10.5.4

commit e2dd5546517dd8d3b6790cea3c74c038629256b4
Author: Brian Paul 
Date:   Thu Apr 16 15:29:18 2015 -0600

glsl: rewrite glsl_type::record_key_hash() to avoid buffer overflow

This should be more efficient than the previous snprintf() solution.
But more importantly, it avoids a buffer overflow bug that could result
in crashes or unpredictable results when processing very large interface
blocks.

For the app in question, key->length = 103 for some interfaces.  The check
if size >= sizeof(hash_key) was insufficient to prevent overflows of the
hash_key[128] array because it didn't account for the terminating zero.
In this case, this caused the call to hash_table_string_hash() to return
different results for identical inputs, and then shader linking failed.

This new solution also takes all structure fields into account instead
of just the first 15 when sizeof(pointer)==8.

Cc: mesa-sta...@lists.freedesktop.org
Reviewed-by: Ian Romanick 
(cherry picked from commit 31667e6237d30188d0b29e17f5b9892f10c0d83a)

diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp
ind

Processed: reassign 783507 to xserver-xorg-video-intel

2015-04-27 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> reassign 783507 xserver-xorg-video-intel 2:2.21.15-2
Bug #783507 [xserver-xorg] xserver-xorg: segfault on intel hardware
Bug reassigned from package 'xserver-xorg' to 'xserver-xorg-video-intel'.
No longer marked as found in versions xorg/1:7.7+7.
Ignoring request to alter fixed versions of bug #783507 to the same values 
previously set
Bug #783507 [xserver-xorg-video-intel] xserver-xorg: segfault on intel hardware
Marked as found in versions xserver-xorg-video-intel/2:2.21.15-2.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
783507: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783507
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.c.143016764022934.transcr...@bugs.debian.org