summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa.inc
AgeCommit message (Collapse)Author
2021-10-02mesa: Ensure megadrivers runtime mappings are deterministicRichard Purdie
Add a sort to ensure the package dependency output is determnistic. (From OE-Core rev: 693e8d0dfe0b475bc233ccc1ad7674d39de346ce) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-02mesa: enable crocus driver for older intel graphicsAlexander Kanavin
See here for the full story: https://www.phoronix.com/scan.php?page=news_item&px=Intel-Crocus-Default-Gallium3D Once crocus does become the default over i965, upstream is likely to retire classic pre-gallium drivers altogether, which (with the exception of i965, superseded by crocus) are all for retrocomputing hardware. (From OE-Core rev: dfc5f935b5b1759f73b2ddd86d2b291436dbc705) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-02mesa: fix build on Arm V5 with soft floatRoss Burton
Since 80923e8d ("util/format: Add some NEON intrinsics-based u_format_unpack.") upstream the build fails on Arm platforms which use the soft-float ABI, such as qemuarmv5: arm_neon.h:31:2: error: #error "NEON intrinsics not available with the soft-float ABI. Please use -mfloat-abi=softfp or -mfloat-abi=hard" Take a patch from upstream to check the ABI being used before trying to use NEON instructions. (From OE-Core rev: f3d82abb781c2642a50a60033641194d1e40c212) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-23mesa: upgrade 21.1.5 -> 21.2.1Alexander Kanavin
(From OE-Core rev: 0d0a0902fe8db8a87c16be3b722e3b8d5f193785) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-18mesa: upgrade 21.1.5 -> 21.1.7Andreas Müller
Joshua's vc4/v3d/dma-patch was applied in 21.1.7 Release notes 21.1.7: Bug fixes Miscompilation of a switch case [radeonsi][regression] CPU is being used ~10 times more than usual after c5478f9067f. dEQP-VK.wsi.android.swapchain.create#image_swapchain_create_info crash on Android R The image is distorted while use iGPU(Intel GPU) rendering and output via dGPU (AMD GPU) lima: regression in plbu scissors cmd Incorrect rendering Changes pan/bi: Restrict swizzles on same cycle temporaries nir/lower_mediump_io: Don’t remap base unless needed nir/lower_mediump: Fix metadata in all passes util/fossilize_db: Update parsed_offset correctly. util/fossilize_db: Reset file position to parsed_offset on cache_offset read failure. util/fossilize_db: Flush files after header write. util/fossilize_db: Be conservative about header length check for locking. util/fossilize_db: Only allocate entries after full read. util/fossilize_db: Use uint64_t for file size. util/fossilize_db: Unlock the cache file if the entry already exists. util/fossilize_db: Add extra flock mutex. radv: Allocate space for inline push constants. vulkan/wsi/x11: do not inherit last_present_mode ir3: Preserve gl_ViewportIndex in the binning shader teximage: return correct desktop GL error for compressedteximage intel/fs: restrict max push length on older GPUs to a smaller amount virgl: disable anisotropic filtering. freedreno/ir3: Add build id to the disassembler test .pick_status.json: Update to 7055282231cdad23e7b23fb49a2f953a99797f8a .pick_status.json: Update to 2f06642b06c94f07f4bfe3df32b25659428c9144 .pick_status.json: Mark 6ccf11ac2b951963407601b5b1109b45a972e48e as denominated .pick_status.json: Update to 2f06642b06c94f07f4bfe3df32b25659428c9144 .pick_status.json: Update to 353e6323936b812884fa677c25bdba91554881b7 .pick_status.json: Update to 4128acdee32eadfef1fb8c3c3ce2e512a267cdf4 pick-ui: drop assert that optional argument is passed pick-ui: show nomination type in the UI pick-ui: show commit date lima: avoid crash with negative viewport values zink: make codegen compatible with python 3.5 mesa/main: Check for fbo attachments when importing EGL images to textures v3d, vc4: Fix dmabuf import for non-scanout buffers gallium/hud: initialize query nv30: fix emulated vertex index buffers gallium: Reset {d,r}Priv in dri_unbind_context loader/dri3: create linear buffer with scanout support anv: fix submission batching with perf queries anv: don’t try to access Android swapchains renderonly: don’t complain when GPU import fails etnaviv: always try to create KMS side handles for imported resources glsl: evaluate switch expression once zink: use array size in spirv bo length calculations etnaviv: fix gbm_bo_get_handle_for_plane for multiplanar images clover/spirv: Properly size 3-component vector args clover/nir: Set constant buffer pointer size to host gallium/va: don’t use key=NULL in hash tables amd/registers: fix fields conflict detection radeonsi: don’t create an infinite number of variants nir/algebraic: fix imod by negative power-of-two radv: fix selecting the first active CU when profiling with SQTT etnaviv: fix renderonly check in etna_resource_alloc etnaviv: fail in get_handle(TYPE_KMS) without a scanout resource freedreno: fail in get_handle(TYPE_KMS) without a scanout resource panfrost: fail in get_handle(TYPE_KMS) without a scanout resource lima: fail in get_handle(TYPE_KMS) without a scanout resource nine: Fix assert in tx_src_param intel/compiler: make sure swizzle is applied to if condition glsl: Add operator for .length() method on implicitly-sized arrays glsl: Properly handle .length() of an unsized array gallium/vl: don’t leak fd in vl_dri3_screen_create Release notes 21.1.6: Bug fixes [RADV] FSR in Resident Evil: Village looks very pixelated on Polaris Crash in update_buffers after closing KDE “splash screen” downloader Crash in update_buffers after closing KDE “splash screen” downloader radeonsi: persistent, read-only buffer maps are slow to read substance painter flickering with jagged texture and masks shown black radv: FP16 mode in FidelityFX FSR doesn’t look right [RADV] Blocky corruption in Scarlet Nexus and vkd3d-proton 2.4 Radeon RX580 and 5700 XT: Reloading ARB assembly shaders causes very glitchy rendering Changes targets/graw-xlib: Add missing dep_x11 egl/surfaceless: try kms_swrast before swrast meson: allow egl_native_platform to be specified freedreno/computerator: Fix local_size typo aco/optimizer: ensure to not erase high bits when propagating packed constants egl/wayland: Error on invalid native window egl/wayland: Allow EGLSurface to outlive wl_egl_window softpipe/aniso: move DDQ calculation to after scaling. llvmpipe: add support for time elapsed queries. .pick_status.json: Mark a9c9a9938d6d2ead6f08ccf5256c95801fbc864f as backported .pick_status.json: Update to 376fb4f55f080929df8ca5a2a975fc88a00eec06 .pick_status.json: Update to 1d6c790f9f6c373e667de955822b1048c7073ba3 .pick_status.json: Update to 73262d4bd4a4637a332264a165c62ce3209d03fb zink: remove duplicate format-mapping on little-endian vulkan: do not map zero-sized region of memory vulkan: allocate host-visible memory for swapchain images nir/gcm: Clear out pass_flags before starting iris: Re-emit MEDIA_VFE_STATE for variable group size shaders anv: Handle errors properly in anv_i915_query v3d/driconf: Expose non-MSAA texture limits for mutter and gnome-shell lavapipe: Use common Vulkan format helpers broadcom/compiler: emit TMU flush before a jump nv50/ir/nir: fix smem size for GL radeonsi: don’t expose no-attachment MSAA 16x on all 1 RB chips due to issues st/mesa: always use PIPE_USAGE_STAGING for GL_MAP_READ_BIT usage egl/android: include “util/compiler.h” for FALLTHROUGH macro util/foz: stop crashing on destroy if prepare hasn’t been called radeonsi: Check aux_context on si_destroy_screen() mesa: clear shader_info::is_lowered in prog_to_nir mesa: fix bindless uniform samplers update aco: don’t create v_madmk_f32/v_madak_f32 from v_fma_legacy_f16 freedreno/ir3: Don’t force RTNE if rounding mode is undefined radv: only init the TC-compat ZRANGE metadata for the depth aspect glsl: replace some C++ code with C util: add workaround for Full Bore glsl: relax rule on varying matching for shaders older than 4.20 lima: handle fp16 vertex formats (From OE-Core rev: ce202e5f3f0eaceec2e23ebd1697f73c9fa00aaf) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-02meta: Manual override fixesRichard Purdie
The automated conversion of OE-Core to use the new override sytax isn't perfect. This patches some mis-converted lines and some lines which were missed by the automation. (From OE-Core rev: 4e9a06b64b43131b731fb59a0305f78a98e27fbd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-02Convert to new override syntaxRichard Purdie
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-07-28mesa: Fix v3d & vc4 dmabuf importJoshua Watt
Mesa would unnecessarily fail in the v3d and vc4 driver if a dmabuf could not imported for scanout. In particular, this meant the weston-simple-dmabuf-egl test program would fail on a Raspberry Pi. (From OE-Core rev: 6396c42df4609b4515f197926388ff4acb11fe52) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-07-19mesa: upgrade 21.1.4 -> 21.1.5Andreas Müller
Bug fixes * [build error] macros.h:88:26: error: size of unnamed array is negative * Game Issue: Nuclear Throne crashes in RadeonSI * Crash in glLinkProgram while trying to craft the link error * Shader compilation memory leaks * Wolfenstein II: The New Colossus - Screen goes black in some cases * SpaceEngine in Steam Proton cannot start with Mesa >=20.3 * [bisected] KDE plasma menu text renders like stretched strangely [amdgpu] * Luna Sky Crashes on Launch * Mesa crashes on undefined texture behaviour * Mesa crashes on undefined texture behaviour * cache_test uses uninitialized stack memory Changes * nir: Fix constant folding for irhadd/urhadd * ac/surface: Handle non-retiled displayable DCC correctly for modifiers. * ir3: Fix infinite loop in scheduler when splitting * glsl: Prohibit implicit conversion of mem parameter in atomicOP functions * draw: fix tessellation output vertex size calculation * .pick_status.json: Update to e4f762ac346f31fc1fd201aecdc375348be5075f * zink: mark a bunch of zink-piglit-quick_gl tests as flakes * .pick_status.json: Update to c704bb630d21e0a30500e9d8f42493ede3cc55ae * .pick_status.json: Mark e5d158881b3e12270521d7081b4bba0ac2108d2e as denominated * softpipe: add missing sentinel to debug option array * iris: Don’t leak the surface if uncompressed re-interp fails * intel/perf: use the right popcount for 64bits * ac/surface/tests: fix the ARM build * radeonsi,radv: fix a late alloc deadlock with <= 6 CUs per SA * Convert most remaining free-form fall-through comments to FALLTHROUGH * osmesa: Replace default case FALLTHROUGH annotation by following return * Fix up leftover “state_trackers” references to “frontends” * radeonsi: fix fb_too_small condition * radeonsi/gfx7: always sync pfp/me * ac/surface: don’t print stencil info if tex has no stencil * radeonsi/driconf: add workaround for SpaceEngine * st/mesa: fix size miss match for some check * freedreno: Consolidate needs_flush and clearing last_fence * freedreno/a6xx: Fix framebuffer_barrier crash * radv: disable DCC for DOOM 2016 and Wolfenstein II * aco: fix shared_atomic_comp_swap if the second source isn’t a VGPR * nir: return progress from nir_lower_packing * nir/ifind_msb_rev: fix input check * broadcom/compiler: fix add vs. mul * util/tests: initialise key in cache_test * mesa: don’t crash on incorrect texture use * i965: don’t crash on incorrect texture use * util/driconf: add new ignore_write_to_readonly_var workaround * util: add some workarounds for the game Luna Sky * glsl: force_glsl_version to shaders with no defined version * util/radeonsi: add radeonsi workaround for Nuclear Throne * st/xa: Mark default xa_get_pipe_format case unreachable. * intel: fix leaking memor * y on shader creation (From OE-Core rev: ff0612d0030e4af5233b846e218334cea9cabf17) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-07-07mesa: upgrade 21.1.3 -> 21.1.4Andreas Müller
Bug fixes * [anv] GravityMark (benchmark) crashes on ANV * [opengl] We happy few not being rendered correctly * Factorio: GPU hang when opening machine inventory * RuneScape on Mesa 21.1.1 (VEGA10) has bad performance and leaks memory * Supraland: flickering black bars on ground * radv: GPU hang in Cyberpunk 2077 on Big Navi * [amdgpu][renoir][rx5500m]: [drm:0xffffffff8198ad5e] *ERROR* ring gfx timeout, signaled seq=10952, emitted seq=10954 * [spirv-fuzz] SPIR-V parsing FAILED: Invalid back or cross-edge in the CFG * panfrost Mount and Blade: Warband (glitches) * anv: dEQP-VK.robustness.robustness2*no_fmt_qual.null_descriptor.samples* fail Changes * util/fossilize_db: Pull seek into lock. * util/fossilize_db: Split out reading the index. * util/fossilize_db: Do not lock the fossilize db permanently. * spirv: Fix handling of OpBranchConditional with same THEN and ELSE * nir/opt_if: Don’t split ALU for single block infinite loops * llvmpipe: Add handle export for resource_get_param * i965: fix regression in pipe control on g45 * pick_status.json: Update to 977355c6e5efd781dde85d834172dd23cd4852f1 * pick_status.json: Update to 40b67a292297606f0a7576e3ef4087028d5edd17 * zink: do not unmap dt-buffers twice * zink: drop repeated usage-bit * zink: do not check buffer-format for usage-bits * zink: remove unused moltenvk functions * libgl-gdi: add missing include * aux/trace: fix bool argument * ci/windows: work around meson encoding issues * intel/fs: Teach IR about EOT instruction writing the accumulator implicitly on TGL+. * intel/fs: Fix synchronization of accumulator-clearing W/A move on TGL+. * pan/mdg: Add a bundle ID to instructions * pan/mdg: Reorder some code in mir_spill_register * pan/mdg: Fill from TLS before spilling non-SSA nodes * pan/mdg: Fix reading a spilt register in the bundle it’s written * pan/mdg: Add 16 bytes of padding to the end of shaders * intel/nir: Fix txs for null surfaces * spirv: Create acceleration structure and shader record variables * nv50/ir: fix surface lowering when values get shared accross operations * anv: Fix dynamic primitive topology for tess on Gfx7.x too * anv: allocate bigger batches as we grow command buffers * mesa: unreference zombie buffers when creating buffers to lower memory usage * compiler/glsl: Use mutex lock while freeing up mem_ctx * anv: fix dynamic primitive topology for tess * zink: handle custom border color without matching wrap mode case * radeonsi: skip instance_count==0 draws on <= GFX9 * radeonsi: disable ngg culling on llvm < 12 * radv: reject binding buffer/image when the device memory is too small * radv: always decompress both aspects of a depth/stencil image * amd/addrlib: remove Meson debug message() * radeon/vcn/enc: Add missing line to HEVC SPS header code * util: add work around for the game We Happy Few * ac/nir: Update TCS output barriers with nir_var_mem_shared. * radv/llvm: Emit s_barrier at the beginning of NGG non-GS shaders. * aco/gfx10: NGG zero output workaround for conservative rasterization. * aco/gfx10: Emit barrier at the start of NGG VS and TES. (From OE-Core rev: b6fbe138f4d359fb5ed5fb0968f6be8f04f8eca6) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-06-22mesa: upgrade 21.1.2 -> 21.1.3Andreas Müller
Changelog: Bug fixes * radv: ACO miscompiles a specific DIRT 5 shader * Segfault in mtx_unlock/amdgpu_bo_slab_destroy * [radeonsi] Incorrect rendering when using glDisable(GL_MULTISAMPLE) with multisample backbuffer * kwin_x11 ring gfx_0.0.0 timeout * [i965] regression: piglit.spec.arb_depth_buffer_float.fbo-depthstencil-gl_depth32f_stencil8-drawpixels Changes * classic/xlib: Fix the build after !9817 * radv: Don’t skip barriers that only change queues. * radv: Actually return correct value for read-only DCC compressedness. * radv: Allow DCC images to be compressed with foreign queues. * llvmpipe: add the interesting bit of cpu detection to the cache. * zink: Correct compiler issue with have_moltenvk member having been moved. * .pick_status.json: Update to db83dc619c96c35a039f2d8a32e1a179c0f00d64 * .pick_status.json: Update to f884c2e3be363903a59dbee01868c7ad0bf0f346 * .pick_status.json: Update to 561f9ae74b2b7da06bb4830aaca8d017a3dd2746 * llvmpipe: fix edge-rule logic for lines * anv: Clear all pending stall after pipe flush * util: Zero out all of mask in util_set_thread_affinity * panfrost: Use first_tiler to check if tiling is needed * intel/vec4: Also use MOV_FOR_SCRATCH for swizzle resolves * anv: Handle OOM in the pinned path in anv_reloc_list_add * sparc: Avoid some redefinition warnings * zink: ci updates * anv: fix availability for copying timestamp query results * util/vbuf: fix buffer overrun in attribute conversions * zink: fix caching of shader variants with inlined uniforms * zink: use scissor region for discarding clears during blit * zink: fix typo that’s definitely not at all embarrassing or anything like that * svga: Initialize pipe_shader_state for transform shaders * docs/install: remove one extra when * frontend/dri: set PIPE_BIND_PROTECTED later * frontend/dri: fix bool/int comparison * radeonsi: fix encryption check for buffers * radeonsi: add a gfx10 bug workaround for NOT_EOP * radeonsi: dirty msaa_config on rs->multisample_enable change * winsys/amdgpu: don’t read bo->u.slab.entry after pb_slab_free * aco: do not clause NSA instructions * aco: don’t create 4 and 5 dword NSA instructions on GFX10 * aco: use v1b/v2b for ds_read_u8/ds_read_u16 * egl: zero is a valid fd * freedreno/ir3: Fix use after free * radv: enable RADV_DEBUG=invariantgeom for SotTR DX11/DX12 versions * radv: emit PA_SC_CONSERVATIVE_RASTERIZATION_CNTL only on GFX9+ * aco: fix range checking for SSBO loads/stores with SGPR offset on GFX6-7 * aco: fix emitting literal offsets with SMEM on GFX7 * radv: do not launch an IB2 for secondary cmdbuf with INDIRECT_MULTI on GFX7 * radv: fix aligning the image offset by using align64() * util/format: Change the pointer offset. * aco/ra: Fix off-by-one-error in print_regs * travis: Download XQuartz from GitHub. (From OE-Core rev: e6e3570d9d555c0f2e62210a2163ae74cc495f2e) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-06-21mesa: enable gallium intel drivers when building for x86Alexander Kanavin
Iris is the default, recommended option for Skylake and newer nowadays, i915 gallium is favoured over classic i915, and soon classic i965 will be replaced by crocus gallium driver for i965-to-Haswell GPUs. (From OE-Core rev: 670878b5919c2a67a2fea0b8e1f032e324fad5aa) (From OE-Core rev: 5fdc061856348c0dab4dea7cfc0e9fdc1c95d85f) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-06-06mesa: upgrade 21.1.1 -> 21.1.2Andreas Müller
Changes: Adam Jackson (1): zink/ntv: Don't call free() on ralloc'd memory Alyssa Rosenzweig (3): panfrost: Fix the reads_dest prototype panfrost: Fix is_opaque prototype panfrost: Increase tiler_heap max allocation to 64MB Anuj Phogat (1): intel/gfx12+: Add Wa_14013840143 Charmaine Lee (1): svga: fix texture rectangle sampling when no sampler view declaration is defined Emma Anholt (2): i915g: Disable 3D-pipeline clears. i915g: Add support for the .Absolute flag on TGSI srcs. Eric Anholt (1): i915g: Stop advertising support for indirect addressing in the FS. Eric Engestrom (9): .pick_status.json: Update to 17861aff9614abfea3b8a8f111a114b26b351915 pick-ui & .pick_status.json: rename `master_sha` to `main_sha` .pick_status.json: Update to b663c544177e9547793ee405887f0d41c50e6d1d .pick_status.json: Update to 507e8907af913ab7b89211240568b8002b3475f1 .pick_status.json: Update to 3179daf61393ee8a0fac943b94335b114e34873b .pick_status.json: Update to 761383720617b46617bd278ec6015c9520f43f5c .pick_status.json: Update to 1199d86b2cccc38a101e63bdf9b60a7391f96092 docs: add release notes for 21.1.2 VERSION: bump for 21.1.2 Erik Faye-Lund (2): zink: use actual const for const offset util/prim_restart: revert part of bad fix Erik Kurzinger (1): vulkan/device_select: avoid segfault on Wayland if wl_drm is unavailable Georg Lehmann (1): radv: Fix compatible image handle type for dmabufs. Ian Romanick (2): nir/algebraic: Remove some optimizations of comparisons with fsat nir/algebraic: Invert comparisons less often Icecream95 (1): panfrost: Fix polygon list size computations Italo Nicola (1): panfrost: fix GL_EXT_multisampled_render_to_texture regression Jason Ekstrand (3): anv: Plumb the shader into push constant helpers anv: Support pushing shader constants intel/vec4: Don't spill fp64 registers more than once José Fonseca (1): draw: Allocate extra padding for extra shader outputs. Juan A. Suarez Romero (1): vc4: initialize array Kenneth Graunke (2): i965: Don't advertise Y-tiled modifiers for scanout buffers on Gfx8- iris: Don't advertise Y-tiled modifiers for scanout buffers on Gfx8 Marek Olšák (3): ac/gpu_info: set has_zero_index_buffer_bug for Navi12 too radeonsi: add a gfx10 hw bug workaround with the barrier before gs_alloc_req radeonsi: disable DFSM on gfx9 by default because it decreases performance a lot Mike Blumenkrantz (4): util/prim_restart: fix util_translate_prim_restart_ib aux/vbuf: prevent uint underflow and assert if no vbs are dirty aux/trace: fix set_inlinable_constants hook zink: remove weird lod hack for texturing Nanley Chery (2): anv,iris: Port the D16 workaround stalls to BLORP intel/isl: Fix HiZ+CCS comment about ambiguates Neha Bhende (2): svga: Add target and sampler_return_type info into shader key svga: Use shader_key info to declare resources if TGSI shader is missing it Rhys Perry (3): aco: disallow SGPRs on DPP instructions radv: add radv_absolute_depth_bias radv: workaround incorrect depthBiasConstantFactor by Path of Exile Robert Tarasov (1): iris: Check data alignment for copy_mem_mem Samuel Pitoiset (4): aco: fix derivatives/intrinsics with SGPR sources radv: fix fast clearing DCC if one level can't be compressed on GFX10+ aco: fix emitting discard when the program just ends radv: enable RADV_DEBUG=invariantgeom for Monster Hunter World SureshGuttula (1): frontends/va/picture:Fix wrong reallocation even surface is protected cheyang (1): virgl:Fix the leak of hw_res used as fence (From OE-Core rev: 6d7cde03cc26adb5e1642ddc90f58aae60de1cbc) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-05-25mesa: update 21.0.3 -> 21.1.1Alexander Kanavin
License-Update: typo fix (From OE-Core rev: 2b91620cdb2047fd3df8e951a80142b67af85f26) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-05-12mesa: add lmsensors PACKAGECONFIGAlexander Kanavin
(From OE-Core rev: 1b470a5fe7c74938cac7c83cd104ca25182af6cc) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-05-01mesa: upgrade 21.0.2 -> 21.0.3wangmy
(From OE-Core rev: a89ed8ce30a5830a0ac90aa633ec466b4e3a0ba1) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-18mesa: upgrade 21.0.1 -> 21.0.2wangmy
(From OE-Core rev: 58ad359da1b05820ea3dc4ae3f789ccb8991fc32) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-05mesa: enable dri in native/nativesdk through gallium driversAlexander Kanavin
Previously, dri was enabled via a token dri driver (swrast, then nouveau). Upstream is discussing removing dri drivers altogether (they're becoming difficult to support and only needed for obsolete x86 hardware), so let's prepare for that happening in the future: https://lists.freedesktop.org/archives/mesa-dev/2021-March/224984.html (From OE-Core rev: d32add868ee5cb05c4fdbc0c30c7bb01070e683b) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-05mesa: gallium option requires libdrmAlexander Kanavin
Previously it was pulled in via dri option, and there was no configuration where gallium was enabled and dri was not. (From OE-Core rev: 1328556e9c0853babff45bf1bf67643d7ddfdabb) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-05mesa: update 21.0.0 -> 21.0.1Alexander Kanavin
(From OE-Core rev: e72dc396f0e147b078160fae0ac43861eb60e76f) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-04-05mesa-gl: Use swrast gallium driverKhem Raj
Fixes: ../mesa-21.0.0/meson.build:21:0: ERROR: Options "swrast" are not in allowed choices: "auto, i915, i965, r100, r200, nouveau" with any driver enabled in DRIDRIVERS, do_configure fails with: ../mesa-21.0.0/meson.build:519:4: ERROR: Problem encountered: building dri drivers require at least one windowing system even after enabling gallium and wayland PACKAGECONFIGs, move DRIDRIVERS_append* from mesa.inc to mesa recipe. (From OE-Core rev: 2d0239c446be3e7f04c00e24f6c8ac1707440c8a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-20mesa: update 20.3.4 -> 21.0.0Alexander Kanavin
0001-anv-fix-a-build-race-between-generating-a-header-and.patch merged upstream. osmesa is now a simple boolean option. Swrast has been removed from dri drivers, so as we need at least one driver to enable dri in native/nativesdk, replace it with nouveau (which does not take long to build). (From OE-Core rev: e4e4cc57a0a949400c557073af0cf78f977bd02d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-02-19mesa: upgrade 20.3.2 -> 20.3.4Anuj Mittal
(From OE-Core rev: d9c368dcfe6476454aef33592f676b28537af2d9) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-01-29native: Stop clearing PACKAGESRichard Purdie
Native recipes have been special and they don't have packages generated from them. The RDEPENDS/RPROVIDES and other runtime package specific variables can contain important data about dependencies recipes need though and currently it is required to write this information explicitly in the native case. We now delete the packaging tasks for native recipes which removes the need to clear PACKAGES. The next step to improve the metadata is to stop clearing it and ensure any entries in these variables are remapped appropriately. The R* variables were already being processed by the class extension code but the implementation was suboptimal. This patch stops clearing PACKAGES and PACKAGES_DYNAMIC and fixes the places where that caused issues in OE-Core, for example PACKAGES additions in anonymous python without the "-native" suffix and a case where the included classes caused a self reference in DEPENDS which would once have been removed by the previous code. The implementation uses datastore/parser parameters to ensure that the variable overrides are not overwritten when calling setVar which is appropriate for a function as close to the core as this one is. Some now unneeded code in python3-setuptools is dropped, there are further changes like this which can follow. This change was verified with OE-Core by comparing task-depends.dot generated by "bitbake world -g" before and after the change, the files were identical. (From OE-Core rev: fd6a007efa7cb45101a66f294af81d9d33bb3fab) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-01-15mesa,mesa-gl: upgrade to 20.3.2Dmitry Baryshkov
Upgrade mesa and mesa-gl recipes to version 20.3.2. (From OE-Core rev: 5ab325c18640dd6d17ac4592f3ba3e484a5bdb37) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-12-24mesa: update 20.2.4 -> 20.3.1Trevor Woerner
Two of the patches have been applied upstream: 0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch 0005-vc4-use-intmax_t-for-formatted-output-of-timespec-me.patch The 'surfaceless' platform is now enabled by default, therefore it is no longer a valid choice. The meson build system is intelligent enough now to decide if 'drm' needs to be enabled based on whether or not gbm is available. Therefore 'drm' also is no longer a valid platform choice: ERROR: Options "drm, surfaceless" are not in allowed choices: "auto, x11, wayland, haiku, android, windows" RP: Add missing mesa-gl upgrade (From OE-Core rev: de68fe9268092c0600a81bedfc805eaed9dcb87b) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-12-20mesa.inc: switch true/enabled false/disabledTrevor Woerner
A number of options have been switched from true/false to enabled/disabled and the older usage is deprecated, as is seen in the configuration logs: ../mesa-20.3.1/meson.build:92: WARNING: gles1 option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:100: WARNING: gles2 option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:119: WARNING: shared-glapi option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:381: WARNING: gbm option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:412: WARNING: egl option "true" deprecated, please use "enabled" instead. ../mesa-20.3.1/meson.build:493: WARNING: dri3 option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:516: WARNING: gallium-vdpau option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:570: WARNING: gallium-xvmc option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:691: WARNING: gallium-va option "false" deprecated, please use "disabled" instead. ../mesa-20.3.1/meson.build:727: WARNING: gallium-xa option "false" deprecated, please use "disabled" instead. (From OE-Core rev: acf78fd3d03e4fe07ee4ad677f178d17dc10ac7b) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-12-15mesa: remove patch disabling asmAnuj Mittal
This was originally added for musl only [1]. Upstream has removed this option but we reverted that change during an upgrade to fix certain musl specific compile time issues [2]. I compile tested without this patch on musl-x86 and musl-x86-64 and don't see the warnings anymore. Similar textrel issues were fixed upstream so perhaps those helped [3]. [1] https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit?id=68bf128e901e89d5b49a28b15d5083b2bf6b536f [2] https://www.openembedded.org/pipermail/openembedded-core/2019-November/289222.html [3] https://gitlab.freedesktop.org/mesa/mesa/-/commit/45206d7673adb1484cbdb3eadaf82e0849c9cdcf?merge_request_iid=1974 (From OE-Core rev: a7bd1c3ca4d2f8a5e230b19517af1c52aec35f3e) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-12-09mesa: Update 20.2.1 -> 20.2.4Fabio Berton
This commit adds the changes of 20.2.2, 20.2.3 and 20.2.4 bug fix releases. (From OE-Core rev: 9c39a1360d81264e867242f238f6d14fdb395e96) Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-16meta: drop _PYTHON_SYSCONFIGDATA_NAME hacksAlexander Kanavin
(From OE-Core rev: d3a81dd0e72a3495bfc7cc969c2bb806b666023d) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-13mesa: Add xcb-fixes to loader when using x11 and dri3Tom Hochstein
Backport fix for undefined symbol for xcb_xfixes_create_region in loader_dri3_helper.c. (From OE-Core rev: fd55d41c9d2e79fd7f7665107d1640a2dd9a3dc3) Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-08mesa: fix a build raceAlexander Kanavin
(From OE-Core rev: df243fa624f3acf20abc7574909bd43db2ed9d12) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-30mesa: update 20.1.8 -> 20.2.1Alexander Kanavin
Build tweaks: - drop separate dri option and the patch that adds it; just setting -Ddri-drivers='' is enough - strip leading/trailing commas from drivers' lists, as upstream no longer allows blank entries if the list is not empty (e.g. -Ddri-drivers=,driver1,driver2 is now producing an error). - drop the long-obsolete llvm 3.3/3.2 logic License-Update: reformatted into rst (From OE-Core rev: 8682024ef029241c75e224174fd0b93835f88df3) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-20mesa: Fix build on 32bit arches supporting 64bit time_t onlyKhem Raj
Fixes ../mesa-20.1.8/src/util/futex.h:47:19: error: use of undeclared identifier 'SYS_futex'; did you mean 'sys_futex'? return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); ^~~~~~~~~ sys_futex (From OE-Core rev: 21bdff510a7673ccf7f27f551b641a5ba84d656c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-23mesa: update 20.1.6 -> 20.1.8Anibal Limon
(From OE-Core rev: 166276bc6ad44d05b2b79ddef2ed3de3a2236631) Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-09-03mesa: update 20.1.5 -> 20.1.6Alexander Kanavin
(From OE-Core rev: 28a0c267bde3710f0debe1a9a857c6387d090e23) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-08-25mesa: upgrade 20.1.4 -> 20.1.5Alexander Kanavin
(From OE-Core rev: 993ac1a32932f2ebb571717769f654941e33c051) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-08-02mesa: update 20.1.2 -> 20.1.4Alexander Kanavin
(From OE-Core rev: 5774386700196499eb6d29b93158165ad9c4c15c) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-07-27mesa: enable freedreno Vulkan driver if freedreno is enabledDmitry Baryshkov
If freedreno is enabled in PACKAGECONFIG, enable respective Vulkan driver. (From OE-Core rev: eee63fdddaf74e548c362050f57e1d67eba1ba5d) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-28mesa: update 20.0.7 -> 20.1.2Alexander Kanavin
(From OE-Core rev: 2ee962186176c5ecb34c670e76415d4321affe76) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-04mesa: merge the .bb content into .incAlexander Kanavin
This allows automated version updates to the recipe, as mesa-gl.bb no longer has to include the main mesa.bb. Bump mesa-gl to 20.0.7 at the same time. (From OE-Core rev: 39aba6948e04f1ee9bb4069be16f68bcfdbbeac4) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-27multilib/recipes: Use new RecipePostKeyExpansion eventRichard Purdie
There are issues with multilib due to the ordering of events where some functions see the remapped multilib dependencies and some do not. A significant problem is that the multilib class needs to make some changes before key expansion and some afterwards but by using existing event handlers, some code sees things in a partially translated state, leading to bugs. This patch changes things to use a new event handler from bitbake which makes the ordering of the changes explcit. The challenge in doing this is that it breaks some existing anonymous python and dyanmic assignments. In some cases these used to be translated and no longer are, meaning MLPREFIX has to be added. In some cases these are now translated and the MLPREFIX can be removed. This change does now make it very clear when MLPREFIX is required and when it is not, its just the migration path which is harder. The patch changes the small number of cases where fixes are needed. In particular, where a variable like RDEPENDS is conditionally extended (e.g. with an override), MLPREFIX is now required. This patch also reverts: base: Revert 'base.bbclass: considering multilib when setting LICENSE_EXCLUSION' This reverts 6597130256a1609c3e05ec5891aceaf549c37985 as the changes to multilib datastore handling mean its no longer necessary. (From OE-Core rev: b3fda056a674889cd9697e779de023d4f993d3ce) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-09mesa: Add PACKAGECONFIG knob to enable VDPAU state tracker and driversZoltan Boszormenyi
(From OE-Core rev: 7ea4c7c32cbad1743852c27a2f0a87d6cf5a1820) Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-09mesa: Add PACKAGECONFIG knob to enable VAAPIZoltan Boszormenyi
The previously added libva-initial recipe makes it possible and trivial. (From OE-Core rev: 1169238a4586852f807a63d9e70a8a556d84dac6) Signed-off-by: Böszörményi Zoltán <zboszor@pr.hu> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-07mesa: enable x11 for native/nativesdkAlexander Kanavin
This was found to be necessary for libsdl-native to enable opengl, as otherwise the opengl check would fall through to the host with unpredictable outcome. (From OE-Core rev: 53fb4937e5c2b293e6bdbbceb37b1080aa5db630) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-06mesa: updated to 20.0 releaseNathan Hartman
Updated mesa and mesa-gl recipes to 20.0 release. The license checksum difference is due to a small change in the license formatting. The asterisk for footnotes was changed to a '[1]' See: https://gitlab.freedesktop.org/mesa/mesa/-/commit/199572b65b7a03ffc887783e7f0f96f95bf1f99d glxgears runs successfully at 60 fps on a rpi4. (From OE-Core rev: 0ee03e11bc2ae3faa6a2fcfdfae2ea35f7ba70ba) Signed-off-by: Nathan Hartman <hnathan918@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-29mesa: add fix for arm6Jeremy Puhlman
We have had similar problems with missing atomics on arm6 that arm5 has. (From OE-Core rev: 3971b6278f88b7f780f6d03847c2fed6bfd98d8c) Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-27mesa: Allow building the virgl driver to be configurableFred Baksik
If a .bbappend file sets GALLIUMDRIVERS then virgl is always being appended to the list of drivers to be built. Make virgl an optional component. (From OE-Core rev: 55256f06173de030a8f5181d72ac31d398edb398) Signed-off-by: Fred Baksik <fred.baksik@mrcy.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-16mesa.inc: allow the user to choose the build typeTrevor Woerner
Upstream mesa can either be built as a debug release (the default) or a production release. This patch allows the user to choose which one they want by setting MESA_BUILD_TYPE to either 'production' or 'debug' as they see fit. Under OpenEmbedded a production build will be performed by default. (From OE-Core rev: 6a6b775d69aa59102e1f6a68c88276be6d54a8e6) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-11-21mesa: Upgrade to 19.2.4Alistair Francis
Upgrade mesa and mesa-gl to 19.2.4. The license hash change was a trivial new line removal. The glx-tls option was removed as it isn't included in the meson.build file. It has been replaced with 'use-elf-tls' instead. I have backported the asm removal as an attempt to fix the musl build issue. (From OE-Core rev: 82c2acc1f658f039becac04aa3dae696418bd1de) Signed-off-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>