r300: Fix scons build.

This commit is contained in:
José Fonseca
2010-01-01 00:35:43 +00:00
parent 89d778ff02
commit 486ccb55a8
3 changed files with 11 additions and 4 deletions

1
.gitignore vendored
View File

@@ -4,6 +4,7 @@
*.ilk *.ilk
*.o *.o
*.obj *.obj
*.os
*.pc *.pc
*.pdb *.pdb
*.pyc *.pyc

View File

@@ -4,7 +4,12 @@ r300compiler = SConscript('#/src/mesa/drivers/dri/r300/compiler/SConscript')
env = env.Clone() env = env.Clone()
# add the paths for r300compiler # add the paths for r300compiler
env.Append(CPPPATH = ['#/src/mesa/drivers/dri/r300/compiler', '#/include', '#/src/mesa']) env.Append(CPPPATH = [
'#/src/mesa/drivers/dri/r300/compiler',
'#/src/gallium/winsys/drm/radeon/core',
'#/include',
'#/src/mesa',
])
r300 = env.ConvenienceLibrary( r300 = env.ConvenienceLibrary(
target = 'r300', target = 'r300',

View File

@@ -362,6 +362,7 @@ boolean r300_swtcl_draw_range_elements(struct pipe_context* pipe,
{ {
struct r300_context* r300 = r300_context(pipe); struct r300_context* r300 = r300_context(pipe);
int i; int i;
void* indices;
if (!u_trim_pipe_prim(mode, &count)) { if (!u_trim_pipe_prim(mode, &count)) {
return FALSE; return FALSE;
@@ -378,8 +379,8 @@ boolean r300_swtcl_draw_range_elements(struct pipe_context* pipe,
draw_set_mapped_vertex_buffer(r300->draw, i, buf); draw_set_mapped_vertex_buffer(r300->draw, i, buf);
} }
void* indices = pipe_buffer_map(pipe->screen, indexBuffer, indices = pipe_buffer_map(pipe->screen, indexBuffer,
PIPE_BUFFER_USAGE_CPU_READ); PIPE_BUFFER_USAGE_CPU_READ);
draw_set_mapped_element_buffer_range(r300->draw, indexSize, draw_set_mapped_element_buffer_range(r300->draw, indexSize,
minIndex, maxIndex, indices); minIndex, maxIndex, indices);
@@ -476,7 +477,7 @@ static void* r300_render_map_vertices(struct vbuf_render* render)
r300render->vbo_ptr = pipe_buffer_map(screen, r300render->vbo, r300render->vbo_ptr = pipe_buffer_map(screen, r300render->vbo,
PIPE_BUFFER_USAGE_CPU_WRITE); PIPE_BUFFER_USAGE_CPU_WRITE);
return (r300render->vbo_ptr + r300render->vbo_offset); return ((uint8_t*)r300render->vbo_ptr + r300render->vbo_offset);
} }
static void r300_render_unmap_vertices(struct vbuf_render* render, static void r300_render_unmap_vertices(struct vbuf_render* render,