]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe: Adjust ringbuf emission for maximum possible size
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Thu, 3 Apr 2025 19:03:01 +0000 (20:03 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 15 Apr 2025 14:20:41 +0000 (07:20 -0700)
MAX_JOB_SIZE_DW seems to be undersized. For the worst case emission from
 __emit_job_gen12_render_compute I hand count 57 dwords so lets bump this
to an even 58.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Link: https://lore.kernel.org/r/20250403190317.6064-2-tvrtko.ursulin@igalia.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_ring_ops_types.h

index 1ae56e2ee7b460484753658dddcaac66e6c2c338..d7e3e150a9a59c386862cb216bd902e642b470ad 100644 (file)
@@ -8,7 +8,7 @@
 
 struct xe_sched_job;
 
-#define MAX_JOB_SIZE_DW 48
+#define MAX_JOB_SIZE_DW 58
 #define MAX_JOB_SIZE_BYTES (MAX_JOB_SIZE_DW * 4)
 
 /**