From patchwork Tue Dec 2 21:06:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Dechesne X-Patchwork-Id: 41833 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4DDD120672 for ; Tue, 2 Dec 2014 21:07:00 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gq15sf8699270lab.3 for ; Tue, 02 Dec 2014 13:06:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=Hz3l8lfhCiNlauC3gJ2HZetzP9UpKCLccPXP6TNfJ5o=; b=ZXhMOFsBSYIXASPwb9HoNPJCMQj7931TWTBpMWdK9ptvOdNg/3cfSs1Md1DSaS/lh6 9u4a7snji1XWwnJNA4EEGrqhuTh3U2sIjS4+aFRgU30BZ96otHiPREUV/dUGYtK8QxkG Tx357sadFZW9wF5GKF392sbfbZ/z7UFT2ktXnqIlnQn4Kkqz7PC7Sp8FCu8ycwQRVlyJ mbxep/2sQ4zYTUIwfWA76Gb9FCRyNgmuPbZmwFGov8PPSV3hakcMzzp52U+IGQbgEetT ox3XOziG+29KzHnj9HhHQhbXjqGnOm7HEScCG1O+pR90D32rfxl08guXQiRXFAkcmqwl kNHA== X-Gm-Message-State: ALoCoQkWcTW7DSSlyXXPtm4Nw1XqikDgki7wFgiv64t7qbN5Jc0m9wml5iJpPeoqO1k1KYXpKh0r X-Received: by 10.112.169.101 with SMTP id ad5mr267264lbc.1.1417554419139; Tue, 02 Dec 2014 13:06:59 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.3.202 with SMTP id e10ls57050lae.86.gmail; Tue, 02 Dec 2014 13:06:59 -0800 (PST) X-Received: by 10.152.5.38 with SMTP id p6mr1067246lap.91.1417554418989; Tue, 02 Dec 2014 13:06:58 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id c3si21366618lag.69.2014.12.02.13.06.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Dec 2014 13:06:58 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id hv19so6823443lab.28 for ; Tue, 02 Dec 2014 13:06:58 -0800 (PST) X-Received: by 10.112.189.10 with SMTP id ge10mr1111989lbc.23.1417554418481; Tue, 02 Dec 2014 13:06:58 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp564850lbc; Tue, 2 Dec 2014 13:06:57 -0800 (PST) X-Received: by 10.68.165.100 with SMTP id yx4mr9435555pbb.79.1417554416451; Tue, 02 Dec 2014 13:06:56 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id qm4si35369912pac.44.2014.12.02.13.06.55 for ; Tue, 02 Dec 2014 13:06:56 -0800 (PST) Received-SPF: none (google.com: openembedded-core-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9ACF6605B3; Tue, 2 Dec 2014 21:06:49 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mail.openembedded.org (Postfix) with ESMTP id 91FC860030 for ; Tue, 2 Dec 2014 21:06:44 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id r20so22325448wiv.2 for ; Tue, 02 Dec 2014 13:06:44 -0800 (PST) X-Received: by 10.181.13.42 with SMTP id ev10mr8112847wid.78.1417554404191; Tue, 02 Dec 2014 13:06:44 -0800 (PST) Received: from nikaia.localdomain (gau06-1-78-243-126-63.fbx.proxad.net. [78.243.126.63]) by mx.google.com with ESMTPSA id bm1sm33460626wjb.45.2014.12.02.13.06.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Dec 2014 13:06:43 -0800 (PST) From: Nicolas Dechesne To: openembedded-core@lists.openembedded.org Date: Tue, 2 Dec 2014 22:06:33 +0100 Message-Id: <1417554393-29368-1-git-send-email-nicolas.dechesne@linaro.org> X-Mailer: git-send-email 2.1.3 Cc: Nicolas Dechesne Subject: [OE-core] [RFC PATCH] mesa: add PACKAGECONFIG support for gallium XA state tracker X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nicolas.dechesne@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Nicolas Dechesne --- meta/recipes-graphics/mesa/mesa.inc | 6 ++++++ 1 file changed, 6 insertions(+) --- I have tested: - on IFC6410 with Snapdragon 600 and Adreno 320 running the freedreno Gallium driver from mesa - with Mesa 10.3 so i would recommend we wait for 10.3 to be merged first - with branch xorg-1.16 from this BSP layer [1] Sending as RFC to see if this is the right way to enable this feature... [1] https://git.linaro.org/people/nicolas.dechesne/meta-qualcomm.git/ diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 1857f3c..cb1837a 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -65,6 +65,7 @@ MESA_LLVM_RELEASE ?= "3.3" PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --with-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}" +PACKAGECONFIG[xa] = "--enable-xa, --disable-xa" # llvmpipe is slow if compiled with -fomit-frame-pointer (e.g. -O2) FULL_OPTIMIZATION_append = " -fno-omit-frame-pointer" @@ -87,6 +88,7 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \ libegl-gallium libgbm-gallium \ libopenvg libopenvg-dev \ libxvmcsoftpipe libxvmcsoftpipe-dev \ + libxatracker libxatracker-dev \ mesa-megadriver \ " @@ -171,6 +173,7 @@ FILES_libegl-gallium = "${libdir}/egl/egl_gallium.so*" FILES_libgbm-gallium = "${libdir}/gbm/gbm_gallium_drm.so*" FILES_libopenvg = "${libdir}/libOpenVG.so.*" FILES_libxvmcsoftpipe = "${libdir}/libXvMCsoftpipe.so.*" +FILES_libxatracker = "${libdir}/libxatracker.so.*" FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc" FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" @@ -185,5 +188,8 @@ FILES_libwayland-egl-dev = "${libdir}/pkgconfig/wayland-egl.pc ${libdir}/libwayl FILES_libopenvg-dev = "${libdir}/libOpenVG.so ${libdir}/libOpenVG.la* \ ${includedir}/VG ${libdir}/pkgconfig/vg.pc" FILES_libxvmcsoftpipe-dev = "${libdir}/libXvMCsoftpipe.so ${libdir}/libXvMCsoftpipe.la" +FILES_libxatracker-dev = "${libdir}/libxatracker.so ${libdir}/libxatracker.la \ + ${includedir}/xa_tracker.h ${includedir}/xa_composite.h ${includedir}/xa_context.h \ + ${libdir}/pkgconfig/xatracker.pc" FILES_${PN}-dbg += "${libdir}/dri/.debug/* ${libdir}/egl/.debug/* ${libdir}/gbm/.debug/* ${libdir}/gallium-pipe/.debug"