Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1007 commits
Select commit Hold shift + click to select a range
332be8b
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: 87dff…
Jul 12, 2022
e3c09fc
Merge remote-tracking branch 'aosp/upstream-main' am: 6a8f9d534b am: …
olvaffe Jul 12, 2022
28c5bc3
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: 87dff…
Jul 12, 2022
d89f6ca
Merge remote-tracking branch 'aosp/upstream-main' am: 6a8f9d534b am: …
olvaffe Jul 12, 2022
af4f10c
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: 87dff…
Jul 12, 2022
5f7ee9f
Merge remote-tracking branch 'aosp/upstream-main' am: 6a8f9d534b am: …
olvaffe Jul 12, 2022
21b565c
Merge "DO NOT MERGE - Merge TP1A.220624.013" into stage-aosp-master
Jul 13, 2022
a9406de
[automerger skipped] DO NOT MERGE - Merge TP1A.220624.013 am: a77c276…
delphij Jul 13, 2022
5f1f1e1
[automerger skipped] Merge "DO NOT MERGE - Merge TP1A.220624.013" int…
Jul 13, 2022
7f5e827
[automerger skipped] DO NOT MERGE - Merge TP1A.220624.013 am: a77c276…
delphij Jul 13, 2022
4fb982f
[automerger skipped] Merge "DO NOT MERGE - Merge TP1A.220624.013" int…
Jul 13, 2022
8528d96
[automerger skipped] DO NOT MERGE - Merge TP1A.220624.013 am: a77c276…
delphij Jul 13, 2022
a6048d8
[automerger skipped] Merge "DO NOT MERGE - Merge TP1A.220624.013" int…
Jul 13, 2022
7b3cbea
drv/virtgpu: add log level for logging
zzyiwei Jul 13, 2022
7648f06
minigbm: fix some formating
zzyiwei Jul 13, 2022
bfb3c78
gralloc: use ALOGE instead of drv_log
zzyiwei Jul 13, 2022
0495473
minigbm: deprecate drv_log to favor log level
zzyiwei Jul 13, 2022
8513e1f
virtgpu_crossdomain: Handle buffer special case
robclark Jul 18, 2022
29daef0
msm: Handle YVU420_ANDROID and YVU420 identically
robclark Jul 19, 2022
bbe1fd3
minigbm: passthrough GPU_DATA_BUFFER via gbm frontend
zzyiwei Jul 20, 2022
e8b4054
drv/gralloc: Handle SENSOR_DIRECT_DATA usage
jmacnak Jul 19, 2022
98d34a8
virtgpu_virgl: Allow BLOBs with SENSOR_DIRECT_DATA
jmacnak Jul 19, 2022
bb62d42
virtgpu_crossdomain: Use guest storage when only CPU access is needed
robclark Jul 20, 2022
9c34d76
Merge remote-tracking branch 'cros/main' into 'aosp/master'
Jul 25, 2022
abc4860
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: 9c34d…
Jul 25, 2022
ae07d12
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: 9c34d…
Jul 25, 2022
108625e
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: 9c34d…
Jul 25, 2022
8e74eed
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: 9c34d…
Jul 25, 2022
d0cce89
virtgpu_crossdomain: Allow BLOBs with SENSOR_DIRECT_DATA
jmacnak Jul 19, 2022
80f664c
minigbm: passthrough SENSOR_DIRECT_DATA via gbm frontend
jmacnak Jul 19, 2022
a07201c
gralloc4: fix plane layout mapping for DRM_FORMAT_YVU420
zzyiwei Jul 27, 2022
9af6092
minigbm: Install minigbm_helpers.h
samsam2310 Jul 27, 2022
ccfca97
cross_domain: format fix
zzyiwei Aug 10, 2022
5c93742
mediatek: align with hardware workaround on Sigurd based GPU
zzyiwei Aug 10, 2022
64de517
mediatek: temporarily workaround a gpu driver bug to unblock cts
zzyiwei Aug 10, 2022
a46c881
DO NOT MERGE - Merge Android 13
delphij Aug 16, 2022
b2da7fa
DO NOT MERGE - Merge Android 13 am: a46c881270
delphij Aug 16, 2022
10813d5
DO NOT MERGE - Merge Android 13 am: a46c881270 am: b2da7fa459
delphij Aug 17, 2022
ee54dad
DO NOT MERGE - Merge Android 13 am: a46c881270 am: b2da7fa459 am: 108…
delphij Aug 17, 2022
c9f6462
platform/minigbm: Add YUY2 support for Mediatek
greenjustin Aug 22, 2022
dbe7f03
virtgpu_virgl: Add basic support for modifiers
nicholasbishop Aug 29, 2022
1805193
platform/minigbm: Add BO_USE_TEXTURE to YUYV flags for MTK
greenjustin Aug 30, 2022
9f1fb03
gralloc: adopt BufferUsage::FRONT_BUFFER
zzyiwei Aug 23, 2022
185a139
mediatek: advertise fp16 and 10bit rgba as supported texture format
zzyiwei Sep 8, 2022
8f16db9
virtgpu: always make it mappable for GPU_DATA_BUFFER
zzyiwei Sep 14, 2022
a11fc6d
Merge remote-tracking branch 'cros/main' into 'aosp/master'
Sep 15, 2022
d633685
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: a11fc…
Sep 15, 2022
678754e
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: a11fc…
Sep 15, 2022
5935a13
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: a11fc…
Sep 16, 2022
ac7d903
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: a11fc…
Sep 16, 2022
99387a7
Revert "minigbm/msm: disable UBWC for virtualization"
robclark Sep 15, 2022
fcc59f7
Revert "mediatek: temporarily workaround a gpu driver bug to unblock …
zzyiwei Sep 27, 2022
23d5fb3
mediatek: ensure stride meets Android requirement for YVU420
zzyiwei Sep 27, 2022
b2dde01
mediatek: ensure total size satisfy luma padding for Sigurd based GPU
zzyiwei Sep 27, 2022
6fb145b
Revert "mediatek: ensure stride meets Android requirement for YVU420"
zzyiwei Oct 7, 2022
1d54c83
minigbm: Add MTL PCI-IDs
Aug 11, 2022
0377635
minigbm: tiling ioctls not supported based on number of fence
mmeenaks-gh Aug 11, 2022
97e07de
minigbm: Add tile4 support
vipinana Aug 12, 2022
0b46921
minigbm: dri: Enabled useInvalidate for buffer invalidation.
Oct 10, 2022
cb63982
mediatek: One line per board definition
Nov 2, 2022
a375189
mediatek: Add MT8188G definition
Nov 2, 2022
bef7c87
virtgpu_virgl: remove unused parameter
Nov 9, 2022
29aeabe
gralloc: Handle PixelFormat::R_8
jmacnak Nov 9, 2022
fc3146f
virtgpu_virgl: Fix format style
Nov 2, 2022
c7f2cc7
Merge remote-tracking branch 'aosp/upstream-main' into 'aosp/master'
jmacnak Nov 15, 2022
554f821
Merge remote-tracking branch 'aosp/upstream-main' into 'aosp/master' …
jmacnak Nov 16, 2022
edffae5
Merge remote-tracking branch 'aosp/upstream-main' into 'aosp/master' …
jmacnak Nov 16, 2022
7eb9e82
virtgpu_virgl: use blobs NV12 encoder input
dgstevens Oct 24, 2022
87b0f9b
ANDROID: gralloc: Temporarily disable PixelFormat::R_8
jmacnak Nov 17, 2022
6c77034
ANDROID: gralloc: Temporarily disable PixelFormat::R_8 am: 87b0f9bdf8
jmacnak Nov 17, 2022
63f2758
ANDROID: gralloc: Temporarily disable PixelFormat::R_8 am: 87b0f9bdf8…
jmacnak Nov 17, 2022
eccb7f8
i915: avoid vertical alignment for FORMAT_BLOB
zzyiwei Nov 18, 2022
0c39bc0
DIR_METADATA: Add V2 Test Plans.
navilperez Sep 26, 2022
a1b820f
Revert "virtgpu_virgl: use blobs NV12 encoder input"
Nov 29, 2022
3018207
i915: add missing returns in i915_bo_compute_metadata
zzyiwei Nov 18, 2022
aefe934
Initial implementation of IMapper 5
jreck Oct 13, 2022
cbec94e
Merge "Initial implementation of IMapper 5"
jreck Dec 1, 2022
7967265
Merge "Initial implementation of IMapper 5" am: cbec94e9fa
jreck Dec 2, 2022
d0cc5e4
Merge "Initial implementation of IMapper 5" am: cbec94e9fa am: 796726…
jreck Dec 2, 2022
399fa8b
gralloc: Remove release_fence arg from cros_gralloc_driver::flush()
jmacnak Dec 1, 2022
dd9c864
minigbm: Add more dumb drivers
wens Nov 29, 2022
acb01d0
avoid filegroup for files
smore-lore Dec 7, 2022
a5513a8
avoid filegroup for files am: acb01d0ae3
smore-lore Dec 8, 2022
74cffaa
avoid filegroup for files am: acb01d0ae3 am: a5513a8f82
smore-lore Dec 8, 2022
f3980d1
Fix the handling of empty lock regions
jreck Dec 13, 2022
efaee8f
Fix the handling of empty lock regions am: f3980d123c
jreck Dec 15, 2022
da74760
Fix getMetadata return value on unknown input
jreck Nov 28, 2022
d6fbcaa
Add CROP to listSupportedMetadataTypes
jreck Nov 29, 2022
86a5d4e
Fix the handling of empty lock regions am: f3980d123c am: efaee8fe8c
jreck Dec 15, 2022
7a93b5f
Fix getMetadata return value on unknown input am: da74760621
jreck Dec 15, 2022
c6104fd
Fix getMetadata return value on unknown input am: da74760621 am: 7a93…
jreck Dec 15, 2022
dbfa958
Add CROP to listSupportedMetadataTypes am: d6fbcaac65
jreck Dec 16, 2022
4613b02
Implement STRIDE query
jreck Dec 16, 2022
972f0cf
Add CROP to listSupportedMetadataTypes am: d6fbcaac65 am: dbfa95872f
jreck Dec 16, 2022
15f826c
virtgpu_cross_domain: always set VIRTGPU_EXECBUF_RING_IDX
zzyiwei Dec 16, 2022
bab6903
virtgpu_cross_domain: align with virtgpu_virgl on the scanout formats
zzyiwei Dec 17, 2022
4f31804
Merge remote-tracking branch 'cros/main' into 'aosp/master'
Dec 18, 2022
306b292
Fix name size assert to not require constexpr ctor
jreck Dec 19, 2022
c825ea1
Support Allocator-V2 additionalOptions
jreck Dec 19, 2022
9dcac98
add VINTF manifest entry
smore-lore Dec 22, 2022
20ea534
Merge "Merge remote-tracking branch 'cros/main' into 'aosp/master'"
Jan 3, 2023
a214bea
add VINTF manifest entry am: 9dcac98394
smore-lore Jan 3, 2023
92ed929
Merge "Merge remote-tracking branch 'cros/main' into 'aosp/master'" a…
Jan 3, 2023
d9323df
add VINTF manifest entry am: 9dcac98394 am: a214bea2ae
smore-lore Jan 3, 2023
e20e4e8
Merge "Merge remote-tracking branch 'cros/main' into 'aosp/master'" a…
Jan 3, 2023
cd1339f
minigbm: fix formating
zzyiwei Jan 3, 2023
6b4b5d3
virtgpu_virgl: properly resolve flexible formats
zzyiwei Jan 3, 2023
4c63ec5
virtgpu_virgl: force linear for hw encoder with impl defined
zzyiwei Jan 5, 2023
992fd59
Merge "Implement STRIDE query"
jreck Jan 6, 2023
19a4cfe
Merge "Implement STRIDE query" am: 992fd592e1
jreck Jan 6, 2023
92b26cf
Merge "Implement STRIDE query" am: 992fd592e1 am: 19a4cfec09
jreck Jan 6, 2023
3bd6794
Add standardized VERSION symbol
jreck Jan 4, 2023
1a62da1
Merge changes from topic "allocatorv2options"
Jan 9, 2023
c643793
Fix name size assert to not require constexpr ctor am: 306b292beb
jreck Jan 9, 2023
3a2d3b1
Merge changes from topic "allocatorv2options" am: 1a62da1e40
Jan 9, 2023
cafa9ec
Merge "Add standardized VERSION symbol"
jreck Jan 9, 2023
89aa156
Merge "Add standardized VERSION symbol" am: cafa9ecee7
jreck Jan 9, 2023
8d3d4eb
virtgpu_virgl: force linear for non-camera impl defined format
zzyiwei Jan 12, 2023
6e59e6f
Merge remote-tracking branch 'cros/main' into 'aosp/master'
Jan 12, 2023
f72c071
Merge tm-qpr-dev-plus-aosp-without-vendor@9467136
delphij Jan 12, 2023
a564003
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: 6e59e…
Jan 12, 2023
464fee5
minigbm: Align BO tile size for llvmpipe on dumb driver
imxieyi Jan 5, 2023
7e51929
Drop <name>I</name> from mapper HAL.
jacky8hyf Jan 17, 2023
caf274d
Merge "Drop <name>I</name> from mapper HAL."
Jan 20, 2023
b50d51e
Merge "Drop <name>I</name> from mapper HAL." am: caf274d7ec
Jan 20, 2023
206462b
msm: Disallow mapping buffers with modifiers
robclark Jan 25, 2023
afa4ded
msm: Update P010 stride alignment
Feb 1, 2023
52fca9c
minigbm: add minigbm_create_default_device helper
olvaffe Jan 12, 2023
deea054
virtgpu_virgl: Set BO_USE_RENDERING for ARC Screen capture buffers.
Feb 10, 2023
d77e164
minigbm: Relax the validateBufferSize check
Dawnhlucky Feb 17, 2023
3e300b6
gralloc: add workaround for MT8183 private format
Feb 16, 2023
b377924
minigbm: format fix and add missing header
zzyiwei Feb 20, 2023
4975613
Merge remote-tracking branch 'cros/main' into 'aosp/master'
Feb 20, 2023
b9d5d6c
dri: add dri_dlopen and dri_dlclose
olvaffe Feb 16, 2023
bf1f37f
drv: add drv_preload
olvaffe Feb 16, 2023
9f36afc
cros_gralloc: use drv_preload
olvaffe Feb 16, 2023
c90a564
Merge remote-tracking branch 'cros/main' into 'aosp/master' am: 49756…
Feb 21, 2023
46a3cfa
minigbm: Use DRM_IOCTL_I915_GEM_MMAP_OFFSET on MTL
sushma08 Feb 15, 2023
ecbc891
minigbm: Remove plane in bo_map
Dawnhlucky Feb 14, 2023
fa8ea87
minigbm: Drop DRM master if taken by accident on primary node
imxieyi Feb 27, 2023
7997ad2
cros_gralloc: restrict DRM_FORMAT_MTISP_SXYZW10 to non-scanout
zzyiwei Mar 7, 2023
a845b4c
minigbm: clean up legacy gbm_get_default_device_fd usage
Dawnhlucky Mar 3, 2023
e098303
minigbm: fix format
Dawnhlucky Mar 7, 2023
5ff4a55
drv: pass stride_align to drv_bo_from_format
olvaffe Feb 24, 2023
20c9f05
amdgpu: improve android YV12 support on GFX10+
olvaffe Feb 24, 2023
ea61838
Merge remote-tracking branch 'cros/main' into 'aosp/master'
Mar 15, 2023
93ea13e
Revert "ANDROID: gralloc: Temporarily disable PixelFormat::R_8"
jmacnak Mar 31, 2023
e4fc0b8
Merge "Revert "ANDROID: gralloc: Temporarily disable PixelFormat::R_8""
jmacnak Apr 3, 2023
892756e
Update usage to 64-bit
jreck May 26, 2023
3326181
android: libgbm: Add libcutils to shared libs
pundiramit Jun 8, 2023
3c3e6f3
INTERNAL: Enable the minigbm aidl
yhe39 Jul 13, 2023
f4b1031
INTERNAL: Add Gralloc 1.0 support
yhe39 Jun 29, 2023
f709919
INTERNAL: Add support to easily add new formats
yhe39 Jun 29, 2023
3c8ff0c
INTERNAL: add more usage flag for media/camera formats
yhe39 Jun 29, 2023
1d6cbaa
INTERNAL: Yf tiled and Yf tiled CCS should be set Y
yhe39 Jun 29, 2023
8cd6734
INTERNAL: Add Intel private video format support
yhe39 Jun 29, 2023
2c62fb2
INTERNAL: Add gralloc1 function support
yhe39 Jun 30, 2023
b0fc9e1
INTERNAL: Add NV12_Y_TILED_INTEL format for PlaneLayoutsMap
yhe39 Apr 27, 2023
97ee5ee
INTERNAL: fix invalid mutex issue
yhe39 Apr 27, 2023
bee5465
INTERNAL: Support open up to two backend driver
yhe39 Jul 11, 2023
9456b1f
INTERNAL: Fix CtsHardwareTestCases failures
yhe39 Jun 30, 2023
d1cc5dc
INTERNAL: Fix CTS CtsNativeHardwareTestCases failures
yhe39 Jul 12, 2023
a5ca9e4
Fix for no camera streams with tflite object detection app
JeevakaPrabu Aug 21, 2023
dfffc78
INTERNAL: Fix Coverity issue
manxiaoliang Dec 6, 2023
9f2d51a
Added workflows
Apr 8, 2024
e5b137c
Refine gpu generation info from upstream
zhonghuis Mar 20, 2024
5d6cdab
Refine the init function and fix issue
zhonghuis Mar 29, 2024
2220162
INTERNAL: Allocate tiling buffer for hw usage
zhonghuis Mar 29, 2024
4752352
Remove drv_kms_
zhonghuis Mar 29, 2024
57d7ce4
INTERNAL: Adjust the condition to check KVM
zhonghuis Mar 29, 2024
a1fb473
Fixed the validateBufferSize issue
zhonghuis Mar 29, 2024
d81f250
Fixed the issue that sw codec fails to validate 10-bit type buffer
zhonghuis Mar 29, 2024
4dd9776
Add print level INFO
zhonghuis Mar 29, 2024
30ec052
Add dGPU support
zhonghuis Apr 2, 2024
0bb5e0f
Add prelim drm uapi support
zhonghuis Apr 2, 2024
73acfb9
Fix encoder fps low for rpl igpu
zhonghuis Apr 2, 2024
c0f7608
Fix vulkan app can't display on iGPU in VM
zhonghuis Apr 2, 2024
a8355db
Fixed a performance issue for NeuSoft HMI app
zhonghuis Apr 2, 2024
7777f34
Ignore set domain for dgpu
zhonghuis Apr 2, 2024
f3bb039
INTERNAL:Fix Coverity issues
zhonghuis Apr 7, 2024
b5053aa
Fix android VM boot issue
zhonghuis Apr 3, 2024
41fd2cd
Fix the MTL-P boot issue
yhe39 Apr 18, 2024
04c4423
Delete unused minigbm target
yhe39 Apr 25, 2024
d097456
Fixed codec format mismatch issue
yhe39 May 7, 2024
18fce42
Fix the format mismatch issue.
yhe39 May 23, 2024
0da1979
Fixed testOtherH264ImageReader case failure
yhe39 May 13, 2024
2f53234
Remove check that fails mapping for tile 4
akodanka May 21, 2024
567b233
Use tile4 for dGPU render buffer
yhe39 Jun 13, 2024
48765f7
Fixed some coverity issues
manxiaoliang Jul 12, 2024
f0556b6
Merge pull request #131 from manxiaoliang/dev_coverity_14
manxiaoliang Aug 1, 2024
33c2926
Updated CI workflow
iViggyPrabhu Aug 5, 2024
6876211
The graphic type should be set before driver init
yhe39 Jul 18, 2024
e93cd9c
Add initial support for xe driver
cmsanta Sep 18, 2024
41f6d85
Prioritize i915 over virtio-GPU for buffer allocation
phreer Jul 22, 2024
5f64132
Print tiling mode of scan-out buffers for i915 driver
phreer Jul 31, 2024
1476add
Rule out tiling-4 for scan-out buffers
phreer Jul 31, 2024
0ef0cdd
Seperate video/render usage for dual gpu case
Aug 22, 2024
28da90f
Add the drv_kms_ back
yhe39 Aug 28, 2024
cf58efc
Add the function to check virtio features
yhe39 Aug 28, 2024
c136382
Add probe new added render node
yhe39 Sep 1, 2024
6e635eb
Release the ivshm node
yhe39 Sep 14, 2024
d81dd27
Correct wrong graphics version
Aug 16, 2024
b6f5888
Add support the VM3 screen cast
yhe39 Sep 20, 2024
f826602
Only set scanout flag for display buffer
yhe39 Sep 25, 2024
ce071ef
Fix the ivshm dump buffer issue
yhe39 Oct 9, 2024
17fb4fa
Clean up the map debug log
yhe39 Oct 30, 2024
708e144
Refactor driver loading code
phreer Oct 17, 2024
88e48b1
Change max number of probed node to 8
phreer Nov 14, 2024
4a02457
Use get_gpu_type to detect ivshmem device
phreer Nov 26, 2024
15c0be7
Use ivshmem-backed virtio-GPU as KMS driver in the case of QNX
phreer Nov 27, 2024
f740925
Revert workaround after surface cpu_read optimization
nanazhan Jun 13, 2024
a638b86
intel_device: Add 0x46D3-0x46D4 ADL-N PCI IDs
JeevakaPrabu Jan 8, 2025
2bf3e6b
Fix for black screen during video playback in MTL
JeevakaPrabu Jan 8, 2025
abdc416
intel_device: Correct the sub_version of ADL devices
JeevakaPrabu Jan 8, 2025
9c49148
xe: Add 0xB0B0 PCI ID
JeevakaPrabu Jan 28, 2025
69199c0
minigbm: Add CCS support for render compression on MTL
cmsanta Sep 14, 2023
455f216
Rename DRM_FORMAT_NV12_Y_TILED_INTEL
Feb 11, 2025
033444c
Fixed coverity issue
manxiaoliang Feb 19, 2025
b582f1b
Fix double free in driver loading
phreer Feb 19, 2025
bef9358
Support GPU_DATA_BUFFER usage for RGBA8888
chenyanxzhu Mar 5, 2025
1eb9788
The hw protected buffer should be enable for widevine.
manxiaoliang Jan 14, 2025
955565a
Fix some coverity issues
manxiaoliang Mar 21, 2025
ec69e5b
Fix ATS testScreenshot failed
Mar 31, 2025
b1241ba
Fix memory crash in screencap
kkkuangzh Apr 14, 2025
22dc867
Use dgpu for codec when dual gpu case
Dec 19, 2024
c419395
minigbm: Use clflushopt if supported
sushma08 Apr 14, 2023
16a32bd
Fix fps low for video play on multi 4k screens
Mar 28, 2025
b49d508
Add the special gralloc private 2 flag check
yhe39 Apr 16, 2025
7d5e2dc
Support BMG device
beckwen Apr 9, 2025
a0631a4
Fix virtio device type error
chenyanxzhu Apr 22, 2025
0b0e69f
Fix buffers potential double free in cros_gralloc_driver.cc::release(…
pugong2019 Apr 23, 2025
86ea07b
xe: fixes to support video playback
JeevakaPrabu Feb 2, 2025
d12da89
Add xe driver 10bit intel video format support
yhe39 Jul 17, 2025
94e0f80
Align the size with PAGE before create buffer
yhe39 Apr 30, 2025
0f106b5
Add PTL B0 and ARL device id
beckwen Jul 31, 2025
d1b4c2f
Optimize antutu video score for xe driver
Jul 10, 2025
7628bc0
Fix scrcpy fail issue
Jul 28, 2025
5f5f8df
Revert h3c patches to fix black screen issue
Aug 14, 2025
08ef498
Add the ARL pci id
yhe39 Aug 25, 2025
3416a80
Fix kworker number increase issue
Aug 27, 2025
b4ad92e
RPL platform use i915
kanlihu Sep 9, 2025
67e267f
Fix arl failed to start after change gpu ver
Sep 22, 2025
8c4608a
Add the HAL_PIXEL_FORMAT_RGBA_10101010 format support
yhe39 Sep 4, 2025
cd1087a
Add HAL_PIXEL_FORMAT_YCBCR_P210 format support
yhe39 Sep 25, 2025
2b84d62
Define HAL PIXEL FORMAT RGBA_10101010 and YCBCR_P210
yhe39 Sep 26, 2025
2f796c4
Optimize antutu video score for xe driver
yhe39 Sep 26, 2025
75cad40
Fix scrcpy fail issue
yhe39 Sep 26, 2025
a2ecf29
Fix ARL scrcpy issue
yhe39 Oct 10, 2025
7f177be
remove github workflow
mz-intel Oct 9, 2025
35a657b
Change the added gralloc1 function enum num.
yhe39 Aug 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 135 additions & 66 deletions Android.bp
Original file line number Diff line number Diff line change
@@ -1,30 +1,76 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

cc_defaults {
name: "minigbm_defaults",
package {
default_applicable_licenses: ["external_minigbm_license"],
}

// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "external_minigbm_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-MIT",
],
license_text: [
"LICENSE",
],
}

