summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2021-10-20 22:51:29 +0300
committerImre Deak <imre.deak@intel.com>2021-10-21 21:44:36 +0300
commit672d07517e728acf15c1e39c3dfb7052000b434e (patch)
tree3366b7332901912312a75afa913a87420e377635 /init
parente2b8329432b880f3821f85e1253a9b6b9d714a86 (diff)
downloadlinux-672d07517e728acf15c1e39c3dfb7052000b434e.tar.gz
linux-672d07517e728acf15c1e39c3dfb7052000b434e.tar.bz2
linux-672d07517e728acf15c1e39c3dfb7052000b434e.zip
drm/i915: Move intel_get_format_info() to intel_fb.c
Move the function retrieving the format override information for a given format/modifier to intel_fb.c. We can store a pointer to the format list in each modifier's descriptor instead of the corresponding switch/case logic, avoiding the listing of the modifiers twice. v1: Unchanged. v2: Handle invalid modifiers in intel_fb_get_format_info() passed from userspace. (CI/igt_kms_addfb_basic/addfb25-bad-modifier) v3: Move lookup_modifier() to the next patch, where it's first used. Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211020195138.1841242-3-imre.deak@intel.com
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions