diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-12-19 13:14:30 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-12-20 23:41:21 +0200 |
commit | 216383e920e85f3c1d9772030a69c4dab7455f47 (patch) | |
tree | 59bbb18ed2080b2281a967767508d0b7f630ae98 /drivers/gpu/drm/i915/gem/i915_gem_userptr.c | |
parent | a5e93b42f462fc87f884f12f5176b10dca5a3bf1 (diff) |
drm/i915: Introduce intel_crtc_state_alloc()
We have several places where we want to allocate a pristine
crtc state. Some of those currently call intel_crtc_state_reset()
to properly initialize all the non-zero defaults in the state, but
some places do not. Let's add intel_crtc_state_alloc() to do both
the alloc and the reset, and call that everywhere we need a fresh
crtc state.
v2: s/kzalloc/kmalloc/ since we memset() anyway (José)
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191219111430.17527-1-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gem/i915_gem_userptr.c')
0 files changed, 0 insertions, 0 deletions