mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
i965: Actually track the "if" depth in loop in the new FS backend.
Fixes: glsl-fs-if-nested-loop.
This commit is contained in:
parent
fceb78e3cc
commit
e10508812a
1 changed files with 2 additions and 0 deletions
|
|
@ -1789,6 +1789,7 @@ fs_visitor::generate_code()
|
|||
case BRW_OPCODE_IF:
|
||||
assert(if_stack_depth < 16);
|
||||
if_stack[if_stack_depth] = brw_IF(p, BRW_EXECUTE_8);
|
||||
if_depth_in_loop[loop_stack_depth]++;
|
||||
if_stack_depth++;
|
||||
break;
|
||||
case BRW_OPCODE_ELSE:
|
||||
|
|
@ -1798,6 +1799,7 @@ fs_visitor::generate_code()
|
|||
case BRW_OPCODE_ENDIF:
|
||||
if_stack_depth--;
|
||||
brw_ENDIF(p , if_stack[if_stack_depth]);
|
||||
if_depth_in_loop[loop_stack_depth]--;
|
||||
break;
|
||||
|
||||
case BRW_OPCODE_DO:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue