mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
i965: Don't use the head sentinel as an fs_inst in Gen4 workaround code.
When walking backwards, we want to stop at the head sentinel, which is where scan_inst->prev->prev == NULL, not scan_inst->prev == NULL. Fixes random crashes, as well as valgrind errors. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
fc19c4aaf1
commit
ecc78eab11
1 changed files with 1 additions and 1 deletions
|
|
@ -2355,7 +2355,7 @@ fs_visitor::insert_gen4_pre_send_dependency_workarounds(fs_inst *inst)
|
|||
* program.
|
||||
*/
|
||||
for (fs_inst *scan_inst = (fs_inst *)inst->prev;
|
||||
scan_inst != NULL;
|
||||
!scan_inst->is_head_sentinel();
|
||||
scan_inst = (fs_inst *)scan_inst->prev) {
|
||||
|
||||
/* If we hit control flow, assume that there *are* outstanding
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue