965: populate fp_input_count in setup key
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 19 Dec 2007 10:20:14 +0000 (10:20 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 19 Dec 2007 11:10:35 +0000 (11:10 +0000)
src/mesa/pipe/i965simple/brw_sf.c

index e7c02beda533cb9021958e6f5eece1471ee44fec..7b6fd3fff64f5ec29b3b5ad358b6ed0e83f0ca6c 100644 (file)
@@ -128,6 +128,10 @@ static void upload_sf_prog( struct brw_context *brw )
    /* CACHE_NEW_VS_PROG */
    key.vp_output_count = brw->vs.prog_data->outputs_written;
 
+   /* BRW_NEW_FS */
+   key.fp_input_count = brw->attribs.FragmentProgram->info.nr_regs[TGSI_FILE_INPUT];
+
+
    /* BRW_NEW_REDUCED_PRIMITIVE */
    switch (brw->reduced_primitive) {
    case PIPE_PRIM_TRIANGLES: