summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2026-08-03 07:16:10 +0200
committerZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2026-08-07 10:50:14 +0200
commit928c25eba7c475c332208a21b59810517f4a0d07 (patch)
tree5a4448f062bdca7a56df69d224d31796ec9b7e98
parent26dbfea38f957501f334c3ac3e7eb1d8ee367f10 (diff)
lib/gpgpu_fill: Rename variable to reflect function purpose
Proved gpgpu kernel for xehp works both for i915 and xe. Rename i915 to avoid name confusion as upcoming change alters shader processing (canonicalizing offset). Cc: Dominik Karol Piątkowski <dominik.karol.piatkowski@intel.com> Reviewed-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@intel.com> Link: https://lore.kernel.org/r/20260803051608.61167-5-zbigniew.kempczynski@intel.com Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
-rw-r--r--lib/gpgpu_fill.c10
-rw-r--r--lib/gpgpu_fill.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/gpgpu_fill.c b/lib/gpgpu_fill.c
index 2c47169d2..e7c9c3cd2 100644
--- a/lib/gpgpu_fill.c
+++ b/lib/gpgpu_fill.c
@@ -282,9 +282,9 @@ __gen9_gpgpu_fillfunc(int i915,
intel_bb_destroy(ibb);
}
-static struct gpgpu_shader *__xehp_gpgpu_kernel(int i915)
+static struct gpgpu_shader *__xehp_gpgpu_kernel(int fd)
{
- struct gpgpu_shader *kernel = gpgpu_shader_create(i915);
+ struct gpgpu_shader *kernel = gpgpu_shader_create(fd);
emit_iga64_code(kernel, gpgpu_fill, R"(
// fill up r1 with target colour
@@ -407,7 +407,7 @@ static struct gpgpu_shader *__xe3p_gpgpu_kernel(int xe)
return kernel;
}
-void xehp_gpgpu_fillfunc(int i915,
+void xehp_gpgpu_fillfunc(int fd,
struct intel_buf *buf,
unsigned int x, unsigned int y,
unsigned int width, unsigned int height,
@@ -417,12 +417,12 @@ void xehp_gpgpu_fillfunc(int i915,
struct gpgpu_shader *kernel;
struct xehp_interface_descriptor_data idd;
- ibb = intel_bb_create(i915, PAGE_SIZE);
+ ibb = intel_bb_create(fd, PAGE_SIZE);
intel_bb_add_intel_buf(ibb, buf, true);
intel_bb_ptr_set(ibb, BATCH_STATE_SPLIT);
- kernel = __xehp_gpgpu_kernel(i915);
+ kernel = __xehp_gpgpu_kernel(fd);
xehp_fill_interface_descriptor(ibb, buf, kernel->instr,
kernel->size * 4, &idd);
gpgpu_shader_destroy(kernel);
diff --git a/lib/gpgpu_fill.h b/lib/gpgpu_fill.h
index 96d291c98..6f2d74d70 100644
--- a/lib/gpgpu_fill.h
+++ b/lib/gpgpu_fill.h
@@ -62,7 +62,7 @@ void gen12_gpgpu_fillfunc(int i915,
uint8_t color);
void
-xehp_gpgpu_fillfunc(int i915,
+xehp_gpgpu_fillfunc(int fd,
struct intel_buf *dst,
unsigned int x, unsigned int y,
unsigned int width, unsigned int height,