Commit 6ae2ff2
drm/client: Convert drm_client_buffer_addfb() to drm_mode_addfb2()
Currently drm_client_buffer_addfb() uses the legacy drm_mode_addfb(),
which uses bpp and depth to guess the wanted buffer format.
However, drm_client_buffer_addfb() already knows the exact buffer
format, so there is no need to convert back and forth between buffer
format and bpp/depth, and the function can just call drm_mode_addfb2()
directly instead.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Tested-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Hamza Mahfooz <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/4b84adfc686288714e69d0442d22f1259ff74903.1697379891.git.geert@linux-m68k.org1 parent f70a669 commit 6ae2ff2
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
399 | | - | |
| 398 | + | |
400 | 399 | | |
401 | 400 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | 401 | | |
406 | 402 | | |
407 | | - | |
408 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
409 | 406 | | |
410 | | - | |
| 407 | + | |
411 | 408 | | |
412 | 409 | | |
413 | 410 | | |
| |||
0 commit comments