gallium: Make PIPE_CAP_xxx enums.
[mesa.git] / src / gallium / include / pipe / p_screen.h
index 06ab4a848a40572157d953db09d9337f14300fdf..7195dc03963b3a7e781b061ed871c6b00a4acd4c 100644 (file)
@@ -79,13 +79,13 @@ struct pipe_screen {
     * Query an integer-valued capability/parameter/limit
     * \param param  one of PIPE_CAP_x
     */
-   int (*get_param)( struct pipe_screen *, int param );
+   int (*get_param)( struct pipe_screen *, enum pipe_cap param );
 
    /**
     * Query a float-valued capability/parameter/limit
     * \param param  one of PIPE_CAP_x
     */
-   float (*get_paramf)( struct pipe_screen *, int param );
+   float (*get_paramf)( struct pipe_screen *, enum pipe_cap param );
 
    struct pipe_context * (*context_create)( struct pipe_screen *,
                                            void *priv );
@@ -93,13 +93,13 @@ struct pipe_screen {
    /**
     * Check if the given pipe_format is supported as a texture or
     * drawing surface.
-    * \param tex_usage  bitmask of PIPE_BIND_*
+    * \param bindings  bitmask of PIPE_BIND_*
     * \param geom_flags  bitmask of PIPE_TEXTURE_GEOM_*
     */
    boolean (*is_format_supported)( struct pipe_screen *,
                                    enum pipe_format format,
                                    enum pipe_texture_target target,
-                                   unsigned tex_usage
+                                   unsigned bindings
                                    unsigned geom_flags );
 
    /**