filegroup {
name: "minigbm_core_files",

srcs: [
"amdgpu.c",
"drv.c",
"evdi.c",
"exynos.c",
"helpers_array.c",
"helpers.c",
"drv_array_helpers.c",
"drv_helpers.c",
"dumb_driver.c",
"i915.c",
"marvell.c",
"mediatek.c",
"meson.c",
"msm.c",
"nouveau.c",
"radeon.c",
"rockchip.c",
"tegra.c",
"udl.c",
"vc4.c",
"vgem.c",
"virtio_gpu.c",
"virtgpu.c",
"virtgpu_cross_domain.c",
"virtgpu_virgl.c",
"xe.c",
"intel_device.c",
],
}

filegroup {
name: "minigbm_gralloc_common_files",

srcs: [
"cros_gralloc/cros_gralloc_buffer.cc",
"cros_gralloc/cros_gralloc_helpers.cc",
"cros_gralloc/cros_gralloc_driver.cc",
],
}

filegroup {
name: "minigbm_gralloc1_files",
srcs: ["cros_gralloc/gralloc1/cros_gralloc1_module.cc"],
}

cc_defaults {
name: "minigbm_defaults",

cflags: [
"-D_GNU_SOURCE=1",
Expand All @@ -35,83 +81,97 @@ cc_defaults {
"-Wcast-qual",
"-Wcast-align",
"-Wno-unused-parameter",
"-Wno-switch",
"-Wno-format",
"-Wno-unused-variable",
"-DDRV_I915",
"-DDRV_XE",
"-DUSE_GRALLOC1",
"-Wno-cast-qual",
],
cppflags: ["-std=c++14"],

vendor: true,
product_variables: {
platform_sdk_version: {
cflags: ["-DANDROID_API_LEVEL=33"],
},
},
}

cc_library_headers {
name: "minigbm_headers",
host_supported: true,
vendor_available: true,
export_include_dirs: ["."],
}

cc_defaults {
name: "minigbm_cros_gralloc_defaults",

defaults: ["minigbm_defaults"],

header_libs: [
"libhardware_headers",
"libnativebase_headers",
"libnativewindow_headers",
"libsystem_headers",
"minigbm_headers",
],

export_header_lib_headers: [
"libhardware_headers",
"libnativebase_headers",
"libnativewindow_headers",
"libsystem_headers",
],
static_libs: ["libarect"],

vendor: true,

shared_libs: [
"libcutils",
"libdmabufheap",
"libdrm",
"libnativewindow",
"libsync",
"liblog",
],

static_libs: ["libarect"],

export_static_lib_headers: ["libarect"],
}

cc_defaults {
name: "minigbm_cros_gralloc_defaults",

defaults: ["minigbm_defaults"],

srcs: [
"cros_gralloc/cros_gralloc_buffer.cc",
"cros_gralloc/cros_gralloc_helpers.cc",
"cros_gralloc/cros_gralloc_driver.cc",
]
}

cc_library_static {
name: "libminigbm",
defaults: ["minigbm_defaults"],
shared_libs: ["liblog"],
static_libs: ["libdrm"],
name: "minigbm_cros_gralloc_library_defaults",

defaults: ["minigbm_cros_gralloc_defaults"],
srcs: [
"gbm.c",
"gbm_helpers.c",
":minigbm_core_files",
":minigbm_gralloc_common_files",
],

export_include_dirs: ["."],
}

cc_library_static {
name: "libminigbm_cros_gralloc",
cc_defaults {
name: "minigbm_cros_gralloc1_defaults",

defaults: ["minigbm_cros_gralloc_defaults"],
shared_libs: ["liblog"],
static_libs: ["libdrm"],
relative_install_path: "hw",

export_include_dirs: ["."],
}
srcs: [":minigbm_gralloc1_files"],
cflags: [
"-Wno-switch",
"-Wno-cast-qual",
"-DUSE_GRALLOC1",
],

cc_library_shared {
name: "gralloc.minigbm",
defaults: ["minigbm_cros_gralloc_defaults"],
srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
}

// Intel
cc_library_shared {
name: "gralloc.minigbm_intel",
defaults: ["minigbm_cros_gralloc_defaults"],
name: "libminigbm_gralloc_intel",
defaults: ["minigbm_cros_gralloc_library_defaults"],
cflags: [
"-DDRV_I915",
"-DDRV_XE",
"-DUSE_GRALLOC1",
"-Wno-cast-qual",
"-Wno-unused-function",
"-DHAVE_MEMFD_CREATE",
"-mclflushopt",
],
enabled: false,
local_include_dirs: [
"cros_gralloc",
],
arch: {
x86: {
enabled: true,
Expand All @@ -120,13 +180,22 @@ cc_library_shared {
enabled: true,
},
},
cflags: ["-DDRV_I915"],
srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
}

cc_library_shared {
name: "gralloc.minigbm_meson",
defaults: ["minigbm_cros_gralloc_defaults"],
cflags: ["-DDRV_MESON"],
srcs: ["cros_gralloc/gralloc0/gralloc0.cc"],
}
name: "gralloc.intel",
defaults: ["minigbm_cros_gralloc1_defaults"],
shared_libs: ["libminigbm_gralloc_intel"],
enabled: false,
local_include_dirs: [
"cros_gralloc",
],
arch: {
x86: {
enabled: true,
},
x86_64: {
enabled: true,
},
},
}
11 changes: 0 additions & 11 deletions Android.gralloc.mk

This file was deleted.

34 changes: 34 additions & 0 deletions DIR_METADATA
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Metadata information for this directory.
#
# For more information on DIR_METADATA files, see:
# https://source.chromium.org/chromium/infra/infra/+/HEAD:go/src/infra/tools/dirmd/README.md
#
# For the schema of this file, see Metadata message:
# https://source.chromium.org/chromium/infra/infra/+/HEAD:go/src/infra/tools/dirmd/proto/dir_metadata.proto

buganizer {
# ChromeOS > Platform > Graphics > Graphics Virtualization
component_id: 964076
}

chromeos {
cq {
source_test_plans {
test_plan_starlark_files {
host: "chrome-internal.googlesource.com"
project: "chromeos/config-internal"
path: "test/plans/v2/ctpv1_compatible/legacy_default_tast_hw.star"
}
test_plan_starlark_files {
host: "chrome-internal.googlesource.com"
project: "chromeos/config-internal"
path: "test/plans/v2/ctpv1_compatible/legacy_default_autotest_hw.star"
}
test_plan_starlark_files {
host: "chrome-internal.googlesource.com"
project: "chromeos/config-internal"
path: "test/plans/v2/ctpv1_compatible/legacy_default_vm.star"
}
}
}
}
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ ifdef DRV_AMDGPU
CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_amdgpu)
LDLIBS += -ldrm_amdgpu -ldl
endif
ifdef DRV_EXYNOS
CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_exynos)
endif
ifdef DRV_I915
CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_intel)
endif
ifdef DRV_MESON
CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_meson)
endif
ifdef DRV_MSM
CFLAGS += -ldl
endif
ifdef DRV_RADEON
CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_radeon)
endif
Expand All @@ -34,6 +34,9 @@ endif
ifdef DRV_VC4
CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_vc4)
endif
ifdef DRV_XE
CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_intel)
endif

