Module: Mesa
Branch: mesa_7_6_branch
Commit: 9018a7dd175caa9a0fbf940b7e66aa9411d2d965
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9018a7dd175caa9a0fbf940b7e66aa9411d2d965

Author: Eric Anholt <[email protected]>
Date:   Thu Sep 24 10:40:32 2009 -0700

i965: Load NV program matrices when required.

---

 src/mesa/drivers/dri/i965/brw_curbe.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_curbe.c 
b/src/mesa/drivers/dri/i965/brw_curbe.c
index 0b0e693..4be6c77 100644
--- a/src/mesa/drivers/dri/i965/brw_curbe.c
+++ b/src/mesa/drivers/dri/i965/brw_curbe.c
@@ -248,6 +248,9 @@ static void prepare_constant_buffer(struct brw_context *brw)
       GLuint offset = brw->curbe.vs_start * 16;
       GLuint nr = brw->vs.prog_data->nr_params / 4;
 
+      if (brw->vertex_program->IsNVProgram)
+        _mesa_load_tracked_matrices(ctx);
+
       /* Updates the ParamaterValues[i] pointers for all parameters of the
        * basic type of PROGRAM_STATE_VAR.
        */

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to