summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-05-27VERSION: bump to 20.1.0 releasemesa-20.1.0Eric Engestrom1-1/+1
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
2020-05-27docs: Add release notes for 20.1.0Eric Engestrom1-0/+3939
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
2020-05-27radv: update the list of allowed Android extensionsSamuel Pitoiset1-0/+13
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commit 8c6350d2bba852fccbda5e0534bdbb085882b3be)
2020-05-27radv: handle different Vulkan API versions correctlySamuel Pitoiset1-12/+43
Loosely based on ANV. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commit 021270cb3170ef38244d21cf3fe8780a3ef5fb3e)
2020-05-27intel/fs: Work around dual-source blending hangs in combination with SIMD16Danylo Piliaiev2-3/+7
It was found that dual-source blending hangs with SIMD16 dispatch in some specific but unknown situation. Which in the wild happen when rgba anti-aliasing is enabled for fonts. Cc: <mesa-stable@lists.freedesktop.org> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2183 Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5037> (cherry picked from commit 296c04d78c9840f83e7fcaf9b45a4cee96752348)
2020-05-27zink: use general-layout when blitting to/from same resourceErik Faye-Lund2-7/+29
This avoids a validator warning when for instance generating mipmaps. Fixes: d2bb63c8d4c ("zink: Use optimal layout instead of general. Reduces valid layer warnings. Fixes RADV image noise.") Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5199> (cherry picked from commit dd2bd68fa69124c86cd008b256d06f44fab8e6cd)
2020-05-27glsl: fix slow linking of uniforms in the nir linkerTimothy Arceri2-10/+82
Currently the nir linker resizes the amount of storage needed to hold uniform information on the fly while linking. As shaders can contain thousands of uniforms this can be very slow. For example some Godot shaders can take 30 seconds to compile on some machines. In this change we count the amount of storage needed before we start processing the uniforms. This is what the GLSL IR linker does also. Fixes: 95f555a93a88 ("st/glsl_to_nir: make use of nir linker for linking uniforms") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2996 Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5137> (cherry picked from commit f1acf492de91e04a81950c0446c36b22b48bc94c)
2020-05-27glsl: stop cascading errors if process_parameters() failsTimothy Arceri2-4/+7
Generally we do not completely stop compilation as soon as we see an error, instead we continue on to attemp to find any futher errors. This means we shouldn't be checking state->error to see if any error has happened during the compilation process, doing so was causing process_parameters() to fail on completely valid functions if there was any error found in the shader previously. This then caused the valid functions not to be found because the paramlist was considered empty, resulting in the compiler spewing out misleading error messages. Here we simply add the IR error value to the param list when we have an issue with processing a parameter, this leads to much better error messaging. Fixes: 53e4159eaaf6 ("glsl: stop processing function parameters if error happened") Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5205> (cherry picked from commit f6214750eb4d53296e674dd26fc668b1029a1c8b)
2020-05-27freedreno: Add missing va_end.Vinson Lee2-2/+4
Fix warning reported by Coverity Scan. Missing varargs init or cleanup (VARARGS) missing_va_end: va_end was not called for ap. Fixes: a0ca1462f317 ("freedreno: add logging infrastructure") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5221> (cherry picked from commit 755c0400606f821111fec76764ddb97243f2ad8f)
2020-05-27freedreno: clear last_fence after resource trackingRob Clark3-7/+19
The resource tracking in the clear/draw_vbo/blit paths could itself trigger a flush. Which would update last_fence. So we need to clear last_fence *after* all the dependency tracking. Fixes: ddb7fadaf8b ("freedreno: avoid no-op flushes by re-using last-fence") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2992 Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5188> (cherry picked from commit 8728c42031379be979e56a457a178ce6a5b87b08)
2020-05-27nir: fix lowering to scratch with boolean accessRhys Perry2-7/+8
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Fixes: 18ed82b084c79bf63666f2da22e5d675fb01aa26 ('nir: Add a pass for selectively lowering variables to scratch space') Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5214> (cherry picked from commit 8e2009c4481434f1b97713d8a0ec193fdccb65a6)
2020-05-27r600: Fix duplicated subexpression in r600_asm.cGert Wollny2-2/+2
Fixes: 4422ce1b04c117f61394a6834cd7933f06ce4e1f r600: force new CF with TEX only if any texture value is written Closes #3012 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5187> (cherry picked from commit 901793d558e6fcba5438fc0738226833f6147c8b)
2020-05-27r600/sfn: Use correct setter method.Vinson Lee2-2/+2
Fix warning reported by Coverity Scan. Useless call (USELESS_CALL) side_effect_free: Calling v->pin_to_channel() is only useful for its return value, which is ignored. Fixes: 5d10e3ec6066 ("r600/nir: Pin interpolation results to channel") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5197> (cherry picked from commit 1241f8cb4c9c6cc65106a085be81963f3505a7d5)
2020-05-27radv: Implement vkGetSwapchainGrallocUsage2ANDROID.Bas Nieuwenhuizen2-1/+90
This was implemented in version 6 of the VK_ANDROID_native_buffer extension and we only implement version 5. However, the Android Vulkan loader only checks whether vkGetInstanceProcAddr for the function is not NULL. This all went wrong when we switched to the layer code from ANV. Because the function may now be different per device, it adds fallback functions that dispatch to the dispatch table. So if we didn't implement the function we still returned a pointer to the dispatch function, which made the Android Vulkan loader believe it was supported. Dispatch functions: https://gitlab.freedesktop.org/mesa/mesa/-/blob/d555794f3032594dbef3623052103900138d2356/src/amd/vulkan/radv_entrypoints_gen.py#L328 Fixes: d555794f303 "radv: update entrypoints generation from ANV" Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2936 Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5198> (cherry picked from commit be784cc77b88fee2aad4b6ee3bb49e44d3bf1639)
2020-05-27radv: Do not close fd -1 when NULL-winsys creation fails.Bas Nieuwenhuizen2-2/+3
Fixes: cd6ec2b1abb "radv: implement a dummy winsys for creating devices without AMDGPU" Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181> (cherry picked from commit a51ab5f95624d1c29d9592aa2212f80dead8ecdf)
2020-05-27radv: Handle failing to create .cache dir.Bas Nieuwenhuizen2-2/+3
Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver" Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181> (cherry picked from commit cd61f5234d2c275b21c249fc2effc058a74ecf0a)
2020-05-27radv/winsys: Remove extra sizeof multiply.Bas Nieuwenhuizen2-2/+2
The pointer is already uint64_t*, so the sizeof was too much ... Fixes: eeff7e11544 "radv: Add userspace fence buffer per context." Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5181> (cherry picked from commit 906435fb0ee3c205c53c67cc641e73182cf5ae4d)
2020-05-27r600/sfn: Initialize VertexStageExportForGS m_num_clip_dist member variable.Vinson Lee2-1/+2
Fix warning reported by Coverity Scan. Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member m_num_clip_dist is not initialized in this constructor nor in any functions that it calls. Fixes: f7df2c57a207 ("r600/sfn: extract class to handle the VS export to different stages") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5180> (cherry picked from commit 73c0f60d8c7c832b49da64740f5d9cbe130811b1)
2020-05-27panfrost: Fix background showing when using discardIcecream951-1/+7
This fixes problems in a number of games, including SuperTuxKart, OpenMW and RVGL. v2: Use MALI_READS_ZS | 0x20 instead of MALI_WRITES_Z to match with the blob. Keep using 0x400 | 0x20 when depth is disabled. Closes: #2620 Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> (cherry picked from commit 0dd24b381c52e0b20fe70041e95611aad6b0d258) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5193>
2020-05-27tree-wide: fix deprecated GitLab URLsEric Engestrom17-41/+41
They will stop working in the next GitLab release, so let's update them ASAP to make sure things are propagated to everyone by then. See: https://about.gitlab.com/releases/2020/05/06/gitlab-com-13-0-breaking-changes/#removal-of-deprecated-project-paths Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5111> (cherry picked from commit 444138d6d9f7c0a07ff043bae623efa5ae26b3c1)
2020-05-27freedreno: Use the right amount of &'sKristian H. Kristensen2-2/+2
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5176> (cherry picked from commit 5f365affc906ed9b07857a6fafbb5d51f3f1a607)
2020-05-27Properly check mmap return valueHanno Böck2-2/+2
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5150> (cherry picked from commit be71e2fd08b364f331a7e44d34f67954f0aeebe3)
2020-05-27nir/copy_prop_vars: Record progress in more placesJason Ekstrand2-1/+4
Fixes: 96c32d7776 "nir/copy_prop_vars: handle load/store of vector..." Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5170> (cherry picked from commit f0e075ce6eca7bdb26d8e55cf7d4dd459199363f)
2020-05-27nir/opt_deref: Report progress if we remove a derefJason Ekstrand2-2/+4
Fixes: a1c688517de "nir/opt_deref: Properly optimize ptr_as_array..." Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5170> (cherry picked from commit db6d9cdf0661fbe25b1bc767920a5f6a0944935b)
2020-05-27nir/lower_double_ops: Rework the if (progress) treeJason Ekstrand2-2/+9
Fixes: d7d35a9522 "nir/lower_doubles: Use the new NIR lowering..." Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5170> (cherry picked from commit 111b0a669979cf277f31c69f501982fee004e067)
2020-05-27mesa: Fix double-lock of Shared->FrameBuffers and usage of wrong mutexDanylo Piliaiev2-9/+2
Fixes: 7534c536ca0f4b2b123200f421460094034f37a3 Fixes: 8cfb3e4ee57070ff45e7534a986a20c5fd649dc7 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3024 Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5160> (cherry picked from commit 40255831230a6dba45b09ab98d5b626a5bdb18ef)
2020-05-27amd/addrlib: fix forgotten char -> enum conversionsPierre-Eric Pelloux-Prayer2-3/+3
clang warning: result of comparison of constant 115 with expression of type 'const enum Dim' is always false Fixes: e3e704c7e7e ("amd/addrlib: Use enum instead of sparse chars to identify dimensions") Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5119> (cherry picked from commit dddd91eef326dbcdaec2a7fee6fa429d1cf6542a)
2020-05-27meson: Disable GCC's dead store elimination for memory zeroing custom newDanylo Piliaiev2-1/+6
Some classes use custom new operator which zeroes memory, however gcc does aggressive dead-store elimination which threats all writes to the memory before the constructor as "dead stores". For now we disable this optimization. The new operators in question are declared via: DECLARE_RZALLOC_CXX_OPERATORS DECLARE_LINEAR_ZALLOC_CXX_OPERATORS The issue was found with lto builds, however there is no guarantee that it didn't happen with ordinary ones. CC: <mesa-stable@lists.freedesktop.org> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2977 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1358 Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5104> (cherry picked from commit 5500a2b7fc558217bbd4c2a966ab6fcadaed8b3b)
2020-05-27llvmpipe: compute shaders work better with all the threads.Dave Airlie2-2/+2
I got to benchmarking some vulkan compute benchmark and wondered why my CPUs weren't being saturated, helps if you actually wake up all the threads in the threadpool. Fixes: 1b24e3ba756b (llvmpipe: add compute threadpool + mutex) Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5138> (cherry picked from commit 22554e1fbc20d0f642e952fda13d8f2631a898eb)
2020-05-27dri_util: Update internal_format to GL_RGB8 for MESA_FORMAT_R8G8B8X8_UNORMNataraj Deshpande2-2/+2
The commit helps to resolve GL_INVALID_OPERATION error returned during CTS test when Android format RGBX8888 fallback to RGBA8888 and then set color with glTexSubImage2D(format=GL_RGB). Fixes android.hardware.nativehardware.cts.AHardwareBufferNativeTests: #SingleLayer_ColorTest_GpuSampledImageCanBeSampled_R8G8B8X8_UNORM Cc: <mesa-stable@lists.freedesktop.org> Fixes: bf576772ab4d ("dri_util: add driImageFormatToSizedInternalGLFormat function") Signed-off-by: Nataraj Deshpande <nataraj.deshpande@intel.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5034> (cherry picked from commit 02a1f95386b43bf46cd1c8297d0955242f554fa2)
2020-05-27i965/vec4: Ignore swizzle of VGRF for use by var_range_end()Andrii Simiklit2-2/+2
Issue description from Matt's commit e7c376ad: "var_range_end(v, n) loops over the n components of variable number v and finds the maximum value, giving the last use of any component of v. Therefore it expects v to correspond to the variable associated with the .x channel of the VGRF. var_from_reg() however returns the variable for the first channel of the VGRF, post-swizzle. So, if the last register had a swizzle with y, z, or w in the swizzle component, we would read out of bounds. For any other register, we would read liveness information from the next register. The fix is to convert the src_reg to a dst_reg in order to call the dst_reg version of var_from_reg() that doesn't consider the swizzle." Closes: #3003 Fixes: 48dfb30f ('intel/compiler: Move all live interval analysis results into vec4_live_variables') Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Andrii Simiklit <asimiklit.work@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4941> (cherry picked from commit d1b746284985a34e61c315ba586c789c607ac3ba)
2020-05-27anv/gen11+: Disable object level preemptionD Scott Phillips2-1/+17
An unknown issue is causing vs push constants to become corrupted during object-level preemption. For now, restrict to command buffer level preemption to avoid rendering corruption. Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5110> (cherry picked from commit 81201e461772a06ed2c20207d2901f6cf9a24114)
2020-05-27.pick_status.json: Update to a91306677c613ba7511b764b3decc9db42b24de1Eric Engestrom1-0/+2394
2020-05-20VERSION: bump to 20.1.0-rc4mesa-20.1.0-rc4Eric Engestrom1-1/+1
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
2020-05-20tests: Make tests aware of meson test wrapperDylan Baker4-23/+56
Meson 0.55.0 will set the MESON_EXE_WRAPPER environment variable to the joined version of that wrapper if it is needed. Our tests that take compiled targets as arguments can use that information to run cross built binaries, or if there isn't a wrapper and we get an ENOEXEC, we can skip the tests gracefully. We try to use mesonlib.split_args, which handles windows arguments better than python's builtin shlex module, but fall back to that if the meson module isn't available for some reason. Cc: 20.0 20.1 <mesa-stable@lists.freedesktop.org> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5103> (cherry picked from commit 55803224865d735f060c55cc8940946da725cb0b)
2020-05-20panfrost: Enable PIPE_CAP_VERTEX_COLOR_UNCLAMPEDIcecream952-1/+2
This tells Mesa to clamp vertex colours in the vertex shader. This improves rendering in a number of games such as Extreme Tux Racer and H-Craft Championships. Cc: 20.1 <mesa-stable@lists.freedesktop.org> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5075> (cherry picked from commit faf28b83fddad6f12e536360690031b9ff2039c3)
2020-05-20nir/opt_if: run opt_peel_loop_initial_if after all other optimizationsRhys Perry7-17/+45
Fixes dEQP-VK.graphicsfuzz.loops-ifs-continues-call with RADV. opt_if_loop_terminator can cause this optimization or opt_if_simplification to be run on the non-SSA code. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Fixes: 52c8bc0130a ('nir: make opt_if_loop_terminator() less strict') Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2943 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4757> (cherry picked from commit 50bead32b150a869f1c17efbee8476114d1462a7)
2020-05-20Expose EGL_KHR_platform_* when EXT is supportedEmmanuel Gil Peyrot2-1/+4
On EGL 1.4, one had to check for the existence of EGL_EXT_platform_base before querying the eglGetPlatformDisplayEXT() and eglCreatePlatformWindowSurfaceEXT() symbols, to then use them if the EGL_EXT_platform_* extension for the given platform was exposed. Since EGL 1.5, the platform functionality was made core, which means we can obtain the symbols unconditionally, but we can't know the EGL version before having created a display, at which point we've already done a platform selection by passing an EGLNativeDisplay. The EGL_KHR_platform_* extensions thus are used by clients to know whether it's safe or not to dlsym() the EGL 1.5 symbols. This commit adds those extensions when the given platform is enabled. Acked-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5052> (cherry picked from commit a3fb064e000a8706319dc996788159bf84a13f0f)
2020-05-20r600/sfn: Fix printing vertex fetch instruction flagsGert Wollny2-2/+2
Fixes: f718ac62688b555a933c7112f656944288d04edb r600/sfn: Add a basic nir shader backend Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085> (cherry picked from commit 32305c0959dec86c24ef776209d4a92bb47e5776)
2020-05-20Revert "gallium/gallivm: fix compilation issues with llvm 11"Michel Dänzer9-21/+14
This reverts commit e2a7436dd10df70ba14d18ab7cf8ad538f80e653. The corresponding LLVM changes were reverted. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2983 Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5087> (cherry picked from commit 667126cc82a78b69d61ffd99ba251edf210bc7a6)
2020-05-20Revert "ac,radeonsi: fix compilations issues with LLVM 11"Michel Dänzer6-20/+16
This reverts commit 42b1696ef627a5bfee29911a780fa0a4dbf04610. The corresponding LLVM changes were reverted. Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5087> (cherry picked from commit 2a6811f0f981c8d67d0131a0b74549b641ea2247)
2020-05-20anv:gpu_memcpy: Emit 3DSTATE_VF_INDEXING on Gen8+Jason Ekstrand2-1/+8
If this gets run right after something which uses VK_VERTEX_INPUT_RATE_INSTANCE on its first vertex binding, we could end up in serious trouble. Fixes: 3d9747780b "anv: Add a helper for doing buffer copies with..." Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5090> (cherry picked from commit 164aed6c8142a995c6ac1c36ee7a16896f675163)
2020-05-20radv: use util_float_to_half_rtzChristopher Egert2-2/+2
Since commit 8b8af6d398a94cb07015c695fdfdb5c157aa72cf there is a performance regression in dirt 4 on picasso APUs. The game ends up feeding a large value into this which overflows on the conversion to 16bit float. With the old implementation (which now lives in util_float_to_half_rtz) it would be clamped to inf-1, while the new one returns inf. This causes a performance hit somehow at some point down the line. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Fixes: 8b8af6d398a "gallium/util: Switch util_float_to_half to _mesa_float_to_half()'s impl." Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5062> (cherry picked from commit 78615dcca19699737bf9cbc784b66d9ea966bcc0)
2020-05-20radeonsi: Use TRUNC_COORD on samplersJoshua Ashton2-1/+4
The default behaviour (0) is: "round-nearest-even to n.6 and drop fraction when point sampling" whereas the OpenGL spec simply wants us to floor it (1) "truncate when point sampling". See 8.14.2 in the OpenGL spec: https://www.khronos.org/registry/OpenGL/specs/gl/glspec46.core.pdf The Direct3D spec also mandates this (https://microsoft.github.io/DirectX-Specs/d3d/archive/D3D11_3_FunctionalSpec.htm#7.18.7%20Point%20Sample%20Addressing) On WineD3D: This fixes some point-sampling texture precision issues in some Direct3D 9 titles such as Guild Wars 2 and htoL#NiQ: The Firefly Diary that are not present on other vendors. CC: <mesa-stable@lists.freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3953> (cherry picked from commit d573d1d82524b8a2e5f56938069cabc0f0176a0e)
2020-05-20radeonsi: don't expose 16xAA on chips with 1 RB due to an occlusion query issueMarek Olšák2-10/+10
Only Stoney and Raven2 are affected. Cc: 20.0 20.1 <mesa-stable@lists.freedesktop.org> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5047> (cherry picked from commit f80d653d701f51f00f88601707747554c9a7af1c)
2020-05-20etnaviv: retarget transfer to render resource when necessaryLucas Stach2-2/+13
If we have a separate render resource, it may contain more up-to-date data than what is available in the base resource, so we need to retarget the transfer to this resource. As the most likely reason for the existence of the render resource is a multi-tiled render layout we need to allow this transfer to go through the resolve/blit copy path, as we can't de-/tile those layouts in software. Fixes: b96277653033 (etnaviv: rework compatible render base) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Jonathan Marek <jonathan@marek.ca> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5051> (cherry picked from commit 9d1821adf0bc51958becf116d6df5c65514d58b6)
2020-05-20zink: implement i2b1Erik Faye-Lund2-1/+8
This shuold really have been implemented before starting to use these, but I guess I missed them. Fixes a crash when starting a game in Warzone 2100. Fixes: 7f6a491eec0 ("zink: lower b2b to b2i") Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5053> (cherry picked from commit 09ac0350fdc97a746342c63deb4e9b626959d47a)
2020-05-20radv: Provide a better error for permission issues with priorities.Bas Nieuwenhuizen5-17/+30
Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4816> (cherry picked from commit 9e3c6a7ba769d358dfffa690751cac6ca7f9c5df)
2020-05-20anv/tests: Don't rely on assert or changing NDEBUG in testsIan Romanick9-32/+60
This is the last part of the fix for #2903. v2: Add test_common.h. Fixes: f7c56475d25 ("anv/tests: compile to something sensible in release builds") Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4994> (cherry picked from commit f4638cfdad3199bd97cf8ca7070008186bff456a)
2020-05-20anv: Fix deadlock in anv_timelines_waitDanylo Piliaiev2-2/+3
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2945 Fixes: 34f32a6d6648073e2fda3fb78377124fb32bb288 Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5005> (cherry picked from commit 06b6c687e2aba075e9fc3812d80c128bd873bbce)