Commit Graph

158392 Commits

Author SHA1 Message Date
openharmony_ci
bf21554619
!30 pkg-config 引用库路径修改需同步
Some checks failed
macOS-CI / macOS-CI (dri) (push) Has been cancelled
macOS-CI / macOS-CI (xlib) (push) Has been cancelled
Merge pull request !30 from 李西腾/master
2024-09-14 02:27:35 +00:00
openharmony_ci
6981812de6
!31 删除pan_props.c中存在的重复方法panfrost_query_afbc
Merge pull request !31 from 李西腾/master
2024-09-14 02:24:21 +00:00
lixiteng
259e8a74e9 删除重复的方法panfrost_query_afbc
Signed-off-by: lixiteng <lixiteng1@huawei.com>
2024-09-13 17:45:38 +08:00
lixiteng
c1ae46ec84 pkg-config 引用库路径修改需同步
Signed-off-by: lixiteng <lixiteng1@huawei.com>
2024-09-13 17:38:28 +08:00
openharmony_ci
64fca2bb52
!24 surface迁仓deps整改
Merge pull request !24 from sqwlly/surface_change
2024-03-14 04:00:08 +00:00
sqwlly
bc8babc11c surface gn format Signed-off-by: s30029175 <shiqiwei4@huawei.com>
Signed-off-by: sqwlly <shiqiwei4@huawei.com>
Change-Id: I3036e08739921ab9f60f0125361c5e232fb2795a
2024-02-23 08:19:47 +00:00
openharmony_ci
01b66c85cc
!21 panfrost: assign panfrost_fence_get_fd() to ->fence_get_fd
Merge pull request !21 from tj/OpenHarmony-4.0-Release
2024-01-05 02:56:56 +00:00
openharmony_ci
8eacc35ef4
!22 fix: fix build_id_find_nhdr_callback build_id_note
Merge pull request !22 from AlgoIdeas/master
2023-12-18 04:11:06 +00:00
minjie.yu
30732f4e93 fix: fix build_id_find_nhdr_callback build_id_note
Signed-off-by: minjie.yu <minjie.yu@unionman.com.cn>
2023-12-14 15:41:31 +08:00
Yue Hu
edff4bc006 panfrost: assign panfrost_fence_get_fd() to ->fence_get_fd
Fixes: 5a3d6e0173 ("adpt OH")
Signed-off-by: Yue Hu <huyue2@coolpad.com>
2023-11-17 17:03:31 +08:00
zleoyu
3c89458a04
!20 【升级】mesa-22.2.4
Merge pull request !20 from TanSheng/master
2023-09-22 06:14:00 +00:00
openharmony_ci
bf3729926a
!19 【升级】mesa-22.2.4
Merge pull request !19 from TanSheng/master
2023-08-31 01:46:54 +00:00
zleoyu
5a3d6e0173 adpt OH
Signed-off-by: zleoyu <zhangleiyu1@huawei.com>
2023-08-30 21:38:06 +08:00
zleoyu
50b0bb6735 mesa-22.2.4
-----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQRxxLdWILx1cItL2yVMlfqrPrBz7AUCY3VwkwAKCRBMlfqrPrBz
 7AqPAQDXrUszUvo4okVyYKWjpFHSp9BWASpFpQSl/jWU/f/gqQD+IUxfbQgNZyps
 nYcWN939xnf3BlOPw9nCYhBd8d805gM=
 =9K+5
 -----END PGP SIGNATURE-----

升级22.2.4版本

