Skip to content

Commit

Permalink
tegra_fb: re-enable double-buffering support
Browse files Browse the repository at this point in the history
Commit 185b396 made
double-buffering support in the fb driver conditional
on CONFIG_ANDROID, but was an incomplete removal of the
feature - userland apps can still set up the device
for double-buffering, since it looks like it still supports
it, but then get EINVAL errors when tryng to use it.

Since the difference in memory is only 32MiB, just remove
the CONFIG_ANDROID check and enable double-buffering
in all builds.

Signed-off-by: Matt Madison <matt@madison.systems>
  • Loading branch information
CTCaer committed Mar 16, 2021
1 parent b1e9afc commit 2d4df51
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/video/tegra/fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,8 @@
#define user_ptr(p) (p)
#endif

#ifdef CONFIG_ANDROID
#define FB_BUFFERING_FACTOR 2
#else /* L4T and other OSes */
#define FB_BUFFERING_FACTOR 1
#endif

/* support up to 4K (3840x2150) with double buffering */
#define DEFAULT_FBMEM_SIZE (SZ_32M * FB_BUFFERING_FACTOR) + SZ_8M

Expand Down

0 comments on commit 2d4df51

Please sign in to comment.