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/nvprogram.h | |
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/nvprogram.h')
-rw-r--r-- | src/mesa/shader/nvprogram.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/nvprogram.h b/src/mesa/shader/nvprogram.h index 0ed143d52f7..8ee59661bd0 100644 --- a/src/mesa/shader/nvprogram.h +++ b/src/mesa/shader/nvprogram.h @@ -106,4 +106,8 @@ _mesa_GetProgramNamedParameterdvNV(GLuint id, GLsizei len, const GLubyte *name, extern void _mesa_setup_nv_temporary_count(GLcontext *ctx, struct gl_program *program); +extern void +_mesa_emit_nv_temp_initialization(GLcontext *ctx, + struct gl_program *program); + #endif |