radeon/r600 acceleration currently only works properly with
the following drirc snippet:

<driconf>
        <device screen="0" driver="r600">
                <application name="all">
                        <option name="fthrottle_mode" value="0"/>
                        <option name="vblank_mode" value="0"/>
                </application>
        </device>
</driconf>

See http://marc.info/?l=openbsd-cvs&m=130679235018645&w=2

Until this is fixed, I think we should include a /etc/drirc file as
part of the xetc set. Else, cards supported by this driver do not
properly support 3d and xvideo out of the box.

Index: Makefile
===================================================================
RCS file: /cvs/xenocara/Makefile,v
retrieving revision 1.50
diff -u -p -r1.50 Makefile
--- Makefile    1 Dec 2012 21:10:42 -0000       1.50
+++ Makefile    9 Jan 2013 23:12:04 -0000
@@ -6,6 +6,7 @@ LOCALAPPD=/usr/local/lib/X11/app-default
 LOCALAPPX=/usr/local/lib/X11
 REALAPPD=/etc/X11/app-defaults
 XCONFIG=${XSRCDIR}/etc/X11.${MACHINE}/xorg.conf
+DRIRC=${XSRCDIR}/etc/drirc
 RM?=rm
 
 .if ${MACHINE_ARCH} != "sh" && ${MACHINE_ARCH} != "vax"
@@ -99,6 +100,12 @@ release-install:
                ${XCONFIG} ${DESTDIR}/etc/X11 ; \
        fi
 .endif
+       @if [ -f $(DESTDIR)/etc/drirc ]; then \
+        echo "Not overwriting existing" $(DESTDIR)/etc/drirc; \
+       else set -x; \
+        ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
+               ${DRIRC} ${DESTDIR}/etc/drirc ; \
+       fi
        touch ${DESTDIR}/var/db/sysmerge/xetcsum
        TMPSUM=`mktemp /tmp/_xetcsum.XXXXXXXXXX` || exit 1; \
        sort distrib/sets/lists/xetc/{mi,md.${MACHINE}} > $${TMPSUM}; \
Index: distrib/sets/lists/xetc/mi
===================================================================
RCS file: /cvs/xenocara/distrib/sets/lists/xetc/mi,v
retrieving revision 1.19
diff -u -p -r1.19 mi
--- distrib/sets/lists/xetc/mi  12 Jan 2012 17:35:04 -0000      1.19
+++ distrib/sets/lists/xetc/mi  9 Jan 2013 23:12:34 -0000
@@ -50,6 +50,7 @@
 ./etc/X11/xdm/xdm-config
 ./etc/X11/xinit/xinitrc
 ./etc/X11/xsm/system.xsm
+./etc/drirc
 ./etc/fonts/conf.avail
 ./etc/fonts/conf.avail/10-autohint.conf
 ./etc/fonts/conf.avail/10-no-sub-pixel.conf
Index: etc/drirc
===================================================================
RCS file: etc/drirc
diff -N etc/drirc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ etc/drirc   9 Jan 2013 23:11:00 -0000
@@ -0,0 +1,8 @@
+<driconf>
+        <device screen="0" driver="r600">
+                <application name="all">
+                        <option name="fthrottle_mode" value="0"/>
+                        <option name="vblank_mode" value="0"/>
+                </application>
+        </device>
+</driconf>

Reply via email to