Skip to content

Commit 8148de0

Browse files
Merge pull request #4 from Container-On-Android/upstream
Sync upstream changes
2 parents 06ca6d4 + e489b3b commit 8148de0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+10316
-1472
lines changed

.gitlab-ci.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ variables:
1717
#
1818
# Pick a pipeline on https://gitlab.freedesktop.org/mesa/mesa/-/pipelines/
1919
#
20-
MESA_PIPELINE_ID: 1594204
20+
MESA_PIPELINE_ID: 1610924
2121

2222
MESA_PROJECT_PATH: mesa/mesa
2323
S3_JWT_FILE: /s3_jwt
@@ -59,7 +59,7 @@ include:
5959
# IMPORTANT: Use a recent Mesa Git revision
6060
# The commit ref must be in sync with the pipeline picked above
6161
# It can be found on the pipeline page below the commit message
62-
ref: 042348895560dea1109617facb61bdd618967284
62+
ref: 2fa85edd75a4dac145ca9fee78dbe56207aa6870
6363
file:
6464
- '/.gitlab-ci/image-tags.yml'
6565

@@ -229,6 +229,36 @@ debian/x86_64_build_panfrost:
229229
when: manual
230230
- when: never
231231

232+
debian/x86_64_build_i915:
233+
stage: build
234+
extends:
235+
- .use-build-image
236+
variables:
237+
MINIO_ARTIFACT_NAME: virgl-amd64
238+
EXTRA_OPTION: >
239+
-D drm-renderers=i915-experimental
240+
script:
241+
- .gitlab-ci/meson/build.sh
242+
artifacts:
243+
name: "virgl_${CI_JOB_NAME}"
244+
when: always
245+
paths:
246+
- install/
247+
- results/
248+
rules:
249+
- changes:
250+
- src/drm/**/*
251+
when: on_success
252+
- if: *is-scheduled-pipeline
253+
when: on_success
254+
- if: *is-post-merge
255+
when: never
256+
- if: *is-forked-branch-or-pre-merge-not-for-marge
257+
when: manual
258+
- if: *is-pre-merge-for-marge
259+
when: on_success
260+
- when: never
261+
232262
debian/x86_64_build_msm:
233263
stage: build
234264
extends:

config.h.meson

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#mesondefine ENABLE_DRM_AMDGPU
4444
#mesondefine ENABLE_DRM_ASAHI
4545
#mesondefine ENABLE_DRM_PANFROST
46+
#mesondefine ENABLE_DRM_I915
4647
#mesondefine ENABLE_LIBDRM
4748
#mesondefine ENABLE_RENDER_SERVER
4849
#mesondefine ENABLE_RENDER_SERVER_WORKER_PROCESS

meson.build

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
project(
2525
'virglrenderer', 'c',
26-
version: '1.2.0',
26+
version: '1.3.0',
2727
license : 'MIT',
2828
meson_version : '>= 0.55',
2929
default_options : ['buildtype=release', 'b_ndebug=if-release',
@@ -39,7 +39,7 @@ project(
3939
# and set "revision" and "interface_age" to zero
4040

4141
binary_age = 1
42-
interface_age = 10
42+
interface_age = 11
4343
revision = 0
4444

4545
virgl_version = meson.project_version()
@@ -79,11 +79,20 @@ add_project_arguments(cc.get_supported_arguments(flags), language : 'c')
7979

8080
prog_python = import('python').find_installation('python3')
8181

82+
with_host_windows = host_machine.system() == 'windows'
83+
with_host_darwin = host_machine.system() == 'darwin'
84+
8285
not_found = dependency('', required: false)
8386
gbm_dep = not_found
8487
thread_dep = dependency('threads')
8588
epoxy_dep = dependency('epoxy', version: '>= 1.5.4')
8689
m_dep = cc.find_library('m', required : false)
90+
dl_dep = not_found
91+
if not with_host_windows and not with_host_darwin
92+
if not cc.has_function('dlopen')
93+
dl_dep = cc.find_library('dl', required : true)
94+
endif
95+
endif
8796

8897
conf_data = configuration_data()
8998
conf_data.set('VERSION', meson.project_version())
@@ -119,6 +128,11 @@ if with_drm_panfrost
119128
conf_data.set('ENABLE_DRM_PANFROST', 1)
120129
endif
121130

131+
with_drm_i915 = drm_renderers.contains('i915-experimental')
132+
if with_drm_i915
133+
conf_data.set('ENABLE_DRM_I915', 1)
134+
endif
135+
122136
with_drm_renderers = drm_renderers.length() > 0
123137

124138
if with_drm_renderers
@@ -452,6 +466,7 @@ summary({'c_args': (' ').join(get_option('c_args')),
452466
'venus': with_venus,
453467
'drm-amdgpu': with_drm_amdgpu,
454468
'drm-asahi': with_drm_asahi,
469+
'drm-i915': with_drm_i915,
455470
'drm-panfrost': with_drm_panfrost,
456471
'drm-msm': with_drm_msm,
457472
'render server worker': with_render_server ? with_render_server_worker : 'none',

meson_options.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ option(
8080
'panfrost-experimental',
8181
'asahi',
8282
'msm',
83+
'i915-experimental',
8384
],
8485
description : 'List of drm native-context renderers to build'
8586
)

0 commit comments

Comments
 (0)