gallivm/nir: add support for indirect image loading
[mesa.git] / src / gallium / auxiliary / pipe-loader / pipe_loader.h
index be7e25afb0276c3704868b2757c5459ebc0db7e4..b57df804e56a657e96616cac82337171c945466f 100644 (file)
@@ -34,7 +34,7 @@
 #define PIPE_LOADER_H
 
 #include "pipe/p_compiler.h"
-#include "state_tracker/drm_driver.h"
+#include "frontend/drm_driver.h"
 #include "util/xmlconfig.h"
 
 #ifdef __cplusplus
@@ -90,16 +90,6 @@ pipe_loader_probe(struct pipe_loader_device **devs, int ndev);
 struct pipe_screen *
 pipe_loader_create_screen(struct pipe_loader_device *dev);
 
-/**
- * Query the configuration parameters for the specified device.
- *
- * \param dev Device that will be queried.
- * \param conf The drm_conf id of the option to be queried.
- */
-const struct drm_conf_ret *
-pipe_loader_configuration(struct pipe_loader_device *dev,
-                          enum drm_conf conf);
-
 /**
  * Ensure that dev->option_cache is initialized appropriately for the driver.
  *
@@ -135,11 +125,14 @@ pipe_loader_release(struct pipe_loader_device **devs, int ndev);
  *
  * This function is platform-specific.
  *
+ * Function does not take ownership of the fd, but duplicates it locally.
+ * The local fd is closed during pipe_loader_release.
+ *
  * \sa pipe_loader_probe
  */
 bool
 pipe_loader_sw_probe_dri(struct pipe_loader_device **devs,
-                         struct drisw_loader_funcs *drisw_lf);
+                         const struct drisw_loader_funcs *drisw_lf);
 
 /**
  * Initialize a kms backed sw device given an fd.