i965g: avoid use of internally generated immediates
authorKeith Whitwell <keithw@vmware.com>
Fri, 6 Nov 2009 21:17:08 +0000 (21:17 +0000)
committerKeith Whitwell <keithw@vmware.com>
Thu, 12 Nov 2009 02:51:57 +0000 (18:51 -0800)
Currently not working, so don't generate more of them.

src/gallium/drivers/i965/brw_wm_fp.c

index 2a207958eb421a1f99c4d340a9e0adf0e67ac8e6..0df84f8546c8e9083bff9b6be83a0495ade23a10 100644 (file)
@@ -906,8 +906,11 @@ find_output_by_semantic( struct brw_wm_compile *c,
         return src_reg( TGSI_FILE_OUTPUT, i );
 
    /* If not found, return some arbitrary immediate value:
+    *
+    * XXX: this is a good idea but immediates are up generating extra
+    * curbe entries atm, as they would have in the original driver.
     */
-   return src_imm1f(c, 1.0);
+   return src_reg( TGSI_FILE_OUTPUT, 0 ); /* src_imm1f(c, 1.0); */
 }