Bug 48455 - Enabling R600_STREAMOUT causes graphical corruption
Summary: Enabling R600_STREAMOUT causes graphical corruption
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-09 01:58 UTC by Boudhayan Gupta
Modified: 2012-11-02 12:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Boudhayan Gupta 2012-04-09 01:58:14 UTC
I use Mesa from Git (on an Arch Linux box), and build a new copy weekly. Since the last two weeks, keeping R600_STREAMOUT enabled in my /etc/environment file leads to severe graphical corruption (the screen is completely garbled), making it unusable on my Gnome 3 based system. Both GDM and GNOME-Shell exhibit this corruption, making it impossible to conduct tests on the system.

Here are some relevant outputs:

/etc/environment:
LIBGL_DRIVERS_PATH=/opt/mesa-master/lib/xorg/modules/dri
VDPAU_DRIVER=r600
R600_GLSL130=1
#R600_STREAMOUT=1

Keeping the last line enabled causes issues. Also, uname -a:

Linux bg14ina-laptop 3.3.1-2-ck #1 SMP PREEMPT Thu Apr 5 18:01:36 EDT 2012 x86_64 Intel(R) Core(TM)2 Duo CPU T6670 @ 2.20GHz GenuineIntel GNU/Linux

glxinfo | grep -i opengl:

OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV710
OpenGL version string: 2.1 Mesa 8.1-devel (git-c653287)
OpenGL shading language version string: 1.30

Relevant line from lspci:01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV710 [Mobility Radeon HD 4300 Series]

The card is a 512 MB ATI Mobility Radeon HD4330, (VID:PID = 1002:9552)

Other software versions are:
xorg-server 1.12.0.901-1
xf86-video-ati 6.14.4-2
libdrm 2.4.33-1
libtxc_dxtn 1.0.1-2

The flags to configure when building Mesa from git:

./configure --prefix=/opt/mesa-master --with-dri-driverdir=/opt/mesa-master/lib/xorg/modules/dri --with-gallium-drivers=r300,r600,swrast --with-dri-drivers=swrast --enable-texture-float --enable-glx-tls --enable-xcb --enable-shared-dricore --enable-gbm --enable-gallium-gbm --enable-xvmc --enable-vdpau --enable-gallium-g3dvl --enable-osmesa --enable-xorg --enable-shared-glapi --enable-gles1 --enable-gles2 --enable-openvg --enable-gallium-egl

If there's anything else I can post, please let me know.
Comment 1 Andreas Boll 2012-08-09 15:21:05 UTC
You need kernel 3.5 and mesa from git.
There were streamout fixes in both kernel and mesa especially for r700.
Additionally you don't need to set R600_GLSL130=1 and R600_STREAMOUT=1 anymore,
both have been enabled by default in mesa master.


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.