Signed-off-by: zleoyu <zhangleiyu1@huawei.com>
2023-08-30 21:25:09 +08:00
openharmony_ci
995d2506d1
!18 【32】【third_party/mesa3d】graphic_standard改为graphic_2d
Merge pull request !18 from zhangbirong/0630fix
2023-07-12 11:38:58 +00:00
zhangbirong
6d48dd4dd4 fix name
Signed-off-by: zhangbirong <zhangbirong@huawei.com>
Change-Id: Ia04b5ab3f236c25445b0db321bf8b18e3c51e3d9
2023-07-07 15:23:36 +08:00
openharmony_ci
2ba66bd659
!16 添加对panfrost AcquireFenceFd的适配
Merge pull request !16 from xiawenyu/master
2023-06-27 16:22:04 +00:00
xiawenyu
d2693f329e panfrost 适配AcquireFence
Signed-off-by: xiawenyu <xia_wenyu@126.com>
2023-04-18 15:23:50 +08:00
openharmony_ci
fc4325e87a
!13 add log
Merge pull request !13 from zleoyu/master_1009
2023-03-29 02:29:09 +00:00
openharmony_ci
2989ab74f0
!9 修改ohos/build_mesa3d.py的版权头
Merge pull request !9 from xfan1024/fix-copy-right
2023-03-17 03:37:00 +00:00
openharmony_ci
5e18ccbc99
!15 同步libunwind的修改,以修正mesa获取build id时会发生crash的问题
Merge pull request !15 from Diemit/master
2023-03-16 06:59:28 +00:00
Diemit
074b1a3ce5
同步libunwind的修改,以修正mesa获取build id时会发生crash的问题
同步libunwind的修改,以修正mesa获取build id时会发生crash的问题

Signed-off-by: Diemit <598757652@qq.com>
2023-02-13 00:28:49 +00:00
Dylan Baker
80df10f902
VERSION: update to 22.2.4 2022-11-16 15:02:11 -08:00
Dylan Baker
d6031c68b6 docs: add release notes for 22.2.4 2022-11-16 15:02:11 -08:00
Yonggang Luo
c2362cf43c util: Test __PPC64__ for getting PIPE_ARCH_PPC_64 respond to __PPC64__ take effect
Fixes: e737a99a6f ("Fix PPC detection on darwin")

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19674>
(cherry picked from commit 7710cc8506be571ce83751c8f7afbe6fac256b36)
2022-11-15 15:41:56 -08:00
Yonggang Luo
bed2fd361c clover: empty soversion when on win32
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7675
Cc: mesa-stable

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Prodea Alexandru-Liviu <liviuprodea@yahoo.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19653>
(cherry picked from commit 14eef1414725692a22fa24e027e8b1fd618d57ed)
2022-11-15 15:41:55 -08:00
Erik Faye-Lund
aea456776c docs: remove stale envvar-reference
This reference was left over when the envvar was removed.

Fixes: 231ccb6100 ("docs: Remove no-longer-accurate text about the xlib driver")

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19593>
(cherry picked from commit 9bfa939a5e6377efe7b610dd9b6846edeb0fdafc)
2022-11-15 15:41:54 -08:00
Erik Faye-Lund
25c5a09f84 docs: do not mention EGL_MESA_drm_display
This extension was removed back in 2016, but it seems we left a mention
of it in the docs.

The entire section with this extension seems kinda pointless now, so
let's drop it entirely.

Fixes: f3e23ead53 ("egl: remove remnants of MESA_drm_display")
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19719>
(cherry picked from commit 9f2c9e4c3fa57deba3da30dfa8e022c0a49c80f0)
2022-11-15 15:41:53 -08:00
Lucas Stach
da12da77fc etnaviv: switch to late Z when linear PE is used
In linear PE mode the early and late depth stage do not only disagree
about the cache layout, but they seem to fundamentally disagree about
the buffer layout. When Z was written via the late stage, early tests
always show spurious zfails, even if they are not in the same draw
call. Cache flushing and pipe stalls don't help in that case.

The only option to get reliable Z tests with linear render targets is
to move all Z handling into the PE stage. Even when early Z writes
are possible, we don't know if any other draw to the same surface
needs late Z handling, so we must never use the early stage.

