From patchwork Sat Apr 11 00:20:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Phogat X-Patchwork-Id: 6200641 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 48E989F389 for ; Sat, 11 Apr 2015 00:21:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 546C82034F for ; Sat, 11 Apr 2015 00:21:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4CC7120304 for ; Sat, 11 Apr 2015 00:21:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B6B96EA4A; Fri, 10 Apr 2015 17:21:19 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DA636EA46 for ; Fri, 10 Apr 2015 17:21:18 -0700 (PDT) Received: by pddn5 with SMTP id n5so38231648pdd.2 for ; Fri, 10 Apr 2015 17:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=9AFvcOKpnPllEw6YhRPCY6ZkjOslWRxhCDWRR3n8+zQ=; b=KAMPSecc5YtVJfa7jvrQq1fvsXk/q+lTjDTejojtD1fJV8JnBSpDaGY1xVRyKhY00d jG1gnmBftkpZ8CbFwne2HLMFDg5/sgB2bl14IY8xKeHaCtTabjJfFiH8duPmOAP79do5 CC/4DWnSl/uY5QLduDH6lrw/8tj1KYSIHP+GtCRZXyoasofNCf+gkIwaI+VHhHSNptul pGyaugSoG5DFE5Vy9XpDm+IVjCtfS+ym7LblOs7OOSQZA5S84UyaKee+6GZrm4kPKpDX ZG2LZM1fPEuC96ypKC5rsL8aStjQkC+9keZaMglk7qjajX/hr1bd5kthCQgf4bJyxa/G Vkpw== X-Received: by 10.68.175.66 with SMTP id by2mr6680430pbc.141.1428711678119; Fri, 10 Apr 2015 17:21:18 -0700 (PDT) Received: from carbon.ak.intel.com (jfdmzpr02-ext.jf.intel.com. [134.134.137.71]) by mx.google.com with ESMTPSA id l7sm188857pdp.71.2015.04.10.17.21.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Apr 2015 17:21:17 -0700 (PDT) From: Anuj Phogat To: Date: Fri, 10 Apr 2015 17:20:56 -0700 Message-Id: <1428711656-5878-2-git-send-email-anuj.phogat@gmail.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1428711656-5878-1-git-send-email-anuj.phogat@gmail.com> References: <1428711656-5878-1-git-send-email-anuj.phogat@gmail.com> Subject: [Intel-gfx] [PATCH 2/2] Set alignment value in drm_intel_add_validate_buffer() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Anuj Phogat Reviewed-by: Ben Widawsky --- intel/intel_bufmgr_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index 51d87ae..92701a5 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -459,7 +459,7 @@ drm_intel_add_validate_buffer(drm_intel_bo *bo) bufmgr_gem->exec_objects[index].handle = bo_gem->gem_handle; bufmgr_gem->exec_objects[index].relocation_count = bo_gem->reloc_count; bufmgr_gem->exec_objects[index].relocs_ptr = (uintptr_t) bo_gem->relocs; - bufmgr_gem->exec_objects[index].alignment = 0; + bufmgr_gem->exec_objects[index].alignment = bo->align; bufmgr_gem->exec_objects[index].offset = 0; bufmgr_gem->exec_bos[index] = bo; bufmgr_gem->exec_count++; @@ -501,7 +501,7 @@ drm_intel_add_validate_buffer2(drm_intel_bo *bo, int need_fence) bufmgr_gem->exec2_objects[index].handle = bo_gem->gem_handle; bufmgr_gem->exec2_objects[index].relocation_count = bo_gem->reloc_count; bufmgr_gem->exec2_objects[index].relocs_ptr = (uintptr_t)bo_gem->relocs; - bufmgr_gem->exec2_objects[index].alignment = 0; + bufmgr_gem->exec2_objects[index].alignment = bo->align; bufmgr_gem->exec2_objects[index].offset = 0; bufmgr_gem->exec_bos[index] = bo; bufmgr_gem->exec2_objects[index].flags = 0;