aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* aco: do not use ds_{read,write}2 on GFX6Samuel Pitoiset2020-02-071-4/+6
| | | | | | | | | | | | | | According to LLVM, these instructions have a bounds checking bug. LLVM only uses them on GFX7+. This fixes broken geometry in Assassins Creed Origins. Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2489 Fixes: 4a553212fa1 ("radv: enable ACO support for GFX6") Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3746> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3746>
* intel/vec4: fix valgrind errors with vf_values arrayTapani Pälli2020-02-071-1/+2
| | | | | | | | | | | Fixes valgrind errors introduced since commit a8ec4082. Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2346 Fixes: a8ec4082 ("nir+vtn: vec8+vec16 support") Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Matt Turner <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3691> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3691>
* lima/parser: Change value name in RSW parserAndreas Baierl2020-02-071-1/+1
| | | | | | | | | | Second value of SHADER_ADDRESS is the length of the first instruction in the shader, so give it a better name. Reviewed-by: Vasily Khoruzhick <[email protected] Signed-off-by: Andreas Baierl <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619>
* lima/parser: Extend AUX0 findingsAndreas Baierl2020-02-071-2/+34
| | | | | | Reviewed-by: Vasily Khoruzhick <[email protected]> Signed-off-by: Andreas Baierl <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619>
* lima/parser: Fix RSW depth test parsingAndreas Baierl2020-02-071-4/+6
| | | | | | Reviewed-by: Vasily Khoruzhick <[email protected]> Signed-off-by: Andreas Baierl <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619>
* i965: remove duplicated commentLeandro Ribeiro2020-02-071-2/+1
| | | | | | | Signed-off-by: Leandro Ribeiro <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2416> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2416>
* ci: Drop turnip opt-in optionKristian H. Kristensen2020-02-072-3/+0
| | | | | Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3742> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3742>
* llvmpipe: advertise 4 vertex streamsDave Airlie2020-02-071-2/+4
| | | | | | Reviewed-by: Roland Scheidegger <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>
* draw: don't emit vertex to streams with no outputsDave Airlie2020-02-071-0/+5
| | | | | Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>
* draw: emit multiple streams to streamout.Dave Airlie2020-02-071-1/+1
| | | | | Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>
* draw/gs: track emitted prims + verts per stream.Dave Airlie2020-02-072-17/+14
| | | | | | | This adds tracking of the emitted prims/verts per-stream. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>
* draw: change geom shader output to an array of outputs.Dave Airlie2020-02-074-12/+20
| | | | | | | Instead of a single output ptr, pass in one per output stream. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>
* gallivm/nir: add support for multiple vertex streamsDave Airlie2020-02-072-31/+37
| | | | | | | | This adds support to the nir shader build for multiple vertex streams we store separate stats for each stream, then write them out in the epilogue. Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>
* gallivm/swr: add stream_id to geom epilogue emitDave Airlie2020-02-075-9/+12
| | | | | | | | | | We want to pass a stream in here so we can write out separate prim/vertex counts for each stream at the end. This also adds an ignore any stream option so we can stage more code Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>
* llvmpipe/query: add support for indexed queriesDave Airlie2020-02-074-15/+17
| | | | | | | This adds support for the queries needed for gpu_shader5 vertex streams Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3530>
* ci: Bump the GLES CTS version to 3.2.6.1.Eric Anholt2020-02-0610-10/+19
| | | | | | | | | | This brings in the surfaceless fixes so we don't need to check out the whole repo to cherry pick any more (which was bothering me as I debugged things late in the painfully slow ARM container build process). Reviewed-by: Michel Dänzer <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3662> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3662>
* ci: Disable a bunch of tests on freedreno a630.Eric Anholt2020-02-061-0/+54
| | | | | | | | | | | | | | | On a daily basis I've been having to restart people's a630 jobs in the front couple of pages of /merge_requests due to spurious failures from our flaky tests, and fielding reports of spurious fails from other developers, and babysitting my own marge merges that are failing due to our flakes. Nobody should have to deal with that, especially not non-freedreno developers, so just scrape the list of flakes reported to #freedreno-ci for the last month and ban those tests that have failed more than once until we have a credible fix. Acked-by: Kristian H. Kristensen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3662>
* turnip: Drop explicit configure opt-in for turnipKristian H. Kristensen2020-02-062-10/+0
| | | | | | | We don't need this silly thing anymore. Everthing here is WIP. Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3739> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3739>
* u_tile: Skip the packed temporary and just store tiles directly.Eric Anholt2020-02-061-22/+12
| | | | | | | | | | | | | | We were generating a packed copy and then memcpying it, but we can just pack directly to the destination. Change on glmark2 -b build:use-vbo=true is modest: 1.06328% +/- 0.994771% (n=84) but does remove the function that was .6% of CPU time. I'm not doing the equivalent "get" path at this time because softpipe's texture cache has some clipping issues that get revealed. Reviewed-by: Marek Olšák <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3698> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3698>
* broadcom: Fix implicit declaration of ffs for Android buildJose Maria Casanova Crespo2020-02-061-0/+1
| | | | | | | | | | Include util/bitscan.h to ensure ffs is available when there is no glibc like in Android. Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1983 Reviewed-by: Eric Anholt <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2554> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2554>
* aco: gfx10_wave64_bpermute reduce op to print_irRhys Perry2020-02-061-0/+1
| | | | | | | Signed-off-by: Rhys Perry <[email protected]> Reviewed-By: Timur Kristóf <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3683> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3683>
* aco: fix gfx10_wave64_bpermuteRhys Perry2020-02-061-1/+6
| | | | | | | | | | | | | | | | Since 9254fb4fc72, the pass replaced the SCC clobber with the scalar identity temporary. Just skip most of the temporary setup, since we don't need it for gfx10_wave64_bpermute. Although shuffles are disabled on GFX10, Detroit: Become Human seems to use them anyway. Signed-off-by: Rhys Perry <[email protected]> Reviewed-By: Timur Kristóf <[email protected]> Fixes: 9254fb4fc72ed289ffded28ef067b4582973e90c ('aco: don't use a scalar temporary for reductions on GFX10') Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3683>
* Correctly wait in the fragment stage until all semaphores are signaledGeorg Lehmann2020-02-061-2/+10
| | | | | | | | | | | This fixes two issues: - a crash if the application uses more than one semaphore for presenting because the driver expects one stage per semaphore - the swapchain image could be not ready yet if the semaphores aren't signaled, #946 is possible related Cc: <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3718> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3718>
* svga: Fix banded DMA uploadThomas Hellstrom2020-02-061-10/+11
| | | | | | | | | | | | | | | | | | A previous commit ("winsys/svga: Limit the maximum DMA hardware buffer size") made banded DMA transfer kick in when transfering gnome-shell window contents under gnome-shell / wayland. This uncovered a bug where we assumed that banded DMA transfers always occur to the top (y=0) of the surface. Fix this by taking the destination y offset into account. Cc: 19.2 19.3 20.0 <[email protected]> Fixes: 287c94ea498 ("Squashed commit of the following:") Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Charmaine Lee <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3733> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3733>
* anv: No-op submit and wait calls when no_hw is setJason Ekstrand2020-02-061-0/+12
| | | | | | Reviewed-by: Lionel Landwerlin <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3734> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3734>
* anv: set MOCS on push constantsLionel Landwerlin2020-02-061-1/+7
| | | | | | | | | | v2: Also set MOCS on 3DSTATE_CONSTANT_ALL (Ken) Signed-off-by: Lionel Landwerlin <[email protected]> Fixes: 67d2cb3e9367 ("anv: Add get_push_range_address() helper.") Reviewed-by: Jason Ekstrand <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3732> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3732>
* llvmpipe: Bump test timeout to 180 secondsMichel Dänzer2020-02-061-1/+1
| | | | | | | | | 120 still wasn't always enough for the s390x cross-build job, see e.g. https://gitlab.freedesktop.org/mesa/mesa/-/jobs/1551685 Reviewed-by: Daniel Stone <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3715> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3715>
* intel: Load the driver even if I915_PARAM_REVISION is not found.Rafael Antognolli2020-02-061-1/+1
| | | | | | | | | | | | | | | This param is only available starting on kernel 4.1. Use a default value of 0 if it is not found instead. v2: Update commit message (Lionel) Cc: Jordan Justen <[email protected]> Cc: Mark Janes <[email protected]> Fixes: 96e1c945f2b ("i965: Move device info initialization to common Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3727> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3727>
* isl: Fix the android build.Kenneth Graunke2020-02-051-1/+2
| | | | | | Fixes: 5bea0cf7795 ("intel/isl: Move iris's pipe-to-isl format function to isl.") Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3729> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3729>
* intel/genxml: Drop "reserved" enumKenneth Graunke2020-02-051-1/+0
| | | | | | | | | | | This was adding "#define reserved 2" to genxml includes, which is a fairly mean lowercase word to redefine. It ends up breaking the build on Android, which has __u32 reserved fields in headers. Defining it also has no purpose. Just drop it. Fixes: 5bea0cf7795 ("intel/isl: Move iris's pipe-to-isl format function to isl.") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3729>
* swr: Fix GCC 4.9 checks.Vinson Lee2020-02-052-2/+2
| | | | | | | Fixes: f0a22956be48 ("swr/rast: _mm*_undefined_* implementations for gcc<4.9") Fixes: e21fc2c62527 ("swr/rast: non-regex knob fallback code for gcc < 4.9") Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Jan Zielinski <[email protected]>
* gallium: let the pipe drivers decide the supported modifiersJames Xiong2020-02-061-6/+2
| | | | | | | | | fixes: ac0219cc5b ("gallium: dmabuf support for yuv formats that are not natively supported") Signed-off-by: James Xiong <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3527> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3527>
* iris: handle the failure of converting unsupported yuv formats to islJames Xiong2020-02-062-2/+7
| | | | | | Signed-off-by: James Xiong <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3527>
* Revert "egl: put full path to libEGL_mesa.so in GLVND json"Eric Engestrom2020-02-063-36/+8
| | | | | | | | | | | | | | | | | | | | This reverts commit 0021f7dc307f4852955359adb5ac2b7667e6d4ac. That commit had 2 issues: - I missed the `.0` from the filename, causing issues on Debian & Ubuntu platforms. - I didn't think about multilib/multi-arch systems, where we'd now need a separate json for each arch as they point to different libs. Reverting this commit for now, I'll try again later. Requested-by: Michel Dänzer <[email protected]> Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2466 Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2471 Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2480 Signed-off-by: Eric Engestrom <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3726> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3726>
* meson: don't bother trying `python2`Eric Engestrom2020-02-051-1/+1
| | | | | | | | | | Meson requires `python3`, so we know it's there, no need to fall back to python2. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3701> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3701>
* aco/optimizer: Don't combine uniform bool s_and to s_andn2.Timur Kristóf2020-02-051-0/+3
| | | | | | | | | Fixes: 8a32f57fff56b3b94f1b5589feba38016f39427c Signed-off-by: Timur Kristóf <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3714> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3714>
* nouveau: Reuse tgsi_get_gl_varying_semantic().Eric Anholt2020-02-051-113/+8
| | | | | | | Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506>
* nouveau: reuse tgsi_get_gl_frag_result_semantic().Eric Anholt2020-02-051-30/+1
| | | | | | | Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Tested-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506>
* nouveau: Reuse tgsi_get_sysval_semantic().Eric Anholt2020-02-051-115/+3
| | | | | | | | | It's now in a place accessible from the nouveau driver. Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Tested-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506>
* mesa/st: Move the SYSTEM_VALUE -> TGSI_SEMANTIC map to tgsi_from_mesa.Eric Anholt2020-02-054-93/+88
| | | | | | | | | This will let us reuse the table from nir-to-tgsi. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3506>
* freedreno/a6xx: Implement layout for DRM_FORMAT_MOD_QCOM_COMPRESSEDKristian H. Kristensen2020-02-051-0/+58
| | | | | | | | | This brings back fd6_fill_ubwc_buffer_sizes() to implement layout_resource_for_modifier for DRM_FORMAT_MOD_QCOM_COMPRESSED. Fixes: ecd62ff766 "freedreno: Allow UBWC on textures with multiple mipmap levels." Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704>
* freedreno: Add layout_resource_for_modifier screen vfuncKristian H. Kristensen2020-02-052-32/+17
| | | | | | | | | This function is responsible for completing the layout for an imported resource with the given modifier. Returns 0 on success or -1 If the modifier is unsupported, invalid or the input parameters are not compatible with the modifier. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704>
* freedreno: Set up supported modifiers in fd*_resource_screen_init()Kristian H. Kristensen2020-02-053-17/+8
| | | | | | Keep the modifier logic together. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704>
* freedreno/a6xx: Add fd6_resource_screen_init()Kristian H. Kristensen2020-02-053-3/+11
| | | | | | We'll move a few things here in the next commits. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704>
* glsl,nir: Switch the enum representing shader image formats to PIPE_FORMAT.Eric Anholt2020-02-0522-725/+298
| | | | | | | | | | | | | | | | | This means you can directly use format utils on it without having to have your own GL enum to number-of-components switch statement (or whatever) in your vulkan backend. Thanks to imirkin for fixing up the nouveau driver (and a couple of core details). This fixes the computed qualifiers for EXT_shader_image_load_store's non-integer sizeNxM qualifiers, which we don't have tests for. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]> (v3d) Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3355> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3355>
* intel/isl: Move iris's pipe-to-isl format function to isl.Eric Anholt2020-02-053-300/+304
| | | | | | | | | | This will get reused in the shader compiler once we switch it over to pipe formats instead of GL enums. We can't easily deduplicate i965's mesa-to-isl mapping because of cases like A32_FLOAT that are mapped differently. Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3355>
* mesa: Clean up some endianness adapters for shader image formats.Eric Anholt2020-02-052-19/+8
| | | | | | | | We already had a uint version in formats.h, move the snorm/unorm ones there, too. Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3355>
* gallium/swr: Fix various asserts and security issuesJan Zielinski2020-02-0514-30/+52
| | | | | | | | | | To improve the robustness of the code, we want to better detect issues in testing (using asserts) and use more secure techniques. Reviewed-by: Krzysztof Raszkowski <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3710> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3710>
* pan/midgard: Fix scheduling issue with csel + render target referenceAlyssa Rosenzweig2020-02-051-12/+18
| | | | | | | | | Fixes dEQP-GLES3.functional.shaders.fragdepth.write.dynamic_conditional_write Signed-off-by: Alyssa Rosenzweig <[email protected]> Signed-off-by: Boris Brezillon <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3697> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3697>
* panfrost: Set the MALI_WRITES_{Z,S} flags when neededBoris Brezillon2020-02-054-1/+17
| | | | | | | | | | | | | In order to make Z/S writes from fragment shaders effective, we need to set the MALI_WRITES_{Z,S} flags when the shader has a FRAG_RESULT_{DEPTH,STENCIL} output variable. Now that shaders can change the S value, we can expose the STENCIL_EXPORT cap. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3697>