diff options
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_vertprog.c')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_vertprog.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_vertprog.c b/src/mesa/drivers/dri/r600/r700_vertprog.c index f8f862b33aa..86a67ab766f 100644 --- a/src/mesa/drivers/dri/r600/r700_vertprog.c +++ b/src/mesa/drivers/dri/r600/r700_vertprog.c @@ -301,6 +301,11 @@ void r700SelectVertexShader(GLcontext *ctx) unsigned int unBit; unsigned int i; + if (context->radeon.NewGLState & (_NEW_PROGRAM_CONSTANTS|_NEW_PROGRAM)) + { + vpc->needUpdateVF = 1; + } + if (context->radeon.radeonScreen->chip_family < CHIP_FAMILY_RV770) { vpc->r700AsmCode.bR6xx = 1; @@ -341,6 +346,14 @@ GLboolean r700SetupVertexProgram(GLcontext * ctx) unsigned int unNumParamData; unsigned int ui; + if (vp->needUpdateVF) + { + vp->loaded = GL_FALSE; + vp->r700Shader.bNeedsAssembly = GL_TRUE; + Process_Vertex_Program_Vfetch_Instructions(vp, &(vp->mesa_program)); + r600DeleteShader(ctx, vp->shaderbo); + } + if(GL_FALSE == vp->loaded) { if(vp->r700Shader.bNeedsAssembly == GL_TRUE) |