i965/wm: use binding size for ubo/ssbo when automatic size is unset
[mesa.git] / src / mesa / drivers / dri / i965 / brw_eu_util.c
index f9126abf9a067470c08b68254625c10032256b76..f74e3fe58d31a0ca5c822f719e379ebac499f24e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  Copyright (C) Intel Corp.  2006.  All Rights Reserved.
- Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
+ Intel funded Tungsten Graphics to
  develop this 3D driver.
 
  Permission is hereby granted, free of charge, to any person obtaining
@@ -26,7 +26,7 @@
  **********************************************************************/
  /*
   * Authors:
-  *   Keith Whitwell <keith@tungstengraphics.com>
+  *   Keith Whitwell <keithw@vmware.com>
   */
 
 
 #include "brw_eu.h"
 
 
-void brw_math_invert( struct brw_compile *p,
+void brw_math_invert( struct brw_codegen *p,
                             struct brw_reg dst,
                             struct brw_reg src)
 {
-   brw_math( p,
+   gen4_math(p,
             dst,
             BRW_MATH_FUNCTION_INV,
             0,
             src,
-            BRW_MATH_PRECISION_FULL,
-            BRW_MATH_DATA_VECTOR );
+            BRW_MATH_PRECISION_FULL);
 }
 
 
 
-void brw_copy4(struct brw_compile *p,
+void brw_copy4(struct brw_codegen *p,
               struct brw_reg dst,
               struct brw_reg src,
               unsigned count)
@@ -69,7 +68,7 @@ void brw_copy4(struct brw_compile *p,
 }
 
 
-void brw_copy8(struct brw_compile *p,
+void brw_copy8(struct brw_codegen *p,
               struct brw_reg dst,
               struct brw_reg src,
               unsigned count)
@@ -87,7 +86,7 @@ void brw_copy8(struct brw_compile *p,
 }
 
 
-void brw_copy_indirect_to_indirect(struct brw_compile *p,
+void brw_copy_indirect_to_indirect(struct brw_codegen *p,
                                   struct brw_indirect dst_ptr,
                                   struct brw_indirect src_ptr,
                                   unsigned count)
@@ -103,7 +102,7 @@ void brw_copy_indirect_to_indirect(struct brw_compile *p,
 }
 
 
-void brw_copy_from_indirect(struct brw_compile *p,
+void brw_copy_from_indirect(struct brw_codegen *p,
                            struct brw_reg dst,
                            struct brw_indirect ptr,
                            unsigned count)