From patchwork Sun Dec 2 20:03:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWFyZWsgT2zFocOhaw==?= X-Patchwork-Id: 1831731 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 6048EDF254 for ; Sun, 2 Dec 2012 20:04:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 26A63E5E9D for ; Sun, 2 Dec 2012 12:04:03 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ea0-f177.google.com (mail-ea0-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 9982AE5EB0 for ; Sun, 2 Dec 2012 12:03:50 -0800 (PST) Received: by mail-ea0-f177.google.com with SMTP id c10so894031eaa.36 for ; Sun, 02 Dec 2012 12:03:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=rHaHIXIUjLUddl3Oh1alvrcO3aD4hQdXHsYSJq6z38s=; b=sVnL397VHVurNNIkLv96GLIbnwrThXI8MO+ADPZeJC33WaZiWidJr1yrh1mr6v9NO9 7x60mSusJ8/zsp9fCRPf4K1YVRojXhzKRB/F7QZddB2JLmQ/NHHw5WRsHTpKFKI7XXFg od/doZSuDyQIcjWA7khUZhDCTbTMoUURgrI9isxNpHQxOf7DOop5Tl9VPhycTHms2/ZI LAoaVtR1bA13ZO9j8XI28xdIEbvdu5KOrnU0Mhr7JHb1B+XgEyZFZywG423oD/eeLyWi lLbUhKqlCe4vuIgU0Cs3FTTY4Yj3Thzi9QdFDmBH7QGX58X3MNICaa6IHbmhtkNgAkmy BVjA== Received: by 10.14.194.4 with SMTP id l4mr28233660een.42.1354478629924; Sun, 02 Dec 2012 12:03:49 -0800 (PST) Received: from localhost.localdomain ([194.228.11.46]) by mx.google.com with ESMTPS id e2sm26663720eeo.8.2012.12.02.12.03.44 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 02 Dec 2012 12:03:48 -0800 (PST) From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon: add a CS flag END_OF_FRAME Date: Sun, 2 Dec 2012 21:03:33 +0100 Message-Id: <1354478613-6228-1-git-send-email-maraeo@gmail.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org No version bump is required because setting the flag on older DRM has no effect. This only reserves the bit and doesn't use it. I assume we will use it for buffer eviction heuristics. Signed-off-by: Marek Olšák Reviewed-by: Alex Deucher --- include/uapi/drm/radeon_drm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h index 4766c0f..0c8a62c 100644 --- a/include/uapi/drm/radeon_drm.h +++ b/include/uapi/drm/radeon_drm.h @@ -913,6 +913,7 @@ struct drm_radeon_gem_va { /* The first dword of RADEON_CHUNK_ID_FLAGS is a uint32 of these flags: */ #define RADEON_CS_KEEP_TILING_FLAGS 0x01 #define RADEON_CS_USE_VM 0x02 +#define RADEON_CS_END_OF_FRAME 0x04 /* a hint from userspace which CS is the last one */ /* The second dword of RADEON_CHUNK_ID_FLAGS is a uint32 that sets the ring type */ #define RADEON_CS_RING_GFX 0 #define RADEON_CS_RING_COMPUTE 1