#include <string.h>
#include <sys/sysinfo.h>
#include <unistd.h>
-#include <xf86drm.h>
#include "compiler/glsl_types.h"
#include "util/debug.h"
#include "vk_format.h"
#include "vk_util.h"
-#include "drm-uapi/msm_drm.h"
-
/* for fd_get_driver/device_uuid() */
#include "freedreno/common/freedreno_uuid.h"
* DEALINGS IN THE SOFTWARE.
*/
-#include "tu_private.h"
-
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include "drm-uapi/msm_drm.h"
+#include "tu_private.h"
+
static int
tu_drm_get_param(const struct tu_physical_device *dev,
uint32_t param,
#include "vk_debug_report.h"
#include "wsi_common.h"
-#include "drm-uapi/msm_drm.h"
#include "ir3/ir3_compiler.h"
#include "ir3/ir3_shader.h"
TU_CMD_BUFFER_STATUS_PENDING,
};
+#ifndef MSM_SUBMIT_BO_READ
+#define MSM_SUBMIT_BO_READ 0x0001
+#define MSM_SUBMIT_BO_WRITE 0x0002
+#define MSM_SUBMIT_BO_DUMP 0x0004
+
+struct drm_msm_gem_submit_bo {
+ uint32_t flags; /* in, mask of MSM_SUBMIT_BO_x */
+ uint32_t handle; /* in, GEM handle */
+ uint64_t presumed; /* in/out, presumed buffer address */
+};
+#endif
+
struct tu_bo_list
{
uint32_t count;