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