}
/* Context initialization. */
+struct draw_stage* r300_draw_swtcl_stage(struct r300_context* r300);
void r300_init_state_functions(struct r300_context* r300);
void r300_init_surface_functions(struct r300_context* r300);
case EMIT_4F:
return R300_DATA_TYPE_FLOAT_4;
break;
+ default:
+ debug_printf("r300: Implementation error: "
+ "Bad vertex data type!\n");
+ break;
}
+
+ return 0;
}
/* Update the vertex_info struct in our r300_context.
vinfo.hwfmt[0] = 0x5555; /* XXX this is classic Mesa bonghits */
if (!pos) {
- debug_printf("r300: Forcing vertex position attribute emit...");
+ debug_printf("r300: Forcing vertex position attribute emit...\n");
}
draw_emit_vertex_attr(&vinfo, EMIT_4F, INTERP_POS,
size_t size = (size_t)vertex_size * (size_t)count;
if (r300render->vbo) {
- pipe_buffer_reference(screen, r300render->vbo, NULL);
+ pipe_buffer_reference(screen, &r300render->vbo, NULL);
}
r300render->vbo_size = MAX2(size, r300render->vbo_alloc_size);
return (unsigned char*)r300render->vbo_map + r300render->vbo_offset;
}
-static void* r300_swtcl_render_unmap_vertices(struct vbuf_render* render,
- ushort min,
- ushort max)
+static void r300_swtcl_render_unmap_vertices(struct vbuf_render* render,
+ ushort min,
+ ushort max)
{
struct r300_swtcl_render* r300render = r300_swtcl_render(render);
struct pipe_screen* screen = r300render->r300->context.screen;
struct r300_swtcl_render* r300render = r300_swtcl_render(render);
struct pipe_screen* screen = r300render->r300->context.screen;
- pipe_buffer_reference(screen, r300render->vbo, NULL);
+ pipe_buffer_reference(screen, &r300render->vbo, NULL);
}
static boolean r300_swtcl_render_set_primitive(struct vbuf_render* render,