CPPFLAGS += $(PC_CFLAGS)
LDLIBS += $(PC_LIBS)
Expand All @@ -46,6 +49,7 @@ MINIGBM_FILENAME := libminigbm.so.$(MINIGBM_VERSION)

CC_LIBRARY($(MINIGBM_FILENAME)): LDFLAGS += -Wl,-soname,libgbm.so.$(GBM_VERSION_MAJOR)
CC_LIBRARY($(MINIGBM_FILENAME)): $(C_OBJECTS)
CC_STATIC_LIBRARY(libminigbm.pie.a): $(C_OBJECTS)

all: CC_LIBRARY($(MINIGBM_FILENAME))

Expand All @@ -58,3 +62,4 @@ install: all
ln -sf $(MINIGBM_FILENAME) $(DESTDIR)/$(LIBDIR)/libgbm.so.$(GBM_VERSION_MAJOR)
install -D -m 0644 $(SRC)/gbm.pc $(DESTDIR)$(LIBDIR)/pkgconfig/gbm.pc
install -D -m 0644 $(SRC)/gbm.h $(DESTDIR)/usr/include/gbm.h
install -D -m 0644 $(SRC)/minigbm_helpers.h $(DESTDIR)/usr/include/minigbm/minigbm_helpers.h
19 changes: 14 additions & 5 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
basni@chromium.org
dbehr@chromium.org
dcastagna@chromium.org
ddavenport@chromium.org
gurchetansingh@chromium.org
hiroh@chromium.org
hoegsberg@chromium.org
ihf@chromium.org
lepton@chromium.org
marcheu@chromium.org
stevensd@chromium.org
mcasas@chromium.org
olv@google.com
robdclark@chromium.org
tfiga@chromium.org
tutankhamen@chromium.org
zzyiwei@chromium.org

# just reference for backend specific reviews
per-file amdgpu.c = basni@chromium.org, ddavenport@chromium.org
per-file i915.c = chadversary@chromium.org, hoegsberg@chromium.org
per-file mediatek.c = fshao@chromium.org, hsinyi@chromium.org, tzungbi@chromium.org
per-file msm.c = robdclark@chromium.org, hoegsberg@chromium.org
per-file rockchip.c = tfiga@chromium.org
per-file virtgpu* = jbates@chromium.org, natsu@google.com, olv@google.com, zzyiwei@chromium.org
Loading