From owner-freebsd-x11@freebsd.org Sun Feb 14 18:07:31 2016 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DD2EAA8360; Sun, 14 Feb 2016 18:07:31 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mx1.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1160513E1; Sun, 14 Feb 2016 18:07:30 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from karviainen.kapsi.fi ([217.30.184.182] helo=roundcube.kapsi.fi) by mail.kapsi.fi with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1aV14t-0006LI-Vm; Sun, 14 Feb 2016 20:07:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 14 Feb 2016 20:07:23 +0200 From: Arto Pekkanen To: Eax Melanhovich Cc: "Michael B. Eichorn" , freebsd-x11@freebsd.org, owner-freebsd-x11@freebsd.org In-Reply-To: <20160214194906.5b1d6f6b@fujitsu> References: <20160115103123.097be7d9@fujitsu> <5698A68D.8080202@dumbbell.fr> <20160115214315.4ee47348@fujitsu> <56B5434E.8070907@dumbbell.fr> <20160214131056.773c9f87@fujitsu> <1455456349.1203.3.camel@michaeleichorn.com> <20160214194906.5b1d6f6b@fujitsu> Message-ID: X-Sender: isoa@kapsi.fi User-Agent: RoundCube Webmail/0.9.4 X-SA-Exim-Connect-IP: 217.30.184.182 X-SA-Exim-Mail-From: isoa@kapsi.fi X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 Subject: Re: Does FreeBSD support OpenGL 3.3? X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mail.kapsi.fi) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 18:07:31 -0000 DRM device cannot be opened for writing. This is because FreeBSD kernel v11 declares /dev/dri/* group as 44, which is "video" in the FreeBSD 11 userland. Three methods to solve this problem: 1. If you are running FreeBSD 11 userland, add user to video group: pw groupmod video -m 2. If you are running FreeBSD 10.x userland, add user the the wheel group, and mod dev node privs: pw groupmod wheel -m ; chgrp wheel /dev/dri/* NOTE: you must chgrp wheel /dev/dri/* after EVERY reboot 3. Create video group, add user to it. pw groupadd video -g 44 -M Sources: https://github.com/freebsd/freebsd/blob/master/UPDATING """ 20150809: The default group assigned to /dev/dri entries has been changed from 'wheel' to 'video' with the id of '44'. If you want to have access to the dri devices please add yourself to the video group with: # pw groupmod video -m $USER """ Eax Melanhovich kirjoitti 14.02.2016 18:49: > Hello, Michael > >> The WIP kernel driver instructions are here: >> https://wiki.freebsd.org/Graphics/Update%20i915%20GPU%20driver%20to%20Linux%203.8 > > It works! I have OpenGL 3.3 now. But there is a problem. > > Here is a program I used to test OpenGL support: > > https://github.com/afiskon/c-opengl-text > > This is how it looks on Ubuntu, Windows and MacOS: > > http://eax.me/files/2016/02/opengl-text.jpg > > And this is how it looks on FreeBSD: > > http://imagizer.imageshack.com/img923/6271/UrwLLK.png > > All DXT textures are rendered either black or white. I recognize this > behaviour because I observed it recently when I tried to run OpenGL > examples on VMWare: > > http://askubuntu.com/questions/730536/vmware-workstation-doesnt-render-dds-dxt-textures > > Also note suspicious output from libGL. -- Arto Pekkanen