Lines Matching defs:state

207 	switch (asyw->state.fb->format->format) {
226 switch (asyw->state.fb->format->format) {
271 struct drm_framebuffer *fb = asyw->state.fb;
279 if (fb != armw->state.fb || !armw->visible || modeset) {
308 if (!asyh->state.async_flip)
322 asyw->scale.sx = asyw->state.src_x >> 16;
323 asyw->scale.sy = asyw->state.src_y >> 16;
324 asyw->scale.sw = asyw->state.src_w >> 16;
325 asyw->scale.sh = asyw->state.src_h >> 16;
326 asyw->scale.dw = asyw->state.crtc_w;
327 asyw->scale.dh = asyw->state.crtc_h;
333 asyw->blend.depth = 255 - asyw->state.normalized_zpos;
334 asyw->blend.k1 = asyw->state.alpha >> 8;
335 switch (asyw->state.pixel_blend_mode) {
355 asyw->point.x = asyw->state.crtc_x;
356 asyw->point.y = asyw->state.crtc_y;
370 struct drm_property_blob *ilut = asyh->state.degamma_lut;
378 if (!ilut && asyw->state.fb->format->format == DRM_FORMAT_C8) {
384 if (!(ilut = asyh->state.gamma_lut)) {
396 asyw->state.fb->format->format != DRM_FORMAT_XBGR16161616F &&
397 asyw->state.fb->format->format != DRM_FORMAT_ABGR16161616F) {
402 /* 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;
437 nv50_wndw_atomic_check(struct drm_plane *plane, struct drm_plane_state *state)
441 struct nv50_wndw_atom *armw = nv50_wndw_atom(wndw->plane.state);
442 struct nv50_wndw_atom *asyw = nv50_wndw_atom(state);
449 /* Fetch the assembly state for the head the window will belong to,
452 if (asyw->state.crtc) {
453 asyh = nv50_head_atom_get(asyw->state.state, asyw->state.crtc);
456 modeset = drm_atomic_crtc_needs_modeset(&asyh->state);
457 asyw->visible = asyh->state.active;
462 /* Fetch assembly state for the head the window used to belong to. */
463 if (armw->state.crtc) {
464 harm = nv50_head_atom_get(asyw->state.state, armw->state.crtc);
472 asyh->state.color_mgmt_changed ||
473 asyw->state.fb->format->format !=
474 armw->state.fb->format->format)) {
480 /* Calculate new window state. */
529 nv50_wndw_prepare_fb(struct drm_plane *plane, struct drm_plane_state *state)
531 struct drm_framebuffer *fb = state->fb;
534 struct nv50_wndw_atom *asyw = nv50_wndw_atom(state);
541 if (!asyw->state.fb)
560 asyw->state.fence = dma_resv_get_excl_rcu(nvbo->bo.base.resv);
564 asyh = nv50_head_atom_get(asyw->state.state, asyw->state.crtc);
583 struct drm_plane_state *state)
585 struct nv50_wndw_atom *asyw = nv50_wndw_atom(state);
586 __drm_atomic_helper_plane_destroy_state(&asyw->state);
593 struct nv50_wndw_atom *armw = nv50_wndw_atom(plane->state);
597 __drm_atomic_helper_plane_duplicate_state(plane, &asyw->state);
607 return &asyw->state;
625 if (plane->state)
626 plane->funcs->atomic_destroy_state(plane, plane->state);
628 __drm_atomic_helper_plane_reset(plane, &asyw->state);
629 plane->state->zpos = nv50_wndw_zpos_default(plane);
630 plane->state->normalized_zpos = nv50_wndw_zpos_default(plane);