소스 검색

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;

Loading…
취소
저장