diff options
author | Richard Li <richardradeon@gmail.com> | 2009-11-17 16:25:02 -0500 |
---|---|---|
committer | Richard Li <richardradeon@gmail.com> | 2009-11-18 15:38:45 -0500 |
commit | 3132853e1242607d5ff62785cd7dad5ef3a783d0 (patch) | |
tree | 60fae013d3ad8f2afef2bb16c7370d027487618f /src/mesa/drivers/dri/r600/r700_shader.c | |
parent | fafc016e1f298cfea332124e9d64e8e010ee9c45 (diff) |
r600 : Initial version of glsl fc.
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_shader.c')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_shader.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_shader.c b/src/mesa/drivers/dri/r600/r700_shader.c index 955ea4e4e1..2eed1acc2f 100644 --- a/src/mesa/drivers/dri/r600/r700_shader.c +++ b/src/mesa/drivers/dri/r600/r700_shader.c @@ -159,13 +159,18 @@ void Init_R700_Shader(R700_Shader * pShader) pShader->lstVTXInstructions.uNumOfNode=0; } +void SetActiveCFlist(R700_Shader *pShader, TypedShaderList * plstCF) +{ + pShader->plstCFInstructions_active = plstCF; +} + void AddCFInstruction(R700_Shader *pShader, R700ControlFlowInstruction *pCFInst) { R700ControlFlowSXClause* pSXClause; R700ControlFlowSMXClause* pSMXClause; - pCFInst->m_uIndex = pShader->lstCFInstructions.uNumOfNode; - AddInstToList(&(pShader->lstCFInstructions), + pCFInst->m_uIndex = pShader->plstCFInstructions_active->uNumOfNode; + AddInstToList(pShader->plstCFInstructions_active, (R700ShaderInstruction*)pCFInst); pShader->uShaderBinaryDWORDSize += GetInstructionSize(pCFInst->m_ShaderInstType); |