Commit 3107f42
committed
drm/vc4: Extend BROADCOM_SAND modifier to handle computing automatically
The vc4 HVS can handle almost any column height in the SAND format,
and this was signalled via the vendor bits in DRM_FORMAT_MOD_BROADCOM_SAND128.
DRM is now requiring that all potential modifier values are reported,
not just the canonical version of them.
It is not feasible to report all the potential column heights,
therefore add an option to go for a lowest common denominator
calculation that computes the column height as height * 3/2 as
it is YUV420.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>1 parent 78e2292 commit 3107f42
File tree
2 files changed
+27
-0
lines changed- drivers/gpu/drm/vc4
- include/uapi/drm
2 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1248 | 1248 | | |
1249 | 1249 | | |
1250 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
1251 | 1254 | | |
1252 | 1255 | | |
1253 | 1256 | | |
| |||
1711 | 1714 | | |
1712 | 1715 | | |
1713 | 1716 | | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
1714 | 1720 | | |
1715 | 1721 | | |
1716 | 1722 | | |
| |||
2395 | 2401 | | |
2396 | 2402 | | |
2397 | 2403 | | |
| 2404 | + | |
2398 | 2405 | | |
| 2406 | + | |
2399 | 2407 | | |
| 2408 | + | |
2400 | 2409 | | |
2401 | 2410 | | |
2402 | 2411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
1038 | 1046 | | |
1039 | 1047 | | |
1040 | 1048 | | |
| |||
1046 | 1054 | | |
1047 | 1055 | | |
1048 | 1056 | | |
| 1057 | + | |
| 1058 | + | |
1049 | 1059 | | |
1050 | 1060 | | |
1051 | 1061 | | |
| |||
1057 | 1067 | | |
1058 | 1068 | | |
1059 | 1069 | | |
| 1070 | + | |
| 1071 | + | |
1060 | 1072 | | |
1061 | 1073 | | |
| 1074 | + | |
| 1075 | + | |
1062 | 1076 | | |
1063 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
1064 | 1080 | | |
1065 | 1081 | | |
| 1082 | + | |
| 1083 | + | |
1066 | 1084 | | |
1067 | 1085 | | |
1068 | 1086 | | |
| |||
0 commit comments