From 2b80cd0170d97cbe01584110852bf0ba378e3a98 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 4 Oct 2023 08:49:11 -0700 Subject: lib/gpu_cmds: Remove prefix from gen7_fill_binding_table() This function is used by pretty much all versions. It's odd to have a gen7 function end up calling next-gen functions and it's error prone: when adding something to e.g. a gen8 function to realize that behavior breaks previous platforms. Signed-off-by: Lucas De Marchi Reviewed-by: Matt Roper --- lib/gpu_cmds.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/gpu_cmds.c') diff --git a/lib/gpu_cmds.c b/lib/gpu_cmds.c index bb35204fb..648451f74 100644 --- a/lib/gpu_cmds.c +++ b/lib/gpu_cmds.c @@ -259,8 +259,7 @@ gen11_fill_surface_state(struct intel_bb *ibb, } static uint32_t -gen7_fill_binding_table(struct intel_bb *ibb, - struct intel_buf *buf) +fill_binding_table(struct intel_bb *ibb, struct intel_buf *buf) { uint32_t binding_table_offset; uint32_t *binding_table; @@ -321,7 +320,7 @@ gen7_fill_interface_descriptor(struct intel_bb *ibb, uint32_t offset; uint32_t binding_table_offset, kernel_offset; - binding_table_offset = gen7_fill_binding_table(ibb, buf); + binding_table_offset = fill_binding_table(ibb, buf); kernel_offset = gen7_fill_kernel(ibb, kernel, size); intel_bb_ptr_align(ibb, 64); @@ -357,7 +356,7 @@ gen8_fill_interface_descriptor(struct intel_bb *ibb, uint32_t offset; uint32_t binding_table_offset, kernel_offset; - binding_table_offset = gen7_fill_binding_table(ibb, buf); + binding_table_offset = fill_binding_table(ibb, buf); kernel_offset = gen7_fill_kernel(ibb, kernel, size); intel_bb_ptr_align(ibb, 64); @@ -803,7 +802,7 @@ xehp_fill_interface_descriptor(struct intel_bb *ibb, { uint32_t binding_table_offset, kernel_offset; - binding_table_offset = gen7_fill_binding_table(ibb, dst); + binding_table_offset = fill_binding_table(ibb, dst); kernel_offset = gen7_fill_kernel(ibb, kernel, size); memset(idd, 0, sizeof(*idd)); -- cgit v1.2.3