diff options
author | Marek Olšák <[email protected]> | 2010-05-25 23:29:39 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-05-25 23:32:25 +0200 |
commit | e1c117d87bd1c77c6093a7a77b7994a8313b084e (patch) | |
tree | b7a12851b50dcdd36588f38dca6ecf7ccac86e9d /src/gallium/drivers/r300/r300_context.c | |
parent | 73ee4e7eb254fa26e275917d358554bbe1e6c974 (diff) |
r300g: add r300_init_render_functions, remove r300_render.h
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index 70f022e9777..505970ffb8a 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -28,7 +28,6 @@ #include "r300_context.h" #include "r300_emit.h" -#include "r300_render.h" #include "r300_screen.h" #include "r300_screen_buffer.h" #include "r300_state_invariant.h" @@ -182,25 +181,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, r300->context.destroy = r300_destroy_context; - if (r300screen->caps.has_tcl) { - r300->context.draw_arrays = r300_draw_arrays; - r300->context.draw_elements = r300_draw_elements; - r300->context.draw_range_elements = r300_draw_range_elements; - - if (r300screen->caps.is_r500) { - r300->emit_draw_arrays_immediate = r500_emit_draw_arrays_immediate; - r300->emit_draw_arrays = r500_emit_draw_arrays; - r300->emit_draw_elements = r500_emit_draw_elements; - } else { - r300->emit_draw_arrays_immediate = r300_emit_draw_arrays_immediate; - r300->emit_draw_arrays = r300_emit_draw_arrays; - r300->emit_draw_elements = r300_emit_draw_elements; - } - } else { - r300->context.draw_arrays = r300_swtcl_draw_arrays; - r300->context.draw_elements = r300_draw_elements; - r300->context.draw_range_elements = r300_swtcl_draw_range_elements; - + if (!r300screen->caps.has_tcl) { /* Create a Draw. This is used for SW TCL. */ r300->draw = draw_create(&r300->context); /* Enable our renderer. */ @@ -222,6 +203,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, r300_init_blit_functions(r300); r300_init_flush_functions(r300); r300_init_query_functions(r300); + r300_init_render_functions(r300); r300_init_state_functions(r300); r300_init_resource_functions(r300); |