Fixes: 53445284a4 ("etnaviv: add linear PE support")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19686>
(cherry picked from commit 7fe91c9f660f3b76e2c08c0824d226417231c822)
2022-11-15 15:41:53 -08:00
Qiang Yu
7b1b097dd0 ac/llvm: fix gfx11 fs input load for 16bit varying
Otherwise we get empty output.

Fixes: b07204d780 ("radeonsi/gfx11: interp changes for 16bit")
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19637>
(cherry picked from commit 88b1bb326dae2d4cc7e069849f82c08f35c407d5)
2022-11-15 15:41:52 -08:00
Qiang Yu
838c1249b6 ac/nir/ngg: remove nuw for negative value add
Add negative value is possible to wrap around. I haven't seen this
"nuw" causes any problem yet, but let's remove it for safe.

Fixes: 60ac5dda82 ("ac: Add NIR lowering for NGG GS.")
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19718>
(cherry picked from commit c21e184cc5cc818285c5590f36b170362defaf27)
2022-11-15 15:41:51 -08:00
Qiang Yu
af4c9789bb ac/nir/ngg: fix nogs culling with nuw add
We should not use "nuw" here as negative add positive may wrap
around (negative is 0xffffff??).

This problem can be observed with LLVM15 (I can't see when LLVM14):
  %.neg = mul nsw i32 %31, -4
  %163 = add nuw nsw i32 %.neg, 16
  %164 = lshr i32 257, %.neg
  %165 = lshr i32 %164, %163

LLVM just assume %.neg is possitive, so pre-shift 0x01010101 by 16.
This get wrong value because we can't get back the shifted bits with
a negative shift right.

Fixes: 75dbb40439 ("ac/nir: Remove byte permute from prefix sum of the repack sequence.")
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19718>
(cherry picked from commit 982b523769a75c99039deac7f832a1e10260e916)
2022-11-15 15:41:51 -08:00
Dave Airlie
c0c5eed580 gallivm: add coro malloc hooks earlier and always.
This fixes GALLIVM_DEBUG=asm for compute shaders, changing
the hooks after dumping causes a segfault because the
memory has already been finalised. Just add the hooks always,
and before dumping anything.

Fixes: f511d2a553 ("gallivm: rework coroutine malloc/free callouts.")
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19714>
(cherry picked from commit fb7de303ba7cbdb4237d2ae93011bc2845114d35)
2022-11-15 15:41:50 -08:00
Caio Oliveira
2828fae0cf intel/compiler: Fix missing tie-breaker in brw_nir_analyze_ubo_ranges() ordering code
Per Ken suggestion, use ascending order for the start offset.

Fixes: 6d28c6e52c ("i965: Select ranges of UBO data to be uploaded as push constants.")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19731>
(cherry picked from commit 494e2edb90d06f645e09b10d2c3f6b8d274d4dba)
2022-11-15 15:41:48 -08:00
Dylan Baker
6922ca94b3 .pick_status.json: Update to 51457b19cea9608f6bb2be81430d37da5333d2fe 2022-11-15 15:41:40 -08:00
Caio Oliveira
c9e65acaad intel/compiler: Fix dynarray usage in intel_clc
The code builds up the dynamic array of objects (spirv_objs) and
collect pointers to each of them into another dynamic
array (spirv_ptr_objs).

If the growth of the first array cause a reallocation, it is
possible that the previous pointers end up invalid.

Fixes: 77e929a527 ("intel/clc: allow multiple CL files to be compiled together")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19730>
(cherry picked from commit 9fd1d47aa0f19fac30d29e6ae40ed0383c1930ee)
2022-11-14 15:50:45 -08:00
Jason Ekstrand
e514b07e34 vulkan: Unconditionally add barriers for missing external subpass deps
This is a very scorched-earth approach which doesn't take into account
whether or not there are any explicitly provided dependencies.  We could
take a finer-grained approach in theory but it's unlikely to matter in
practice since you usually stall in Begin/EndRenderPass anyway.

Fixes: 1d726940d2 ("vulkan: Add a common CmdBegin/EndRederPass implementation")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6203
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7650
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19599>
(cherry picked from commit 11b2a063bf1f18b3be9542be8c229427a33c92f0)
2022-11-14 15:50:42 -08:00
Jason Ekstrand
71be5b2549 vulkan: Handle VK_SUBPASS_EXTERNAL at the end of a subpass
Fixes: 1d726940d2 ("vulkan: Add a common CmdBegin/EndRederPass implementation")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19599>
(cherry picked from commit 4ff5051944e7a7a8bf003c331af1a73ac6c7df61)
2022-11-14 15:50:40 -08:00
Lionel Landwerlin
fca0249e9c anv: bump pool bucket max allocation size
Age of Empire IV generates a shader of ~2.3Mb on DG2 which is above
the limit we currently have.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19669>
(cherry picked from commit ae76bba34a878dbd299f911bceaa9acdf01eb38a)
2022-11-14 13:37:58 -08:00
Timothy Arceri
7d0c7c57d5 nir: fix typo in lower_double options handling
Seems the intention was to check that both flags were not enabled
instead we were checking that the floor flag was both set and not
set so the result would always be false.

Fixes: 3749a6ecd2 ("nir: honor lower_double options for ffloor and ffract")

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19642>
(cherry picked from commit 34c52d8cb98e74a9debcd2605b377170c025582a)
2022-11-14 13:37:58 -08:00
Iago Toral Quiroga
2406718cc7 v3dv: fix debug dump on BO free
We were resetting the BO struct right before dumping its data. Fix
this by moving the reset later.

Fixes: 44fa8304d4 ('v3dv: add a refcount mechanism to BOs')
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19672>
(cherry picked from commit 2c44597181e28b05d4b269ee73d4f3a59bc0a806)
2022-11-14 13:37:58 -08:00
Tapani Pälli
b8e787da4e anv: setup stage bitmask for Wa_22011440098
Fixes: 40b66a4499 ("anv, iris: Add Wa_22011440098 for DG2")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19636>
(cherry picked from commit ecd4517560f135f64abf6e40acc48807b400ca41)
2022-11-14 13:37:58 -08:00
Tapani Pälli
fb86c07468 iris: setup stage bitmask for Wa_22011440098
Fixes: 40b66a4499 ("anv, iris: Add Wa_22011440098 for DG2")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19636>
(cherry picked from commit 210d95bdb35c2c172f0a3a9527b181f8988a627f)
2022-11-14 13:37:58 -08:00
Emma Anholt
ef204ae80a ir3/ra: Make sure we don't pick a preferred reg overflowing the file.
If we're in handle_collect()'s dst allocation and are part of a merge set
near the end of the file, our check for reg_elem_size(reg) would let us
use the preferred reg when that would immediately lead to
allocate_dst_fixed() creating an interval extending thruogh reg_size(reg)
that overflows the file.

Avoids a regression on gfxbench5/gl_5_high_off/17.shader_test in the next
commit.  No change on shader-db.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18946>
(cherry picked from commit a39113b616099a7bcce9e62337731f040c7cad64)
2022-11-14 12:00:32 -08:00
Dylan Baker
06c5579f32 .pick_status.json: Mark 25c180b50974b55e007dbbff18be1d831cd06551 as backported 2022-11-14 12:00:29 -08:00
Mario Kleiner
cce6fffe18 vulkan/wsi/display: Reset connector state in vkReleaseDisplay().
If an application was transitioning out of fullscreen exclusive
display mode, the wsi_display_connector->active state was not
reset in vkReleaseDisplay() from fullscreen. When the app then
later tried to go to fullscreen display mode again on the same
display output with the same video mode, this caused
_wsi_display_queue_next() to skip a required drmModeSetCrtc()
during the first vkQueuePresent() after entering direct display
mode.

While this often worked by pure luck on a single-display setup,
it goes sideways on a multi-display setup where the viewport
of the associated crtc does not have a (x,y) offset of (0,0).
E.g., XOrg/X11 RandR output leasing of an output whose viewport
starts at x = 1920:

1. X-Server has RandR outputs viewport at x = 1920, in a shared
   framebuffer, shared across all crtc's on a X-Screen.

2. Application leases that output for direct display mode,
   1st vkQueuePresent() triggers drmModeSetCrtc() of output
   to (x,y) = 0,0, as required for Vulkan/wsi/direct framebuffer
   setup.

3. Application does rendering and presenting.

4. Application vkReleaseDisplay() the output, terminates the
   RandR lease. X-Server takes over again.

5. X-Server modesets to reconfigure output back to viewport
   with (x,y) = 1920, 0.

6. Application leases same output again later on, and tries
   vkQueuePresent() again. Because of the bug fixed in this
   commit, the required drmModeSetCrtc() to (x,y) = 0,0 is
   erroneously skipped due to the stale cached connector state.

7. drmModePageflip() fails due to the wrong crtc viewport
   (x,y) = 1920, 0, mismatched for the need of the Vulkan
   framebuffer of (x,y) = 0,0. Kernel returns -ENOSPACE,
   Swapchain goes into permanent VK_ERROR_SURFACE_LOST state.
   Destroying and recreating the swapchain, as recommended
   by the Vulkan spec for error handling won't help. Game over!

Resetting wsi_display_connector->active = false; fixes the
problem of wrong / stale connector state and Vulkan/wsi/display
clients are happy on multi-display setups again, as tested
in various single- and multi-display configurations.

This bug affects all Mesa releases with Vulkan/WSI/Display
support and should therefore be backported.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Fixes: 352d320a07 ("vulkan: Add EXT_direct_mode_display [v2]")
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19484>
(cherry picked from commit 24094ee03d625fbcd2d154e8c2dd5434ba88f166)
2022-11-14 12:00:20 -08:00
Dylan Baker
1c54e9a816 .pick_status.json: Update to 9fd1d47aa0f19fac30d29e6ae40ed0383c1930ee 2022-11-14 12:00:12 -08:00
Lionel Landwerlin
c388406617 anv: Reduce RHWO optimization (Wa_1508744258)
Implement Wa_1508744258:

   Disable RHWO by setting 0x7010[14] by default except during resolve
   pass.

Disable the RCC RHWO optimization at all times except when resolving
single sampled color surfaces.

v2: Move stalling to genX(cmd_buffer_apply_pipe_flushes) for clarity (Mark)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Mark Janes <markjanes@swizzler.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: mesa-stable
(cherry picked from commit ba0336ab3f69f958e4346c1465c2fe0859d4ac59)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19671>
2022-11-11 11:57:26 +02:00
Nanley Chery
ae07c08fd2 iris: Reduce use of RHWO optimization (Wa_1508744258)
Implement Wa_1508744258:

   Disable RHWO by setting 0x7010[14] by default except during resolve
   pass.

Disable the RCC RHWO optimization at all times except when resolving
single sampled color surfaces. MCS partial resolves are done via
software (i.e., not via a HW bit) and so are not expected to need this
workaround.

Reviewed-by: Mark Janes <markjanes@swizzler.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 0fa540ef6137aa235f62a0ba60886f64d754566d)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19671>
2022-11-11 11:57:17 +02:00
Guilherme Gallo
130bfdde74 docs: Update link releases notes for 22.2.x
Some previous commits changed .gitlab-ci.yml, so the `test-docs-mr` was
triggered. It failed due to the lack of toctree reference in
documentation, even when the relnotes for 22.2.0 to 22.2.3 exist.

This commit fixes that to make the CI pipeline green again.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19604>
2022-11-11 02:29:52 +00:00