r300g: move vborender context function to seperate file
authorMaciej Cencora <m.cencora@gmail.com>
Sun, 25 Oct 2009 12:22:22 +0000 (13:22 +0100)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 7 Nov 2009 19:53:06 +0000 (11:53 -0800)
r300g: Un-migrate r300_draw_render.

It'll make maintaining the SW TCL path easier.

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

index c36350d29e20ed72a1d14cb9559d7521b4b1234d..634c803f2a801d536498e8ff5802f55f46d3991f 100644 (file)
@@ -20,6 +20,9 @@
  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  * USE OR OTHER DEALINGS IN THE SOFTWARE. */
 
+/* r300_render: Vertex and index buffer primitive emission. Contains both
+ * HW TCL fastpath rendering, and SW TCL Draw-assisted rendering. */
+
 #include "draw/draw_context.h"
 #include "draw/draw_vbuf.h"
 
@@ -38,7 +41,7 @@
 /* r300_render: Vertex and index buffer primitive emission. */
 #define R300_MAX_VBO_SIZE  (1024 * 1024)
 
-static uint32_t r300_translate_primitive(unsigned prim)
+uint32_t r300_translate_primitive(unsigned prim)
 {
     switch (prim) {
         case PIPE_PRIM_POINTS:
index 3d8f47ba75f0425c03f0f7161f3180e8e8eec93c..3f8ac1fb7a43ee651aab5307dd95e471a383999e 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef R300_RENDER_H
 #define R300_RENDER_H
 
+uint32_t r300_translate_primitive(unsigned prim);
+
 boolean r300_draw_range_elements(struct pipe_context* pipe,
                                  struct pipe_buffer* indexBuffer,
                                  unsigned indexSize,