From patchwork Wed Jul 6 10:13:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexandros.frantzis@linaro.org X-Patchwork-Id: 2476 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id BD84F23F55 for ; Wed, 6 Jul 2011 10:13:19 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id 6CC05A181E6 for ; Wed, 6 Jul 2011 10:13:19 +0000 (UTC) Received: by qwb8 with SMTP id 8so4694340qwb.11 for ; Wed, 06 Jul 2011 03:13:19 -0700 (PDT) Received: by 10.224.64.213 with SMTP id f21mr5978996qai.159.1309947198774; Wed, 06 Jul 2011 03:13:18 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.48.135 with SMTP id r7cs75510qcf; Wed, 6 Jul 2011 03:13:18 -0700 (PDT) Received: by 10.216.133.194 with SMTP id q44mr7249066wei.56.1309947197242; Wed, 06 Jul 2011 03:13:17 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id b15si16157404wed.134.2011.07.06.03.13.16; Wed, 06 Jul 2011 03:13:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QeP6a-0005dw-1x for ; Wed, 06 Jul 2011 10:13:16 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 094972E8029 for ; Wed, 6 Jul 2011 10:13:16 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: glmark2 X-Launchpad-Branch: ~afrantzis/glmark2/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 99 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~afrantzis/glmark2/trunk] Rev 99: Fix typo in Canvas::height() and adjust validation reference values. Message-Id: <20110706101316.16906.38765.launchpad@loganberry.canonical.com> Date: Wed, 06 Jul 2011 10:13:16 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13376"; Instance="initZopeless config overlay" X-Launchpad-Hash: 76c9f6510ffbf72c9049537244ab7007f7964cb9 ------------------------------------------------------------ revno: 99 committer: Alexandros Frantzis branch nick: trunk timestamp: Tue 2011-07-05 16:45:41 +0300 message: Fix typo in Canvas::height() and adjust validation reference values. modified: src/canvas.h src/scene-build.cpp src/scene-shading.cpp src/scene-texture.cpp --- lp:glmark2 https://code.launchpad.net/~afrantzis/glmark2/trunk You are subscribed to branch lp:glmark2. To unsubscribe from this branch go to https://code.launchpad.net/~afrantzis/glmark2/trunk/+edit-subscription === modified file 'src/canvas.h' --- src/canvas.h 2011-06-30 13:39:21 +0000 +++ src/canvas.h 2011-07-05 13:45:41 +0000 @@ -76,7 +76,7 @@ } int width() { return mWidth; } - int height() { return mWidth; } + int height() { return mHeight; } const LibMatrix::mat4 &projection() { return mProjection; } protected: === modified file 'src/scene-build.cpp' --- src/scene-build.cpp 2011-07-04 10:46:22 +0000 +++ src/scene-build.cpp 2011-07-05 13:45:41 +0000 @@ -182,7 +182,7 @@ if (mRotation != 0) return Scene::ValidationUnknown; - Canvas::Pixel ref(0xcf, 0xcf, 0xcf, 0xff); + Canvas::Pixel ref(0xa7, 0xa7, 0xa7, 0xff); Canvas::Pixel pixel = mCanvas.read_pixel(mCanvas.width() / 2, mCanvas.height() / 2); === modified file 'src/scene-shading.cpp' --- src/scene-shading.cpp 2011-07-04 10:46:22 +0000 +++ src/scene-shading.cpp 2011-07-05 13:45:41 +0000 @@ -198,9 +198,9 @@ const std::string &filter = mOptions["shading"].value; if (filter == "gouraud") - ref = Canvas::Pixel(0x00, 0x00, 0x76, 0xff); + ref = Canvas::Pixel(0x00, 0x00, 0x2d, 0xff); else if (filter == "phong") - ref = Canvas::Pixel(0x1a, 0x1a, 0x79, 0xff); + ref = Canvas::Pixel(0x1a, 0x1a, 0x3e, 0xff); else return Scene::ValidationUnknown; === modified file 'src/scene-texture.cpp' --- src/scene-texture.cpp 2011-07-04 10:46:22 +0000 +++ src/scene-texture.cpp 2011-07-05 13:45:41 +0000 @@ -188,17 +188,17 @@ Canvas::Pixel ref; - Canvas::Pixel pixel = mCanvas.read_pixel(mCanvas.width() / 2 - 3, - mCanvas.height() / 2 - 3); + Canvas::Pixel pixel = mCanvas.read_pixel(mCanvas.width() / 2 + 3, + mCanvas.height() / 2 + 3); const std::string &filter = mOptions["texture-filter"].value; if (filter == "nearest") - ref = Canvas::Pixel(0x24, 0x22, 0x23, 0xff); + ref = Canvas::Pixel(0x3b, 0x3a, 0x39, 0xff); else if (filter == "linear") - ref = Canvas::Pixel(0x29, 0x27, 0x28, 0xff); + ref = Canvas::Pixel(0x36, 0x36, 0x34, 0xff); else if (filter == "mipmap") - ref = Canvas::Pixel(0x2c, 0x2a, 0x2b, 0xff); + ref = Canvas::Pixel(0x35, 0x35, 0x34, 0xff); else return Scene::ValidationUnknown;