unsigned int *new_src_x, unsigned int *new_src_w,
unsigned int *new_dst_x, unsigned int *new_dst_w)
{
- int start, end, diff;
+ int start, end;
int virtual_screen;
*new_src_x = src_x;
*new_dst_x = start;
*new_dst_w = end - start;
- *new_src_w = *new_dst_w;
- diff = start - dst_x;
- *new_src_x += diff;
RETURN_VAL_IF_FAIL(*new_src_w > 0, TDM_ERROR_BAD_REQUEST);
RETURN_VAL_IF_FAIL(*new_dst_w > 0, TDM_ERROR_BAD_REQUEST);
ret = _vc4_layer_add_atomic_properties(layer_data, request,
layer_data->display_buffer->fb_id, output_data->crtc_id,
fx, fy, fw, fh,
- layer_data->info.src_config.pos.x,
- layer_data->info.src_config.pos.y,
- layer_data->info.src_config.pos.w,
- layer_data->info.src_config.pos.h);
+ new_dst_x, layer_info.dst_pos.y,
+ new_dst_w, layer_info.dst_pos.h);
if (ret != TDM_ERROR_NONE) {
TDM_ERR("MakeAtomicRequest failed: drm_fd(%d) plane_id(%u) zpos(%d) crtc_id(%u) fb_id(%u) src(%u,%u %ux%u) dst(%u,%u %ux%u) failed: %m",
vc4_data->drm_fd, layer_data->plane_id, layer_data->zpos,