---
name: "drm_crtc_check_viewport"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_crtc_check_viewport"
---

# drm\_crtc\_check\_viewport(9)

Checks that a framebuffer is big enough for the CRTC viewport

## NAME

drm\_crtc\_check\_viewport - Checks that a framebuffer is big enough for the CRTC viewport

## SYNOPSIS

**int drm\_crtc\_check\_viewport(const struct drm\_crtc \*** *crtc***, int** *x***, int** *y***, const struct drm\_display\_mode \*** *mode***, const struct drm\_framebuffer \*** *fb***);**

## ARGUMENTS

*crtc*

CRTC that framebuffer will be displayed on

*x*

x panning

*y*

y panning

*mode*

mode that framebuffer will be displayed under

*fb*

framebuffer to check size of

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
