From: Keith Whitwell Date: Wed, 19 Dec 2007 10:20:14 +0000 (+0000) Subject: 965: populate fp_input_count in setup key X-Git-Tag: android-x86-1.6~16^2~1465^2~390^2~3103 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9791c16b317d1536ba5c2d67398d17b80da2f015;p=android-x86%2Fexternal-mesa.git 965: populate fp_input_count in setup key --- diff --git a/src/mesa/pipe/i965simple/brw_sf.c b/src/mesa/pipe/i965simple/brw_sf.c index e7c02beda53..7b6fd3fff64 100644 --- a/src/mesa/pipe/i965simple/brw_sf.c +++ b/src/mesa/pipe/i965simple/brw_sf.c @@ -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: