galahad: Enumerate all methods that are missing.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 6 Jul 2012 18:13:44 +0000 (19:13 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 6 Jul 2012 18:13:44 +0000 (19:13 +0100)
src/gallium/drivers/galahad/glhd_context.c
src/gallium/drivers/galahad/glhd_screen.c

index 494756935f0a2fb828833a420fb3049ee5cdeed8..fe8fc81f01fc9862c895912f41eb2c1f254152e8 100644 (file)
@@ -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
 
index 6ba8e51c749ec5c80aa46fe3d8a492065f85a59b..022a0096664526dcfed563338f3a347cd2e8987a 100644 (file)
@@ -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;