Lines Matching refs:state

210 	switch (asyw->state.fb->format->format) {
229 switch (asyw->state.fb->format->format) {
274 struct drm_framebuffer *fb = asyw->state.fb;
282 if (fb != armw->state.fb || !armw->visible || modeset) {
311 if (!asyh->state.async_flip)
325 asyw->scale.sx = asyw->state.src_x >> 16;
326 asyw->scale.sy = asyw->state.src_y >> 16;
327 asyw->scale.sw = asyw->state.src_w >> 16;
328 asyw->scale.sh = asyw->state.src_h >> 16;
329 asyw->scale.dw = asyw->state.crtc_w;
330 asyw->scale.dh = asyw->state.crtc_h;
336 asyw->blend.depth = 255 - asyw->state.normalized_zpos;
337 asyw->blend.k1 = asyw->state.alpha >> 8;
338 switch (asyw->state.pixel_blend_mode) {
358 asyw->point.x = asyw->state.crtc_x;
359 asyw->point.y = asyw->state.crtc_y;
373 struct drm_property_blob *ilut = asyh->state.degamma_lut;
381 if (!ilut && asyw->state.fb->format->format == DRM_FORMAT_C8) {
387 if (!(ilut = asyh->state.gamma_lut)) {
399 asyw->state.fb->format->format != DRM_FORMAT_XBGR16161616F &&
400 asyw->state.fb->format->format != DRM_FORMAT_ABGR16161616F) {
405 /* Recalculate LUT state. */
421 if (wndw->func->csc && asyh->state.ctm) {
422 const struct drm_color_ctm *ctm = asyh->state.ctm->data;
432 asyh->state.async_flip = false;
438 struct drm_atomic_state *state)
440 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state,
444 struct nv50_wndw_atom *armw = nv50_wndw_atom(wndw->plane.state);
452 /* Fetch the assembly state for the head the window will belong to,
455 if (asyw->state.crtc) {
456 asyh = nv50_head_atom_get(asyw->state.state, asyw->state.crtc);
459 modeset = drm_atomic_crtc_needs_modeset(&asyh->state);
460 asyw->visible = asyh->state.active;
465 /* Fetch assembly state for the head the window used to belong to. */
466 if (armw->state.crtc) {
467 harm = nv50_head_atom_get(asyw->state.state, armw->state.crtc);
475 asyh->state.color_mgmt_changed ||
476 asyw->state.fb->format->format !=
477 armw->state.fb->format->format)) {
483 /* Calculate new window state. */
532 nv50_wndw_prepare_fb(struct drm_plane *plane, struct drm_plane_state *state)
534 struct drm_framebuffer *fb = state->fb;
537 struct nv50_wndw_atom *asyw = nv50_wndw_atom(state);
544 if (!asyw->state.fb)
563 ret = drm_gem_plane_helper_prepare_fb(plane, state);
570 asyh = nv50_head_atom_get(asyw->state.state, asyw->state.crtc);
589 struct drm_plane_state *state)
591 struct nv50_wndw_atom *asyw = nv50_wndw_atom(state);
592 __drm_atomic_helper_plane_destroy_state(&asyw->state);
599 struct nv50_wndw_atom *armw = nv50_wndw_atom(plane->state);
603 __drm_atomic_helper_plane_duplicate_state(plane, &asyw->state);
613 return &asyw->state;
631 if (plane->state)
632 plane->funcs->atomic_destroy_state(plane, plane->state);
634 __drm_atomic_helper_plane_reset(plane, &asyw->state);