diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index d11280f5802..c03071f9c6d 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -188,7 +188,7 @@ fs_inst::resize_sources(uint8_t num_sources) } else { new_src = new brw_reg[num_sources]; - for (unsigned i = 0; i < num_sources; i++) + for (unsigned i = 0; i < this->sources; i++) new_src[i] = old_src[i]; }