From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 55E4C10E10B for ; Wed, 4 Oct 2023 15:49:16 +0000 (UTC) From: Lucas De Marchi To: igt-dev@lists.freedesktop.org Date: Wed, 4 Oct 2023 08:49:14 -0700 Message-Id: <20231004154922.3478014-6-lucas.demarchi@intel.com> In-Reply-To: <20231004154922.3478014-1-lucas.demarchi@intel.com> References: <20231004154922.3478014-1-lucas.demarchi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v3 05/13] lib/gpu_cmds: Reduce scope of xehp_fill_surface_state() List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lucas De Marchi Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: gpu_cmds.h is the interface to other igt components: don't use it to declare functions not supposed to be used from outside. Signed-off-by: Lucas De Marchi Reviewed-by: Matt Roper --- lib/gpu_cmds.c | 8 +++++++- lib/gpu_cmds.h | 6 ------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/gpu_cmds.c b/lib/gpu_cmds.c index 83d2302f9..e53580e65 100644 --- a/lib/gpu_cmds.c +++ b/lib/gpu_cmds.c @@ -25,6 +25,12 @@ #include "gpu_cmds.h" #include "intel_mocs.h" +static uint32_t +xehp_fill_surface_state(struct intel_bb *ibb, + struct intel_buf *buf, + uint32_t format, + int is_dst); + uint32_t gen7_fill_curbe_buffer_data(struct intel_bb *ibb, uint8_t color) { @@ -873,7 +879,7 @@ xehp_fill_interface_descriptor(struct intel_bb *ibb, idd->desc5.num_threads_in_tg = 1; } -uint32_t +static uint32_t xehp_fill_surface_state(struct intel_bb *ibb, struct intel_buf *buf, uint32_t format, diff --git a/lib/gpu_cmds.h b/lib/gpu_cmds.h index b7ed64f84..5ac007cc4 100644 --- a/lib/gpu_cmds.h +++ b/lib/gpu_cmds.h @@ -116,12 +116,6 @@ xehp_fill_interface_descriptor(struct intel_bb *ibb, size_t size, struct xehp_interface_descriptor_data *idd); -uint32_t -xehp_fill_surface_state(struct intel_bb *ibb, - struct intel_buf *buf, - uint32_t format, - int is_dst); - void xehp_emit_state_compute_mode(struct intel_bb *ibb); -- 2.40.1