summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/galahad
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-07-06 19:13:44 +0100
committerJosé Fonseca <[email protected]>2012-07-06 19:13:44 +0100
commit7bd926af8935f66e3a0e5c7d662c4ea6f30a54c6 (patch)
tree683addf6d8e4ac7f2a1b954ea8435d65e361491a /src/gallium/drivers/galahad
parent3d2550be9c615431442a70812eb9faed01842dbf (diff)
galahad: Enumerate all methods that are missing.
Diffstat (limited to 'src/gallium/drivers/galahad')
-rw-r--r--src/gallium/drivers/galahad/glhd_context.c33
-rw-r--r--src/gallium/drivers/galahad/glhd_screen.c40
2 files changed, 49 insertions, 24 deletions
diff --git a/src/gallium/drivers/galahad/glhd_context.c b/src/gallium/drivers/galahad/glhd_context.c
index 494756935f0..fe8fc81f01f 100644
--- a/src/gallium/drivers/galahad/glhd_context.c
+++ b/src/gallium/drivers/galahad/glhd_context.c
@@ -981,6 +981,7 @@ galahad_context_create(struct pipe_screen *_screen, struct pipe_context *pipe)
glhd_pipe->base . _member = pipe -> _member ? galahad_context_ ## _member : NULL
GLHD_PIPE_INIT(draw_vbo);
+ GLHD_PIPE_INIT(render_condition);
GLHD_PIPE_INIT(create_query);
GLHD_PIPE_INIT(destroy_query);
GLHD_PIPE_INIT(begin_query);
@@ -992,6 +993,8 @@ galahad_context_create(struct pipe_screen *_screen, struct pipe_context *pipe)
GLHD_PIPE_INIT(create_sampler_state);
GLHD_PIPE_INIT(bind_fragment_sampler_states);
GLHD_PIPE_INIT(bind_vertex_sampler_states);
+ //GLHD_PIPE_INIT(bind_geometry_sampler_states);
+ //GLHD_PIPE_INIT(bind_compute_sampler_states);
GLHD_PIPE_INIT(delete_sampler_state);
GLHD_PIPE_INIT(create_rasterizer_state);
GLHD_PIPE_INIT(bind_rasterizer_state);
@@ -1005,13 +1008,16 @@ galahad_context_create(struct pipe_screen *_screen, struct pipe_context *pipe)
GLHD_PIPE_INIT(create_vs_state);
GLHD_PIPE_INIT(bind_vs_state);
GLHD_PIPE_INIT(delete_vs_state);
+ //GLHD_PIPE_INIT(create_gs_state);
+ //GLHD_PIPE_INIT(bind_gs_state);
+ //GLHD_PIPE_INIT(delete_gs_state);
GLHD_PIPE_INIT(create_vertex_elements_state);
GLHD_PIPE_INIT(bind_vertex_elements_state);
GLHD_PIPE_INIT(delete_vertex_elements_state);
GLHD_PIPE_INIT(set_blend_color);
GLHD_PIPE_INIT(set_stencil_ref);
- GLHD_PIPE_INIT(set_clip_state);
GLHD_PIPE_INIT(set_sample_mask);
+ GLHD_PIPE_INIT(set_clip_state);
GLHD_PIPE_INIT(set_constant_buffer);
GLHD_PIPE_INIT(set_framebuffer_state);
GLHD_PIPE_INIT(set_polygon_stipple);
@@ -1019,28 +1025,39 @@ galahad_context_create(struct pipe_screen *_screen, struct pipe_context *pipe)
GLHD_PIPE_INIT(set_viewport_state);
GLHD_PIPE_INIT(set_fragment_sampler_views);
GLHD_PIPE_INIT(set_vertex_sampler_views);
- GLHD_PIPE_INIT(create_sampler_view);
- GLHD_PIPE_INIT(sampler_view_destroy);
- GLHD_PIPE_INIT(create_surface);
- GLHD_PIPE_INIT(surface_destroy);
+ //GLHD_PIPE_INIT(set_geometry_sampler_views);
+ //GLHD_PIPE_INIT(set_compute_sampler_views);
+ //GLHD_PIPE_INIT(set_shader_resources);
GLHD_PIPE_INIT(set_vertex_buffers);
GLHD_PIPE_INIT(set_index_buffer);
//GLHD_PIPE_INIT(create_stream_output_target);
//GLHD_PIPE_INIT(stream_output_target_destroy);
//GLHD_PIPE_INIT(set_stream_output_targets);
GLHD_PIPE_INIT(resource_copy_region);
+ //GLHD_PIPE_INIT(resource_resolve);
GLHD_PIPE_INIT(clear);
GLHD_PIPE_INIT(clear_render_target);
GLHD_PIPE_INIT(clear_depth_stencil);
GLHD_PIPE_INIT(flush);
- GLHD_PIPE_INIT(render_condition);
- //GLHD_PIPE_INIT(texture_barrier);
+ GLHD_PIPE_INIT(create_sampler_view);
+ GLHD_PIPE_INIT(sampler_view_destroy);
+ GLHD_PIPE_INIT(create_surface);
+ GLHD_PIPE_INIT(surface_destroy);
GLHD_PIPE_INIT(get_transfer);
GLHD_PIPE_INIT(transfer_destroy);
GLHD_PIPE_INIT(transfer_map);
- GLHD_PIPE_INIT(transfer_unmap);
GLHD_PIPE_INIT(transfer_flush_region);
+ GLHD_PIPE_INIT(transfer_unmap);
GLHD_PIPE_INIT(transfer_inline_write);
+ //GLHD_PIPE_INIT(texture_barrier);
+ //GLHD_PIPE_INIT(create_video_decoder);
+ //GLHD_PIPE_INIT(create_video_buffer);
+ //GLHD_PIPE_INIT(create_compute_state);
+ //GLHD_PIPE_INIT(bind_compute_state);
+ //GLHD_PIPE_INIT(delete_compute_state);
+ //GLHD_PIPE_INIT(set_compute_resources);
+ //GLHD_PIPE_INIT(set_global_binding);
+ //GLHD_PIPE_INIT(launch_grid);
#undef GLHD_PIPE_INIT
diff --git a/src/gallium/drivers/galahad/glhd_screen.c b/src/gallium/drivers/galahad/glhd_screen.c
index 6ba8e51c749..022a0096664 100644
--- a/src/gallium/drivers/galahad/glhd_screen.c
+++ b/src/gallium/drivers/galahad/glhd_screen.c
@@ -289,22 +289,30 @@ galahad_screen_create(struct pipe_screen *screen)
return screen;
}
- glhd_screen->base.destroy = galahad_screen_destroy;
- glhd_screen->base.get_name = galahad_screen_get_name;
- glhd_screen->base.get_vendor = galahad_screen_get_vendor;
- glhd_screen->base.get_param = galahad_screen_get_param;
- glhd_screen->base.get_shader_param = galahad_screen_get_shader_param;
- glhd_screen->base.get_paramf = galahad_screen_get_paramf;
- glhd_screen->base.is_format_supported = galahad_screen_is_format_supported;
- glhd_screen->base.context_create = galahad_screen_context_create;
- glhd_screen->base.resource_create = galahad_screen_resource_create;
- glhd_screen->base.resource_from_handle = galahad_screen_resource_from_handle;
- glhd_screen->base.resource_get_handle = galahad_screen_resource_get_handle;
- glhd_screen->base.resource_destroy = galahad_screen_resource_destroy;
- glhd_screen->base.flush_frontbuffer = galahad_screen_flush_frontbuffer;
- glhd_screen->base.fence_reference = galahad_screen_fence_reference;
- glhd_screen->base.fence_signalled = galahad_screen_fence_signalled;
- glhd_screen->base.fence_finish = galahad_screen_fence_finish;
+#define GLHD_SCREEN_INIT(_member) \
+ glhd_screen->base . _member = screen -> _member ? galahad_screen_ ## _member : NULL
+
+ GLHD_SCREEN_INIT(destroy);
+ GLHD_SCREEN_INIT(get_name);
+ GLHD_SCREEN_INIT(get_vendor);
+ GLHD_SCREEN_INIT(get_param);
+ GLHD_SCREEN_INIT(get_shader_param);
+ //GLHD_SCREEN_INIT(get_video_param);
+ //GLHD_SCREEN_INIT(get_compute_param);
+ GLHD_SCREEN_INIT(get_paramf);
+ GLHD_SCREEN_INIT(is_format_supported);
+ //GLHD_SCREEN_INIT(is_video_format_supported);
+ GLHD_SCREEN_INIT(context_create);
+ GLHD_SCREEN_INIT(resource_create);
+ GLHD_SCREEN_INIT(resource_from_handle);
+ GLHD_SCREEN_INIT(resource_get_handle);
+ GLHD_SCREEN_INIT(resource_destroy);
+ GLHD_SCREEN_INIT(flush_frontbuffer);
+ GLHD_SCREEN_INIT(fence_reference);
+ GLHD_SCREEN_INIT(fence_signalled);
+ GLHD_SCREEN_INIT(fence_finish);
+
+#undef GLHD_SCREEN_INIT
glhd_screen->screen = screen;