From a79931421c45bd014084c98213608a6c00f50b77 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 11 Apr 2026 23:35:33 -0700 Subject: [PATCH] jay: Assert that source is not null in jay_copy_strided Catch bugs earlier. Part-of: --- src/intel/compiler/jay/jay_builder.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/compiler/jay/jay_builder.h b/src/intel/compiler/jay/jay_builder.h index b6460385054..e5cd7814e55 100644 --- a/src/intel/compiler/jay/jay_builder.h +++ b/src/intel/compiler/jay/jay_builder.h @@ -603,6 +603,8 @@ _jay_SEND(jay_builder *b, const struct jayb_send_params p) static inline void jay_copy_strided(jay_builder *b, jay_def dst, jay_def src, bool src_strided) { + assert(!jay_is_null(src)); + unsigned src_stride = src_strided ? jay_ugpr_per_grf(b->shader) : 1; uint32_t n = MIN2(jay_num_values(dst), jay_num_values(src) / src_stride);