r300-gallium: Fix linker error a few linker warnings.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 13 Feb 2009 04:47:15 +0000 (20:47 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 13 Feb 2009 04:47:15 +0000 (20:47 -0800)
A few prototypes, a missing header, a misspelled macro.

src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_emit.h

index a3b2772e155f69821ff60f1f1668d14a59bf0b9c..c0990cabd9c14edb75fbc776b2b47db3d7422646 100644 (file)
@@ -86,7 +86,7 @@ void r300_emit_fragment_shader(struct r300_context* r300,
     int i;
     BEGIN_CS(0);
 
-    OUT_CS_REG(R300_US_CONFIG, MAX(fs->indirections - 1, 0));
+    OUT_CS_REG(R300_US_CONFIG, MAX2(fs->indirections - 1, 0));
     OUT_CS_REG(R300_US_PIXSIZE, fs->shader.stack_size);
     /* XXX figure out exactly how big the sizes are on this reg */
     OUT_CS_REG(R300_US_CODE_OFFSET, 0x0);
index b6e69386f957003fc4ff5ca48531a93d6a583b8e..4c5a6d292e878ad74e040d63a83361fbadd3c45b 100644 (file)
@@ -20,6 +20,8 @@
  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  * USE OR OTHER DEALINGS IN THE SOFTWARE. */
 
+#include "util/u_math.h"
+
 #include "r300_context.h"
 #include "r300_cs.h"
 #include "r300_screen.h"
@@ -33,4 +35,13 @@ void r300_emit_blend_color_state(struct r300_context* r300,
 void r300_emit_dsa_state(struct r300_context* r300,
                          struct r300_dsa_state* dsa);
 
+void r300_emit_fragment_shader(struct r300_context* r300,
+                               struct r300_fragment_shader* fs);
+
+void r500_emit_fragment_shader(struct r300_context* r300,
+                               struct r500_fragment_shader* fs);
+
+void r300_emit_fb_state(struct r300_context* r300,
+                        struct pipe_framebuffer_state* fb);
+
 void r300_emit_rs_state(struct r300_context* r300, struct r300_rs_state* rs);