Lines Matching refs:cmd2
106 struct drm_mode_fb_cmd2 cmd2 {}; in CreateFbId() struct
107 cmd2.width = drm_buffer.width; in CreateFbId()
108 cmd2.height = drm_buffer.height; in CreateFbId()
109 cmd2.pixel_format = drm_buffer.drm_format; in CreateFbId()
110 cmd2.flags = DRM_MODE_FB_MODIFIERS; in CreateFbId()
111 fill(begin(cmd2.handles), begin(cmd2.handles) + drm_buffer.num_planes, gem_handle); in CreateFbId()
112 copy(begin(drm_buffer.stride), end(drm_buffer.stride), begin(cmd2.pitches)); in CreateFbId()
113 copy(begin(drm_buffer.offset), end(drm_buffer.offset), begin(cmd2.offsets)); in CreateFbId()
114 fill(begin(cmd2.modifier), begin(cmd2.modifier) + drm_buffer.num_planes, in CreateFbId()
117 if ((ret = drmIoctl(dev_fd_, DRM_IOCTL_MODE_ADDFB2, &cmd2))) { in CreateFbId()
120 *fb_id = cmd2.fb_id; in CreateFbId()