diff --git a/.pick_status.json b/.pick_status.json index 979664d6ceb..dda2a774674 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -714,7 +714,7 @@ "description": "brw: don't read past the end of old_src buffer in resize_sources()", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "d9e737212d5e9a8d61a50592234aa35c2ab530d7", "notes": null diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 6d6daade4d2..e1f56a988cb 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]; }