i965: Load NV program matrices when required.
authorEric Anholt <eric@anholt.net>
Thu, 24 Sep 2009 17:40:32 +0000 (10:40 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 24 Sep 2009 20:34:06 +0000 (13:34 -0700)
src/mesa/drivers/dri/i965/brw_curbe.c

index 0b0e6931a06ae996c7b32f573ef53f8a55071efa..4be6c77aa1e359d571c1653a30c693d61c7f2790 100644 (file)
@@ -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.
        */