소스 검색

r600: hopefully fix segfault.

tags/7.8-rc1
Dave Airlie 16 년 전
부모
커밋
c3c8c40cab
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      src/mesa/drivers/dri/r600/r700_assembler.c

+ 2
- 1
src/mesa/drivers/dri/r600/r700_assembler.c 파일 보기

@@ -6421,6 +6421,8 @@ GLboolean RelocProgram(r700_AssemblerBase * pAsm)
R700ShaderInstruction * pInst;
R700ControlFlowGenericClause * pCFInst;

plstCFmain = pAsm->CALLSTACK[0].plstCFInstructions_local;

/* remove flags init if they are not used */
if((pAsm->unCFflags & HAS_LOOPRET) == 0)
{
@@ -6462,7 +6464,6 @@ GLboolean RelocProgram(r700_AssemblerBase * pAsm)
pAsm->pR700Shader->uStackSize = ((pAsm->CALLSTACK[0].max + 3)>>2) + 2;
}

plstCFmain = pAsm->CALLSTACK[0].plstCFInstructions_local;
unCFoffset = plstCFmain->uNumOfNode;

/* Reloc subs */

Loading…
취소
저장