浏览代码

nir: add nir_foreach_phi_src_safe()

Signed-off-by: Connor Abbott <connor.w.abbott@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
tags/11.1-branchpoint
Connor Abbott 10 年前
父节点
当前提交
f41e108d8b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/glsl/nir/nir.h

+ 2
- 0
src/glsl/nir/nir.h 查看文件

@@ -1101,6 +1101,8 @@ typedef struct {

#define nir_foreach_phi_src(phi, entry) \
foreach_list_typed(nir_phi_src, entry, node, &(phi)->srcs)
#define nir_foreach_phi_src_safe(phi, entry) \
foreach_list_typed_safe(nir_phi_src, entry, node, &(phi)->srcs)

typedef struct {
nir_instr instr;

正在加载...
取消
保存