nv50: fix GP state bind and validate

This commit is contained in:
Christoph Bumiller
2010-09-27 19:35:50 +02:00
parent 175261a1f1
commit e0b93c5beb
2 changed files with 5 additions and 1 deletions
@@ -362,6 +362,10 @@ nv50_geomprog_validate(struct nv50_context *nv50)
struct nv50_program *p = nv50->geomprog;
struct nouveau_stateobj *so = NULL;
/* GP may be NULL, but VP and FP may not */
if (!p)
return NULL; /* GP is deactivated in linkage validation */
if (!p->translated) {
if (nv50_program_validate(p))
nv50_gp_update_stateobj(nv50, p);
+1 -1
View File
@@ -663,7 +663,7 @@ nv50_gp_state_bind(struct pipe_context *pipe, void *hwcso)
{
struct nv50_context *nv50 = nv50_context(pipe);
nv50->fragprog = hwcso;
nv50->geomprog = hwcso;
nv50->dirty |= NV50_NEW_GEOMPROG;
}