- May 14, 2020
-
-
Dylan Baker authored
-
Dylan Baker authored
-
- May 12, 2020
-
-
Vulkan 1.2 seems rejected. This hardcodes the Android version to 1.1.107. Closes: #2936 Fixes: 7f5462e3 ("radv: enable Vulkan 1.2") Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <!4985> (cherry picked from commit 69430921)
-
When the nir backend is used, the create_shader call is supposed to release state->ir.nir. When the cache hits, create_shader is not called, thus state->ir.nir should be freed. There is nothing to be done for the TGSI case as the tokens release is done by the caller. This fixes a leak noticed in: mesa/mesa#2931 Fixes: 4bb919b0 Signed-off-by:
Axel Davy <davyaxel0@gmail.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <mesa/mesa!4980> (cherry picked from commit 47bfc799)
-
When a = -1.0, pack_half_2x16(vec2(0x0000, 0xBC00)) will produce 0xBC000000. The ishr will produce 0xFFFFBC00. The replacement pack_half_2x16(vec2(0xBC00, 0x0000)) will produce 0x0000BC00. Fixes: 1f728577 ("nir/algebraic: add some half packing optimizations") Reviewed-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Matt Turner <mattst88@gmail.com> Cc: Connor Abbott <cwabbott0@gmail.com> Part-of: <!4515> (cherry picked from commit a2bf41ec)
-
Dylan Baker authored
-
- May 11, 2020
-
-
v_frexp_exp returns the exponent as an unsigned value. Also, v_ashr returns either 0 or -1 depending on the sign of the source operand, but what we want is only the sign bit. Fixes a bunch of recent dEQP-VK.glsl.builtin.precision_double.* tests. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!4921> (cherry picked from commit 3fba0a7a)
-
src/panfrost/shared is shared with lima driver, build bifrost_compiler for lima driver is meaningless and get link error when only lima driver is enabled. So only build bifrost_compiler when configued with: meson -Dtools=panfrost Fixes: ec2a59cd "panfrost: Move non-Gallium files outside of Gallium" Reviewed-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Signed-off-by:
Qiang Yu <yuq825@gmail.com> Part-of: <mesa/mesa!4960> (cherry picked from commit 07b0fbea)
-
Dylan Baker authored
-
- May 08, 2020
-
-
Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes: 2b5f30b1 ("anv: implement VK_INTEL_performance_query") Acked-by:
Timothy Strelchun <timothy.strelchun@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com> Part-of: <!4937> (cherry picked from commit 4f17e9ee)
-
Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by:
Tapani Pälli <tapani.palli@intel.com> Reviewed-by:
Rafael Antognolli <rafael.antognolli@intel.com> Reviewed-by:
Mark Janes <mark.a.janes@intel.com> Tested-by: Marge Bot <mesa/mesa!4344> Part-of: <mesa/mesa!4344> (cherry picked from commit aad0e6f8)
-
Fixes: 5e805cc7 "radeonsi: flush the context after resource_copy_region for buffer exports" Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!4925> (cherry picked from commit 808eb201)
-
Dylan Baker authored
To allow backports to apply
-
Dylan Baker authored
-
- May 07, 2020
-
-
This was totally broken. Monolithic PS is only used if FBFETCH or interpolateAtSample are used. When the PS prolog was built, it overwrote ctx->main_fn. Discovered by @eefano. Fixes: 8832a884 "radeonsi: move PS LLVM code into si_shader_llvm_ps.c" Closes: #2814 Acked-by:
Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <mesa/mesa!4918> (cherry picked from commit 29da5212)
-
Dylan Baker authored
So that patches apply cleanly Generated with sed -i 's@\t@ @g'
-
Enumeration should just skip unsupported DRM devices. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <!4806> (cherry picked from commit 8d993c9d)
-
The driver should be capable if it reaches the winsys initialization. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <mesa/mesa!4806> (cherry picked from commit f03abd50)
-
DXT1_RGBA and sRGB variants of DXT[135] formats are enabled as valid format on V3D. Once all S3TC formats supported by V3C are enabled the following extensions become exposed by gallium. * GL_ANGLE_texture_compression_dxt3 * GL_ANGLE_texture_compression_dxt5, * GL_EXT_texture_compression_dxt1 * GL_EXT_texture_compression_s3tc * GL_S3_s3tc * GL_EXT_texture_compression_s3tc_srgb This enables 206 passing piglit test related to gl_compressed.*s3tc_dxt Cc: 20.0 20.1 <mesa-stable@lists.freedesktop.org> Reviewed-by:
Iago Toral Quiroga <itoral@igalia.com> Part-of: <mesa/mesa!4934> (cherry picked from commit 905edc37)
-
Swizzles were ignoring the W component of the format DXT3_RGBA and DXT5_RGBA. This fixes 15 piglit tests: spec/!opengl 1.1/copyteximage 2d spec/!opengl 1.2/copyteximage 3d spec/arb_texture_compression/fbo-generatemipmap-formats/gl_compressed_rgba spec/arb_texture_compression/fbo-generatemipmap-formats/gl_compressed_rgba npot spec/arb_texture_compression/texwrap formats bordercolor-swizzled/gl_compressed_rgba, swizzled, border color only spec/arb_texture_compression/texwrap formats bordercolor/gl_compressed_rgba, border color only spec/arb_texture_cube_map/copyteximage cube spec/arb_texture_cube_map/copyteximage cube samples=2 spec/arb_texture_cube_map/copyteximage cube samples=4 spec/arb_texture_rectangle/copyteximage rect spec/arb_texture_rectangle/copyteximage rect samples=2 spec/arb_texture_rectangle/copyteximage rect samples=4 spec/ext_texture_array/copyteximage 2d_array spec/ext_texture_array/copyteximage 2d_array samples=2 spec/ext_texture_array/copyteximage 2d_array samples=4 Fixes: 469bbd83 "broadcom/vc5: Move the formats table to per-V3D-version compile." Reviewed-by:
Iago Toral Quiroga <itoral@igalia.com> Part-of: <mesa/mesa!4934> (cherry picked from commit e3ecf48d)
-
Fixes: deb04adf ("clover: add support for passing kernels as nir to the driver") Signed-off-by:
Pierre Moreau <dev@pmoreau.org> Reviewed-by:
Karol Herbst <kherbst@redhat.com> Part-of: <mesa/mesa!4901> (cherry picked from commit 38bbfd3a)
-
Dylan Baker authored
-
Dylan Baker authored
-
backport of 9392ddab Part-of: <mesa/mesa!4888>
-
- May 06, 2020
-
-
../src/mesa/drivers/dri/i965/brw_wm_surface_state.c:1378:32: runtime error: index 3503345872 out of bounds for type 'uint32_t [149]' brw_assign_common_binding_table_offsets has the following comment: "Unused groups are initialized to 0xd0d0d0d0 to make it obvious that they're unused but also make sure that addition of small offsets to them will trigger some of our asserts that surface indices are < BRW_MAX_SURFACES." Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by:
Danylo Piliaiev <danylo.piliaiev@globallogic.com> Reviewed-by:
Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <!4350> (cherry picked from commit 784358bd)
-
I forgot this in the last round. Fixes: 18f896e5 (llvmpipe: add initial nir support) Reviewed-by:
Roland Scheidegger <sroland@vmware.com> Part-of: <mesa/mesa!4899> (cherry picked from commit 870b6a60)
-
Totals from 2 (0.00% of 127638) affected shaders: VGPRs: 164 -> 168 (+2.44%) CodeSize: 18420 -> 18756 (+1.82%) Instrs: 3658 -> 3700 (+1.15%) Cycles: 82912 -> 83080 (+0.20%) VMEM: 70 -> 69 (-1.43%) PreVGPRs: 155 -> 168 (+8.39%) Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> CC: <mesa-stable@lists.freedesktop.org> Part-of: <mesa/mesa!4889> (cherry picked from commit a46aa3dc)
-
Dylan Baker authored
-
Dylan Baker authored
-
Christopher James Halse Rogers authored
There's no guarantee that the formats advertised by wl_drm and the formats advertised by zwp_linux_dmabuf_v1 are the same. get_back_bo() handles this by falling back from createImageWithModifiers() to createImage() when there's a wl_drm format but no corresponding linux_dmabuf format, but create_wl_buffer() unconditionally tries to create a linux_dmabuf buffer unless DRIimage has DRM_FORMAT_MOD_INVALID. Fix this by always checking if the DRIimage modifier has been advertised by zwp_linux_dmabuf_v1, and falling back to wl_drm if not. If DRM_FORMAT_MOD_INVALID has been advertised then we trust the client has allocated something appropriate and treat any modifier as matching. Closes: #2220 Signed-off-by:
Christopher James Halse Rogers <christopher.halse.rogers@canonical.com> Reviewed-by:
Daniel Stone <daniels@collabora.com> Reviewed-by:
Simon Ser <contact@emersion.fr> (cherry picked from commit 98675d34) Part-of: <!4869>
-
Ivan Molodetskikh authored
As per wayland/wayland-protocols@fb9b2a87 , the compositor may advertise DRM_FORMAT_MOD_INVALID as a supported modifier. This patch makes mesa recognize this fact and allow linux_dmabuf usage with the INVALID modifier in this case. In case the driver doesn't support modifiers, we can still use linux-dmabuf protocol instead of the legacy wl_drm interface to create wl_buffers. This will help compositors to handle these buffers better. In this commit, the INVALID modifier is allowed to be added to the list of supported modifiers, and create_wl_buffer will be able to use linux_dmabuf with an INVALID modifier if the compositor advertised it as supported. Signed-off-by:
Ivan Molodetskikh <yalterz@gmail.com> Tested-by: Marge Bot <mesa/mesa!2147> (cherry picked from commit c376865f) Part-of: <mesa/mesa!4869>
-
Bas Nieuwenhuizen authored
Otherwise reading from an imported mapped GTT+WC linear texture is painfully slow. Sadly no radeon winsys implementation, as I don't know a suitable kernel driver operation. Hit this in vaGetImage with an image imported from minigbm (which we are switching to allocate WC for SCANOUT images). Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Acked-by:
Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> (cherry picked from commit d80fb024) Part-of: <mesa/mesa!4906>
-
The BayLibre LAVA lab is down for a week now and requires more work than anticipated to make it available again. Let's disable the tests running on these lab until the lab is up again. Signed-off-by:
Neil Armstrong <narmstrong@baylibre.com>
-
- May 04, 2020
-
-
Dylan Baker authored
-
After a resource is created the first command using it could be a copy command. In iris_state we finish the import on surface/view creation but we don't do that for copies. v2: Move finish call to gallium entrypoints (Ken) Signed-off-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: <mesa-stable@lists.freedesktop.org> Closes: mesa/mesa#2725 Reviewed-by: Tapani Pälli <tapani.palli@intel.com> (v1) Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> Part-of: <mesa/mesa!4657> (cherry picked from commit 612e35c8)
-
Rounding down the size fixes: KHR-GL45.enhanced_layouts.ssb_member_invalid_offset_alignment Fixes: 03e2adc9 Acked-by:
Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <mesa/mesa!4761> (cherry picked from commit e58dcc47)
-
Dylan Baker authored
This was done on master, and is making applying backports awful.
-
Fixes: 086cfa56 "anv: implementation of VK_EXT_debug_report extension" Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by:
Kristian H. Kristensen <hoegsberg@google.com> Acked-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <!4690> (cherry picked from commit 9d10bde5)
-
Earlier commit tried to achieve this but actually did more. This makes sure the variants for other contexts continue to live. Fixes: de3d7dbe ("mesa/st: release variants for active programs before unref") Closes: mesa/mesa#2865 Cc: mesa-stable@lists.freedesktop.org Signed-off-by:
Tapani Pälli <tapani.palli@intel.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!4831> (cherry picked from commit 46b3cb01)
-
Fixes: 17acff01 ("radeonsi: skip vs output optimizations for some outputs") Closes: mesa/mesa#2877 Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!4871> (cherry picked from commit 7e7bb38b)
-