Skip to content

intel/compiler: Call inst->resize_sources before setting the sources

Kenneth Graunke requested to merge kwg/mesa:resize-sources-fix into main

You should probably resize the sources array before accessing entries that might be out of bounds. inst->resize_sources() always allocates enough space for at least 3 sources, so this is really only an issue when there are 4+ sources.

Fixes: a920979d ("intel/fs: Use split sends for surface writes on gen9+") Fixes: 4f86a705 ("intel/fs: Lower DW untyped r/w messages to LSC when available") Fixes: d372abe3 ("intel/fs: Add surface OWORD BLOCK opcodes")

Merge request reports