summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-12-19 10:20:14 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-12-19 11:10:35 +0000
commit9791c16b317d1536ba5c2d67398d17b80da2f015 (patch)
treef48e5da697ce08f0473d5ab0d0397d196be53317 /src/mesa
parent93d90c6b570298ea96c5952af1acb31b0a89362c (diff)
965: populate fp_input_count in setup key
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/i965simple/brw_sf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/i965simple/brw_sf.c b/src/mesa/pipe/i965simple/brw_sf.c
index e7c02beda5..7b6fd3fff6 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: