Timo Aaltonen pushed to branch upstream-experimental at X Strike Force / lib / mesa
Commits: 032b9c41 by Dylan Baker at 2021-01-27T10:10:46-08:00 .pick_status.json: Update to 86ff78e8fe55b424c6b853ead6979bcd46820d81 - - - - - 172ae306 by Timur Kristóf at 2021-01-27T10:10:49-08:00 radv: Only enable sparse features on Polaris and newer. On Fiji, the CTS image can cause a hang when these are enabled. Let's enable them for Polaris and newer only, for now. Gitlab: #4136 Fixes: 9f43b44bf06c61735dbab7e8e508642315bd93d1 Signed-off-by: Timur Kristóf <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8646> (cherry picked from commit 3c03fa5801ceccd2f9e408cc42f1dfad57b234d9) - - - - - de78b1c8 by Samuel Pitoiset at 2021-01-27T10:10:49-08:00 nir/algebraic: mark more optimization with fsat(NaN) as inexact These optimizations are duplicated from the main optimization table to the late one... And I missed some in the original fix. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3368 Fixes: bc123c396a9 ("nir/algebraic: mark some optimizations with fsat(NaN) as inexact") Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8716> (cherry picked from commit 4c3ad4d06588dcc8f5c4d9e27c746055a013f358) - - - - - 343f1aba by Caio Marcelo de Oliveira Filho at 2021-01-27T10:10:50-08:00 compiler: Use util/bitset.h for system_values_read It is currently a bitset on top of a uint64_t but there are already more than 64 values. Change to use BITSET to cover all the SYSTEM_VALUE_MAX bits. Cc: mesa-stable Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Acked-by: Jesse Natalie <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]> Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Acked-by: Alejandro Piñeiro <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8585> (cherry picked from commit 9f3d5e99ea601ae4bc492ff47738290eed520651) - - - - - 1c4a92a7 by Daniel Schürmann at 2021-01-27T10:10:50-08:00 aco: fix nir_intrinsic_ballot with wave32 Found by inspection. Fixes: 21db083504fde3100f0b528f683a087357f5aaff ('aco/wave32: Allow setting the subgroup ballot size to 64-bit.') Reviewed-by: Timur Kristóf <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8703> (cherry picked from commit b06609e90324e8c445eb71eec39158a893c574c3) - - - - - 88f2c1ab by Nanley Chery at 2021-01-27T10:10:51-08:00 gallium: Map _DRI_IMAGE_FORMAT_NONE to NULL Many entries in the dri2_format_table have _DRI_IMAGE_FORMAT_NONE as the dri_format. Make the result of dri2_get_mapping_by_format a tad more well-defined by returning NULL when this format is passed into it. Cc: mesa-stable Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8663> (cherry picked from commit 0a8cc882024c6c03c96e639ea827361e3be9c92e) - - - - - 587d1f75 by Nanley Chery at 2021-01-27T10:10:51-08:00 gallium: Flush GL API resources in eglCreateImage Some drivers need to be able to remove compression from resources before they are handed to consumers that wouldn't understand or expect it. Cc: mesa-stable Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8663> (cherry picked from commit b26f510978d3695dcede49892d6702a605cfbcc5) - - - - - 87d20549 by Nanley Chery at 2021-01-27T10:10:52-08:00 iris: Disable aux as needed in iris_flush_resource Disable compression in iris_flush_resource if the resource lacks a modifier. When a caller wants to prepare such a resource for sharing (via eglCreateImage for example), this change enables all reference holders to access the resource in a common manner - without compression. This fixes misrendering with 3D-accelerated qemu. A piglit test which reproduces qemu's behavior, ext_image_dma_buf_import-export-tex, is also enabled to pass. Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2678 Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8663> (cherry picked from commit 40d6b92de9432137db4799d482afe7ae5ad52ae8) - - - - - e51293a0 by Dylan Baker at 2021-01-28T08:53:17-08:00 .pick_status.json: Update to 9003735b9141fb156d3b2e1133b94cdf14f63424 - - - - - 1c0cfc59 by Marek Olšák at 2021-01-28T08:53:50-08:00 radeonsi: fix centroid with VRS coarse shading This has no effect on other shading. It should have been the default value. Fixes: c3432ad8524 - radeonsi: add an option to enable 2x2 coarse shading for non-GUI elements Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8726> (cherry picked from commit dbf09c0c26dda7296322491c35fce02f3147dfa9) - - - - - d27c6594 by Ian Romanick at 2021-01-28T08:53:50-08:00 i965: Don't parse driconf again It was already parsed in intelInitScree2, and the results are stored in the screen. Fixes: d67ef485804 ("i965/screen: Allow drirc to set 'allow_rgb10_configs' again.") Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7387> (cherry picked from commit 0f1a8f8a6d231c0e265eb22781a0002baa1823b0) - - - - - c2a8ca14 by Dylan Baker at 2021-02-01T09:07:35-08:00 .pick_status.json: Update to e8707961134daa9b91599840ad5698366a6229b7 - - - - - 5f2c793c by Marek Olšák at 2021-02-01T09:07:42-08:00 glthread: fix interpreting vertex size == GL_BGRA for vertex attribs Fixes: c9c9f57b022 - glthread: track pointers and strides for Pointer & EXT_dsa attrib functions Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4116 Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Zoltán Böszörményi <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8753> (cherry picked from commit 76c322a48defa384731734a130699df9e8c064f9) - - - - - cdebbc18 by Icecream95 at 2021-02-01T09:07:43-08:00 panfrost: Add the tiler heap to fragment jobs In some cases the GPU reads from the tiler heap in fragment jobs, so always add it to GPU jobs. Fixes faults in many applications that use multiple windows (e.g. Firefox, plasmashell). Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4157 Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8773> (cherry picked from commit 4fec6c9448171c9d80b34a3ec215a1864ad28725) - - - - - b913f2b0 by James Park at 2021-02-01T09:07:44-08:00 gallium/tessellator: Fix warning suppression Single-line version of MSVC warning suppression does not extend beyond the #endif directive. Use push/disable/pop instead. Also suppress 26452, which is a similar analysis warning. This could also be fixed with constexpr if, but C++17 would be required. Fixes: 790516db0bf ("gallium/swr: fix gcc warnings") Reviewed-by: Jesse Natalie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8093> (cherry picked from commit 3c7062417bedb203a0a58e27e85febd55c75cbce) - - - - - 26f58508 by Samuel Pitoiset at 2021-02-01T09:07:44-08:00 radv: fix centroid with VRS coarse shading Ported from RadeonSI. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8775> (cherry picked from commit 718c4726f394874c1a7a9ac72e91ea7913a0bc0a) - - - - - 4169bef1 by Alyssa Rosenzweig at 2021-02-01T09:07:45-08:00 pan/bi: Fix M1/M2 decoding in disassembler C's definition of the % operator has a footgun around sign conversion.. Avoid it and just use bitwise arithemtic instead like the hardware would, fixing the disassembly and making buggy assembly more obvious. Fixes: 08a9e5e3e89 ("pan/bi: Decode M values in disasm") Signed-off-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723> (cherry picked from commit a69c73988b26aaaa6bffde1b3fef5fdc4a7a90a7) - - - - - 7bd9982b by Eric Anholt at 2021-02-01T09:07:46-08:00 mesa/st: Allocate the gl_context with 16-byte alignment. The _ModelProjectMatrix matrix embedded inside has members inside of it marked as 16-byte aligned, and so the context also has to be 16-byte aligned or access to those members would be invalid. I believe the compiler used this to use better 16-byte-aligned load/stores to other members of the context, breaking when the context's alignment was only 8 (as normal mallocs guarantee). Fixes: 3175b63a0dfa ("mesa: don't allocate matrices with malloc") Tested-by: Rob Clark <[email protected]> Reviewed-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8783> (cherry picked from commit 55e853d823e860dd232a8be0378bd0519e35b6bd) - - - - - 33127367 by Marek Olšák at 2021-02-01T09:09:47-08:00 mesa: flush glBegin/End before changing GL_DEPTH_STENCIL_TEXTURE_MODE Fixes: 23e81b93bbe3 "mesa: Add core API support for GL_ARB_stencil_texturing (from 4.3)." Reviewed-by: Zoltán Böszörményi <[email protected]> Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8181> (cherry picked from commit a1f16b59b3ce7e1498e08d57947bbc9cf78624ed) Conflicts: src/mesa/main/texparam.c - - - - - e307e3df by Rob Clark at 2021-02-01T09:09:50-08:00 mesa: Remove _mesa_destroy_context() There was only one caller, an error path in mesa/st. But this is now incorrect as we need align_free(). Just remove it. Fixes: 55e853d823e ("mesa/st: Allocate the gl_context with 16-byte alignment.") Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8801> (cherry picked from commit 824ae644778b1aff2956d18962053f6e1da932e7) - - - - - 78107eaa by Dylan Baker at 2021-02-03T09:15:18-08:00 .pick_status.json: Update to b609d4677d3f910c546c1d94d8ddfe4511e2f065 - - - - - 6753936d by Bas Nieuwenhuizen at 2021-02-03T09:15:34-08:00 radv: Do not hash vk_object_base in descriptor set layout. It contains potentially pointer-y stuff. Fixes: 178adfa6a8e ("radv: use the base object struct types") Acked-by: Jason Ekstrand <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8809> (cherry picked from commit 1eaefe6cfd16186a88dbc1205c0cf16996bec0b6) - - - - - 3dd7df6c by Dave Airlie at 2021-02-03T09:15:35-08:00 radv: move queue object to a common base object This is needed to use the new dispatch layer code. While we're here, we clean up the context on the error path. Fixes: 9b1138e3f0e96 "radv: implement VK_EXT_private_data" Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8676> (cherry picked from commit f695957421351e951ec92d8b892e22129e64f6dd) - - - - - 06faacb8 by Yevhenii Kolesnikov at 2021-02-04T14:08:34-08:00 nir/from_ssa: consider defs in sibling blocks If def a and def b are in sibling blocks, the one with higher parent_instr's index does not necessarily come after the other. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3712 Fixes: 943ddb945877fc8 "nir: Add a better out-of-SSA pass" Signed-off-by: Yevhenii Kolesnikov <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8246> (cherry picked from commit fd05620e437e4957c9408cae249517f00236cee6) - - - - - 98e928ea by Boris Brezillon at 2021-02-04T14:08:34-08:00 panfrost: Fix tiler job injection (again) 2f1947b39ca5 ("panfrost: Fix tiler job injection") had the tests inverted: WRITE_VALUE jobs are only needed on Midgard, not Bifrost. Cc: mesa-stable Fixes: 2f1947b39ca5 ("panfrost: Fix tiler job injection") Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8808> (cherry picked from commit ec6c6f610c4e8fc69e3d86bef56cf64eeaccbd4a) - - - - - 0b9988c5 by Jason Ekstrand at 2021-02-04T14:08:34-08:00 nir: Drop the lower_mem_constant_vars declaration The function was removed in c730ace12b51d46585fac6710fbe57dccd67071c. Fixes: c730ace12b5 "nir,clover: Drop nir_lower_mem_constant_vars" Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8834> (cherry picked from commit 774fae34f045c12915b5ff26c64ac091a8c743d8) - - - - - ed4d51e3 by Rhys Perry at 2021-02-04T14:08:34-08:00 radv: round-up num_records division in radv_flush_vertex_descriptors Vertex attribute bounds checking is supposed to be done per-attribute: is_oob = index * stride + attrib_offset + attrib_size > buffer_size but we were obtaining num_records by dividing the buffer size by the stride, making it per-vertex: is_oob = index * stride + (stride - 1) >= buffer_size An example from Dead Cells (Wine) is: attribute bindings: 0, 1, 2 attribute formats: r32g32, r32g32, r32g32b32a32 attribute offsets: 0, 0, 0 binding buffers: all the same buffer binding offsets: 0, 8, 16 binding sizes: 128, 120, 112 binding strides: 32, 32, 32 Workaround this issue without switching to per-attribute descriptors by rounding up the division. This is still incorrect, but it should now no longer consider in-bounds attributes out-of-bounds. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3796 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4199 Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8835> (cherry picked from commit 56cd79b63d25ef0d5d795bfa6ab58955b9f96e3b) - - - - - a0fe068d by Rhys Perry at 2021-02-04T14:08:34-08:00 radv: correctly enable WGP_MODE for NGG and GS Previously, we would set WGP_MODE on GFX10+ and then only on GFX10. Because we used bitwise or, the result was WGP_MODE being set on GFX10+. We also set the wrong bit, S_00B848_WGP_MODE instead of S_00B228_WGP_MODE.. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8811> (cherry picked from commit 2338e4ad36fc41414e0d2362e5191d39d218a1d4) - - - - - 9cab7e39 by Rhys Perry at 2021-02-04T14:08:35-08:00 radv: correctly enable WGP_MODE for tessellation control Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8811> (cherry picked from commit 0602d4ec69779db11008a8e370b1c46442fc7784) - - - - - e2a27c14 by Jonathan Marek at 2021-02-04T14:08:35-08:00 turnip: don't always use 3d ops for blit_image Revert this accidentally committed testing change. Fixes: 872c4bcd27db ("turnip: implement z-scaling and z-mirroring BlitImage") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8707> (cherry picked from commit bdaa4d1ee0029d13e5d76060c1fcbf95a46b1145) - - - - - 76ba9da6 by Tapani Pälli at 2021-02-04T14:08:35-08:00 i965: use aligned malloc for context instead of ralloc Fixes: 3175b63a ("mesa: don't allocate matrices with malloc") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4118 Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8805> (cherry picked from commit b609d4677d3f910c546c1d94d8ddfe4511e2f065) Conflicts: src/mesa/drivers/dri/i965/brw_performance_query.c - - - - - 392b1722 by Dylan Baker at 2021-02-05T08:54:18-08:00 bump version for 21.0-rc4 - - - - - 6 changed files: - .gitlab-ci/deqp-radv-navi10-aco-fails.txt - .gitlab-ci/deqp-radv-navi14-aco-fails.txt - .gitlab-ci/deqp-radv-pitcairn-aco-fails.txt - .gitlab-ci/deqp-radv-raven-aco-fails.txt - .gitlab-ci/deqp-radv-sienna_cichlid-aco-fails.txt - .gitlab-ci/deqp-radv-vega10-aco-fails.txt The diff was not included because it is too large. View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/59417ecc8478d1c8cd69468754ba9a3fb2eaa6b7...392b1722c2562d65066bece2f9e2f327ecb7b62d -- View it on GitLab: https://salsa.debian.org/xorg-team/lib/mesa/-/compare/59417ecc8478d1c8cd69468754ba9a3fb2eaa6b7...392b1722c2562d65066bece2f9e2f327ecb7b62d You're receiving this email because of your account on salsa.debian.org.

