diff options
author | Eric Anholt <[email protected]> | 2009-09-24 11:58:33 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-09-24 13:34:06 -0700 |
commit | 726a04a2cd1bf159a6c40584b4b2b9bc5948a82e (patch) | |
tree | c008dc09ea2e22feac5246d2301332219855828a /src/mesa/shader/nvvertparse.c | |
parent | a9a47afe7e87075432ce2d393b55409fcb7149ac (diff) |
i965: Emit zero initialization for NV VP temporaries as required.
This is similar to what r300 does inside the driver, but I've added it as
a generic option since it seems most hardware will want it.
Fixes piglit nv-init-zero-reg.vpfp and nv-init-zero-addr.vpfp.
Diffstat (limited to 'src/mesa/shader/nvvertparse.c')
-rw-r--r-- | src/mesa/shader/nvvertparse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/nvvertparse.c b/src/mesa/shader/nvvertparse.c index a94e6b8b803..6ab8a14cb9b 100644 --- a/src/mesa/shader/nvvertparse.c +++ b/src/mesa/shader/nvvertparse.c @@ -1423,6 +1423,7 @@ _mesa_parse_nv_vertex_program(GLcontext *ctx, GLenum dstTarget, program->Base.NumParameters = program->Base.Parameters->NumParameters; _mesa_setup_nv_temporary_count(ctx, &program->Base); + _mesa_emit_nv_temp_initialization(ctx, &program->Base); } else { /* Error! */ |