[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][xorg-team/lib/mesa][debian-unstable] 91 commits: docs: add sah256sum for mesa 22.1.3



Title: GitLab

Timo Aaltonen pushed to branch debian-unstable at X Strike Force / lib / mesa

Commits:

  • ceb5c0f5
    by Dylan Baker at 2022-06-29T11:14:07-07:00
    docs: add sah256sum for mesa 22.1.3
    
  • 05d8bc7f
    by Dylan Baker at 2022-06-29T15:34:11-07:00
    .pick_status.json: Update to c017dfec62e448fea9ad9d16c575086b0de19b3b
    
  • 2a453ba9
    by Lionel Landwerlin at 2022-06-29T15:34:16-07:00
    anv: disable non uniform indexing of UBOs
    
    The feature we wanted to enable in 710393b3aa4a was
    descriptorBindingUniformBufferUpdateAfterBind.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: 710393b3aa4a ("anv: enable UBO indexing")
    Reviewed-by: Francisco Jerez <currojerez@riseup.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17200>
    (cherry picked from commit 3e247cd05f30b963027bd5e9ffcadf2cfa27ff5b)
    
  • 4f6fdddf
    by Dylan Baker at 2022-06-29T15:36:48-07:00
    .pick_status.json: Mark 4480e577a462d43f5c7701d2c1b70c601c626e18 as denominated
    
  • 7d4d33e8
    by Dylan Baker at 2022-06-30T08:58:34-07:00
    .pick_status.json: Update to 8ab1e9826db5936ff287bef7b428ebee27ada507
    
  • a066287f
    by Mike Blumenkrantz at 2022-06-30T08:58:47-07:00
    nir/types: fix glsl_matrix_type_is_row_major() assert
    
    interface blocks can have row_major set
    
    cc: mesa-stable
    
    affects (zink):
    dEQP-GLES2.functional.shaders*
    
    Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
    
    Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17238>
    (cherry picked from commit 0e7863c3b025042d7e41b5c9f73a6b7f788a87a3)
    
  • a80fe86c
    by Dylan Baker at 2022-07-06T10:00:44-07:00
    .pick_status.json: Update to 9dbfc21ab9ac99ebec56369d1e1ea9d7b615d5f5
    
  • a9b3df51
    by Rhys Perry at 2022-07-06T10:00:53-07:00
    aco/ra: update register file when updating phi definition
    
    update_renames() fills in the wrong temp id.
    
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
    Fixes: 302cb5c9001 ("aco/ra: remove some redundant code")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17295>
    (cherry picked from commit 84f04fd0800384306347277c4e39524f0b295e34)
    
  • 040658cd
    by Mike Blumenkrantz at 2022-07-06T10:00:55-07:00
    zink: enforce viewport depth clamping
    
    VUID-VkViewport-minDepth-01234 specifies that depth must be in the range [0.0, 1.0],
    so the viewport must always be clamped to this range
    
    this affects texture clears using u_blitter, as this expects to be able
    to use the GL range of [-1.0, 1.0], so pass the depth value as though it's
    been de-converted back to a GL z coordinate to account for viewport transform
    
    cc: mesa-stable
    
    fixes #6757
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17319>
    (cherry picked from commit 90c5eea22b69306e463decd405029944b4a0d53b)
    
  • e1cf74f5
    by Iago Toral Quiroga at 2022-07-06T10:00:56-07:00
    v3dv: fix pool descriptor count for inline uniform buffers
    
    Fixes VK_ERROR_OUT_OF_POOL_MEMORY in the inlineuniformblocks
    sample from Sascha Willems.
    
    Fixes: ea3223e7a46 ('v3dv: implement VK_EXT_inline_uniform_block')
    Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17311>
    (cherry picked from commit 7b91b39ba517d8bccf3c44007d1acfaf4fac84c0)
    
  • af9b7533
    by Daniel Schürmann at 2022-07-06T10:00:57-07:00
    nir/opt_shrink_vectors: fix re-using of components for vecN
    
    Cc: mesa-stable
    Reviewed-by: Emma Anholt <emma@anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17276>
    (cherry picked from commit 862f1eacb2dc68dd099f8c923134ab01b4459538)
    
  • 122e31b5
    by Alyssa Rosenzweig at 2022-07-06T10:01:19-07:00
    ttn: Set nir->info.separate_shader
    
    TGSI has no legitimate[1] notion of linked shaders, which means tgsi_to_nir
    should conservatively assume everything all shaders are separable. This requires
    setting nir->info.separate_shader to warn drivers that shader CSOs might be
    mixed and matched. Otherwise, the driver might enable optimizations that
    are invalid for separate shaders, causing issues when the shaders are
    later treated as separable.
    
    This will fix varying linking with u_blitter's shaders on Panfrost (Bifrost and
    older), when util_blitter_clear is used with Panfrost.
    
    [1] There was a TGSI property added recently to forward
    nir->info.separate_shader up to virglrenderer, but it's not actually used for
    anything in virglrenderer and I am still struggling to understand what the use
    case would be. My gut says we should revert b63403054237 ("tgsi: Add
    SEPARABLE_PROGRAM property"), but I'm not interested in fighting that yak right
    now. Notably, the u_blitter and hud shaders are separable but are not marked
    with this property.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
    Reviewed-by: Emma Anholt <emma@anholt.net>
    Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17282>
    (cherry picked from commit 151aa19c21575ba498a19c48e84474107a4eb304)
    
  • 562c1d93
    by Lionel Landwerlin at 2022-07-06T10:01:19-07:00
    anv: use the right helper to invalidate memory
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17001>
    (cherry picked from commit b91971c240d3b8391f2105337579a0e14116769c)
    
  • 0fec6321
    by Dylan Baker at 2022-07-12T10:15:57-07:00
    .pick_status.json: Update to 0feedec9e6b630f930605d9681911fe9e2b705ce
    
  • eb1fb930
    by Iago Toral Quiroga at 2022-07-12T10:16:17-07:00
    nir: fix documentation for uadd_carry and usub_borry opcodes
    
    These opcodes where fixed to return an integer instead of a boolean
    value some time ago but the documentation for them was not updated
    and still talked about a boolean result.
    
    Fixes: b0d4ee520 ('nir/opcodes: Fix up uadd_carry and usub_borrow')
    Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17372>
    (cherry picked from commit 84a0dca9dffebe7927a388d95ca620d3677acb30)
    
  • 2b157e92
    by Jason Ekstrand at 2022-07-12T10:16:18-07:00
    vulkan/wsi: Pass the size to MapMemory in the SW path
    
    Cc: mesa-stable@lists.freedesktop.org
    Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17388>
    (cherry picked from commit ca6bd57e7643358fefd766883c8bb323e48777f3)
    
  • fcb327dd
    by Jason Ekstrand at 2022-07-12T10:16:19-07:00
    vulkan/wsi/x11: Don't leak shm_reply if we don't have dri3 or present
    
    Fixes: b5c390c113d3 ("vulkan/wsi: add support for detecting mit-shm pixmaps.")
    Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17388>
    (cherry picked from commit 5abc05f1df44dd9ee2f054729b2bdf01a5e45e33)
    
  • 0869e0aa
    by Lionel Landwerlin at 2022-07-12T10:16:22-07:00
    intel/fs: ray query fix for global address
    
    With stages dispatching with a mask, we can run into situations where
    we don't have the global address in all lanes. The existing code
    always assumed we had the addres in at least lane0.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: bb40e999d114 ("intel/nir: use a single intel intrinsic to deal with ray traversal")
    Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17330>
    (cherry picked from commit 9680e0e4a2d1f7f5490ea27e4c5250baa2f21d48)
    
  • 09588251
    by Alyssa Rosenzweig at 2022-07-12T10:16:23-07:00
    panfrost: Clear with a quad to avoid flushing
    
    Flushing the batch midframe (splitting a renderpass) is expensive on a tiler, as
    it requires the GPU to flush the framebuffer contents to main memory and read
    them back. Clearing the framebuffer should not trigger a flush. Apps expect
    clears to be (almost) free, flushing for a clear is at the very least unexpected
    behaviour.
    
    The only reason we previously flushed is to ensure we could always use a "fast"
    clear. But a slow clear is a heck of a lot faster than a flush ;-) Instead of
    flushing, we should clear with a draw (via u_blitter) in case a fast clear isn't
    possible.
    
    This fixes pathological performance for applications that rely on partial clears
    within a frame. This issue was identified with Inochi2D, which repeatedly clears
    the stencil buffer midframe, in order to implement masking efficiently with the
    stencil buffer. In total, the all-important workload of rendering Asahi Lina is
    improved from 17fps to 29fps on a panfrost device.
    
    Fixes: c138ca80d23 ("panfrost: Make sure a clear does not re-use a pre-existing batch")
    Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17112>
    (cherry picked from commit 638b22354e75fa31551f776a2cd2bbf752db1ad5)
    
  • 95d522f4
    by Tatsuyuki Ishi at 2022-07-12T10:16:25-07:00
    radv: Fix vkCmdCopyQueryResults -> vkCmdResetPool hazard.
    
    The Vulkan specification states:
    
    > Query commands, for the same query and submitted to the same queue,
    > execute in their entirety in submission order, relative to each other. In
    > effect there is an implicit execution dependency from each such query
    > command to all query commands previously submitted to the same queue..
    
    Fixes dEQP-VK.query_pool.statistics_query.reset_after_copy.*
    
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17400>
    (cherry picked from commit 768cd5715def2ee69b5084e9da83fcbe3228cdaa)
    
  • 6da016cd
    by Lionel Landwerlin at 2022-07-12T10:16:28-07:00
    nir/serialize: restore ray query variables
    
    The ray query status of a variable is tracked in the
    nir_variable::data. We need to store it in the serialization otherwise
    restoring NIR from a cache will drop the annotation.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: 5a9cdab17050 ("nir: track variables representing ray queries")
    Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16059>
    (cherry picked from commit a4c5521ea9b1852734672e1978ff769a1e11113f)
    
  • 4514fdff
    by Marek Olšák at 2022-07-12T10:16:28-07:00
    radeonsi: fix random PS wave size
    
    Fixes: b3b2f97f2e25b2c "radeonsi: add Wave32 heuristics and shader profiles"
    
    Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17410>
    (cherry picked from commit 3b36700162c8a3a950e930714003d60ba672db8c)
    
  • 1678100c
    by Mike Blumenkrantz at 2022-07-12T10:16:29-07:00
    mesa: fix SignalSemaphoreEXT behavior
    
    the EXT_external_object spec originally was underspecified with regards
    to this function, leaving room for synchronization errors where:
    * app calls SignalSemaphoreEXT to signal a semaphore
    * mesa defers pipe_context::fence_server_signal with threaded context
    * driver defers gpu submission
    * SignalSemaphoreEXT has long since returned, app submits vk cmdbuf waiting on semaphore
    * spec violation / device lost
    
    to prevent this, the spec is being changed to:
    1) require an implicit flush when calling SignalSemaphoreEXT
    2) require that this implicit flush also forces GPU submission before SignalSemaphoreEXT returns
    
    all affected drivers have been updated
    
    fixes #6568
    
    cc: mesa-stable
    
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17376>
    (cherry picked from commit 21b3a234048a270e7999f8e70e25091c599dd3eb)
    
  • a18fe935
    by Pavel Ondračka at 2022-07-12T10:16:30-07:00
    r300: Keep rc_rename_regs() from overflowing RC_REGISTER_MAX_INDEX
    
    This pass tries to move register usage closer to SSA, and for large
    shaders this means we can overflow the register index, which only has
    RC_REGISTER_INDEX_BITS size. This creates invalid code and leads to
    crash at a later stage. Limit the pool of available registers to
    RC_REGISTER_MAX_INDEX, currently is was two times the number of
    shader instructions.
    
    This means we'll fail the compile right away if we wanted more than
    RC_REGISTER_MAX_INDEX temps, but when we've got that many we're
    already well past how many instructions we can support anyway.
    
    CC: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6017
    Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
    Reviewed-by: Emma Anholt <emma@anholt.net>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17393>
    (cherry picked from commit 42a3d22f165a990ba3e05ef7e8e5d147f62281b4)
    
  • 8a445634
    by Daniel Schürmann at 2022-07-12T10:16:31-07:00
    radv/shader_info: fix load_frag_coord and load_sample_pos read masks
    
    Fixes: a8c471f962e3a86f0cb6a91f14090b0c8cfb73ff ('radv: gather more information about PS in the shader info pass')
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17417>
    (cherry picked from commit 676700d660c8b5ead660b2c694fafde0a57c635d)
    
  • 9276b2f2
    by Daniel Schürmann at 2022-07-12T10:16:31-07:00
    aco: fix packed 16bit fneg/fsat optimization
    
    Make sure that the Operand is '1.0.xx'.
    
    Fixes: b03be30e07546b813acc1156407b964e68892beb ('aco: optimize packed fneg')
    Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17395>
    (cherry picked from commit 66d46a23fbc289b9492547697f0738f32ecb46c8)
    
  • 56b7c79c
    by Lionel Landwerlin at 2022-07-12T10:16:32-07:00
    isl: add new helper for format component compatibility
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Cc: mesa-stable
    Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17329>
    (cherry picked from commit ab4beaf3fb015fce743acac9efb933c110881bf5)
    
  • 3f76b2a2
    by Mike Blumenkrantz at 2022-07-12T10:16:35-07:00
    lavapipe: don't overwrite entire VkFormatProperties3 struct
    
    this clobbers pNext and breaks tooling, as found by Panagiotis Apostolou
    
    Fixes: f72d5a930b1 ("lavapipe: KHR_format_feature_flags2")
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17462>
    (cherry picked from commit 276557b9c6261a26fb11932c8e51faf23893f482)
    
  • cf26e274
    by Mike Blumenkrantz at 2022-07-12T10:16:36-07:00
    lavapipe: don't crash on null xfb buffer pointer
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17469>
    (cherry picked from commit fb917a606cf9cc50b40e06730f296a092db82c51)
    
  • 6ddbd561
    by Emma Anholt at 2022-07-12T10:16:37-07:00
    zink: Do the timestamp-to-ns math in a double to have better precision.
    
    Fixes arb_timer_query-timestamp-get on my radv system, where the GPU has
    been on for many days and the timestamp would only increment every once in
    a while.
    
    Part of fixing #6808
    
    Fixes: 7a40b734ee2b ("zink: handle timestamp queries")
    Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17477>
    (cherry picked from commit 0feedec9e6b630f930605d9681911fe9e2b705ce)
    
  • 2dfe1884
    by Jason Ekstrand at 2022-07-14T10:09:50-05:00
    anv: Inheritance info cannot be NULL
    
    The NULL path is dead because it can't actually be NULL.  This cleans
    things up a bit.
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17013>
    
  • cc8a8ebf
    by Jason Ekstrand at 2022-07-14T10:09:50-05:00
    anv: Stop compacting surface state tables
    
    Instead of trying to compact the surface state table to get rid of any
    unused render targets, emit MAX(1, colorAttachmentCount) surface states
    always.  This ensures that secondaries will always match with primaries
    when we go to do the copy since there's no rule requiring the secondary
    to have VK_FORMAT_UNDEFINED when the primary has a NULL image view.
    
    Fixes: 3501a3f9ed92 ("anv: Convert to 100% dynamic rendering")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17013>
    
  • 1e5311ab
    by Dylan Baker at 2022-07-15T10:42:47-07:00
    docs: add release notes for 22.1.4
    
  • b6b79072
    by Dylan Baker at 2022-07-15T10:42:47-07:00
    VERSION: update to 22.1.4
    
  • f0c5c8fc
    by Dylan Baker at 2022-07-26T14:54:38-07:00
    .pick_status.json: Update to 4cfa777e393705b40cebd0a4cd76aa827ce8b194
    
  • a15b4f3b
    by Lionel Landwerlin at 2022-07-26T14:54:55-07:00
    intel: protect against empty invalidate ranges
    
    It's legal for an application to call vkInvalidateMappedMemoryRanges()
    / vkFlushMappedMemoryRanges() with zero sized ranges.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: b91971c240d3 ("anv: use the right helper to invalidate memory")
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6852
    Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17481>
    (cherry picked from commit 1aeb11cde1bc610cb23343ab507b1bf3b197b1b4)
    
  • 4d8ef8b2
    by Chuansheng Liu at 2022-07-26T14:54:56-07:00
    iris,anv: correct the max thread number for DG2+
    
    Correct the max thread number for DG2+ platforms according
    to below bspec.
    
    Ref: Bspec: 47202
    
    Cc: mesa-stable
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
    Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17506>
    (cherry picked from commit 39f8c61f32594c058acf0148b62fb444ea81a043)
    
  • 2e7de0bf
    by newbluemoon at 2022-07-26T14:54:57-07:00
    nine: replace ulimit with sysconf call
    
    __UL_GETOPENMAX seems to be glibc specific and not portable.
    In glibc’s sysdeps/posix/ulimit.c it is assigned the return
    value of sysconf(_SC_OPEN_MAX). So use the latter in the first place.
    
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5176
    CC: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17471>
    (cherry picked from commit 6a4fc6f6ca78ef0d2a546f9c1156ac14e9ac9691)
    
  • 7ead2568
    by Alyssa Rosenzweig at 2022-07-26T14:55:02-07:00
    pan/bi: Require ATEST coverage mask input in R60
    
    In theory, ATEST can take any combination of registers for inputs.
    Experimentally, however, ATEST requires the coverage mask in R60. This avoids
    regressing the following dEQP tests, which write their coverage mask with
    pixel-frequency-shading but without writing to the depth/stencil buffer.
    
    dEQP-GLES31.functional.shaders.sample_variables.sample_mask.discard_half_per_pixel.*
    
    This issue is known to affect both Mali-G52 (v7) and Mali-G57 (v9). I am unsure
    if this is a silicon bug or just an obscure implementation detail.
    
    No shader-db changes.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17428>
    (cherry picked from commit db2bdc1dc37abc515a63ce174c6d201b23faa2e2)
    
  • 5f78f52a
    by Alyssa Rosenzweig at 2022-07-26T14:55:05-07:00
    panfrost: Add decoupled early-ZS helpers
    
    Bifrost (and Valhall) separate early-ZS configuration into two fields: when does
    the depth/stencil buffer update happen? and when are pixels killed by the
    depth/stencil tests? The driver separately configures these to occur early
    (before the shader executes) or late (after the ATEST instruction executes at
    the end of the shader). Early tests are generally more efficient, but various
    combinations of API state and fragment shader properties can require late
    updates and/or late kills for correctness. Determining how to configure these
    fields is nontrivial.
    
    Our current implementation (on Bifrost) configures these fields at fragment
    shader compile time and bakes the settings into the RSD. This is both wrong
    (using early testing when late testing is required) and suboptimal (using late
    testing when early testing would suffice). We need to defer this configuration
    until draw time, when we know rasterizer and Z/S state.
    
    Reclassifying at draw time (as we currently do on Valhall) would be expensive,
    especially with the extra terms added in here. To cope, decouple the shader
    classification from the draw-time configuration. Since there are only a few bits
    of draw state involved, this implementation just calculates all possible states.
    Then the draw time classification is just indexing into a lookup table.
    
    The actual algorithm used to classify is written with correctness and clarity in
    mind. Unlike the current classification algorithm (which tries to match what the
    DDK does, poorly), this algorithm embeds its proofs of correctness.
    
    Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17428>
    (cherry picked from commit e96292bc072b61c4ab33e654437773909177ab6d)
    
  • cbe94899
    by Mike Blumenkrantz at 2022-07-26T14:55:11-07:00
    lavapipe: support inlined shader spirv for compute
    
    no testing, full send
    
    Fixes: d4d5a7abba7 ("lavapipe: implement EXT_graphics_pipeline_library")
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17365>
    (cherry picked from commit 05552b46889a8bc8838af7e08c47781135d30fc1)
    
  • 9f601b6a
    by Jesse Natalie at 2022-07-26T14:55:13-07:00
    u_atomic: Fix MSVC p_atomic_add_return
    
    InterlockedExchangeAdd returns the *old* value, not the new one
    
    Cc: mesa-stable
    Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17529>
    (cherry picked from commit 81bbfab5dfa33bf251ed519dde30128f39e7a3f9)
    
  • 3d7fe94c
    by Brian Paul at 2022-07-26T14:55:17-07:00
    util/bitset: add BITSET_SIZE()
    
    To get the size (in bits) of a bitset.
    And minor clean-up in __bitset_ffs().
    
    Signed-off-by: Brian Paul <brianp@vmware.com>
    Reviewed-by: Roland Scheidegger <sroland@vmware.com>
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062>
    (cherry picked from commit 8bd6feaca5ac15e3375b5631f68013a5a9b336aa)
    
  • efd1e177
    by Brian Paul at 2022-07-26T15:40:42-07:00
    llvmpipe: add missing tex_info->texture_unit assignment
    
    The texture_unit field needs to be set like the sampler_unit field.
    
    Also, add a swizzle initialization and some comments.
    
    Signed-off-by: Brian Paul <brianp@vmare.com>
    Reviewed-by: Roland Scheidegger <sroland@vmware.com>
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062>
    (cherry picked from commit 3743f74d3061e2dd95306aa36c35b99367c3c059)
    
  • afd5c7e2
    by Brian Paul at 2022-07-26T15:40:46-07:00
    gallivm: increase LP_MAX_TGSI_SHADER_IMAGES from 16 to 32
    
    This allows a VMware test to pass.  The comments in lp_bld_limits.h
    mention SM 3.0 requirements, but we're in the SM 5.0 era...
    
    Signed-off-by: Brian Paul <brianp@vmware.com>
    Reviewed-by: Roland Scheidegger <sroland@vmware.com>
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062>
    (cherry picked from commit 98593360c455a1792ffbc95dac6a43a7bf91c7cc)
    
  • fb59b58e
    by Brian Paul at 2022-07-26T15:40:47-07:00
    lavapipe: fix logicop, independent blend enable/disable
    
    The logicop_enable and independent_blend_enable vars need to always
    be assigned, otherwise, once turned on, they could never be disabled.
    
    This fixes a number of failures in VMware's test suite.
    
    Signed-off-by: Brian Paul <brianp@vmware.com>
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Reviewed-by: Roland Scheidegger <sroland@vmware.com>
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062>
    (cherry picked from commit 2b14a7658a4c798564d5269541b833975ad9d950)
    
  • 8c18efea
    by Brian Paul at 2022-07-26T15:40:48-07:00
    llvmpipe: don't allow texture/resource swizzles on linear path
    
    This fixes another VMware test (dx9-stretch-formats-copy-a8r8g8b8-x8r8g8b8).
    
    Signed-off-by: Brian Paul <brianp@vmware.com>
    Reviewed-by: Roland Scheidegger <sroland@vmware.com>
    cc: mesa-stable
    
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17062>
    (cherry picked from commit dfb2ea35315f0d070d3307af8e2474049354a685)
    
  • a84f27ea
    by Lionel Landwerlin at 2022-07-27T10:15:13-07:00
    anv: track if images can be fast clear with non-zero color
    
    Because clear colors are stored as 4 32bit component values, there is
    an issue if you try to format instance :
    
       - clearing in R16G16_UNORM
       - draw in R32_UINT
    
    Clear will use 2 components of the clear color in dword0 & dword1.
    
    While draw will use only one component of dword0.
    
    This change uses the mutable format information to track whether clear
    colors can be non-zero for fast clears.
    
    With :
    
       - non mutable formats, we can fast clear with any color on Gfx > 8
       - mutable formats with incompatible component sizes, we can only
         fast clear with 0 color
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5930
    Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17329>
    (cherry picked from commit 682383e5b3328d4a7418ce802d2226c87bbda966)
    
    Conflicts:
    	src/intel/vulkan/anv_image.c
    
  • 94924e98
    by Lionel Landwerlin at 2022-07-27T11:02:10-07:00
    anv: deal with isl format swizzles for buffer views
    
    For some formats like VK_FORMAT_B5G6R5_UNORM_PACK16, we have no direct
    matching HW format. We can support it by swizzling.
    
    We already apply those swizzles for image views. We just forgot to
    deal with buffer views.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6235
    Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17385>
    (cherry picked from commit 57a8efa22218cc9c2dec0473762de288e4fd239d)
    
    Conflicts:
    	src/intel/vulkan/anv_image.c
    
    stable:
        - replace vk_buffer_range with anv_get_buffer_range, as the shared
          vulkan buffer work isn't in 22.1
    
  • 47315c07
    by Dylan Baker at 2022-07-27T13:18:31-07:00
    .pick_status.json: Update to 9b844d7c42129925525d613c19622b11aee16298
    
  • 79ddf692
    by Lionel Landwerlin at 2022-07-27T15:06:14-07:00
    spirv: switch to uint64 for rayquery internal type
    
    Fixes dEQP-VK.ray_query.advanced.using_wrapper_function.comp.*
    
    An empty struct is causing problems because when passing it as
    argument the spirv parser will just drop the argument, considering it
    does not hold any data.
    
    v2: update radv CI
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Fixes: 4c703686dba5 ("spirv: handle ray query intrinsics")
    Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17420>
    (cherry picked from commit a41e8dc58876c7bf33b73576019f966b908ac080)
    
    Conflicts:
    	src/amd/ci/radv-navi21-aco-fails.txt
    	src/amd/ci/radv-navi22-aco-fails.txt
    	src/amd/ci/radv-vangogh-aco-fails.txt
    
    navi tests are removed as they don't exist in 22.1
    
  • 595de716
    by Lionel Landwerlin at 2022-07-27T15:07:26-07:00
    anv: ensure tile flush before streamout writes
    
    Streamout is not L3 coherent so previous writes to the same address
    might be pending and overwrite the SO writes later when they get
    flushed from L3, even though the SO write happened later in the batch.
    
    v2: Use the right flag (not COUNTER)
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Cc: mesa-stable
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6680
    Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17503>
    (cherry picked from commit 2cac3b38172980ea51ba0ea2bbb6350d057972b0)
    
     Conflicts:
    	src/gallium/drivers/zink/ci/zink-anv-tgl-fails.txt
    
    deleted ci file not present in 22.1
    
  • 0f7b5c52
    by Mike Blumenkrantz at 2022-07-27T15:08:06-07:00
    zink: allow multiple tex components for depth tg4
    
    this returns a vec4, so don't break the return type by clamping 1 component
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17427>
    (cherry picked from commit 35a4b8989fbd7314a5def5eecb634961cf016a29)
    
  • df24a47e
    by Mike Blumenkrantz at 2022-07-27T15:08:07-07:00
    zink: always use 32bit sample ops
    
    while some (tg4) sample ops can use different bit sizes in spirv, most
    cannot, and all the shader variables are always emitted as 32bit, so
    ensure the 32bit type is always what's being used for sampling
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17427>
    (cherry picked from commit 49d5fa12f21eda556eb8e7cb99748ef53e7cc492)
    
  • 1aa9acc6
    by Bas Nieuwenhuizen at 2022-07-27T15:08:07-07:00
    radv: Skip setting empty index buffers to avoid hang
    
    In the direct path we already skipped draws, but in DGC I noticed
    that just emitting these packets can cause issues ...
    
    Cc: mesa-stable
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17269>
    (cherry picked from commit 82c2e99102343f1538ae2ccdb15a0747d9510ca3)
    
  • 0a4b59e1
    by Mike Blumenkrantz at 2022-07-27T15:08:08-07:00
    zink: use right glsl length getter for ntv partial stores
    
    why does glsl_get_length exist if it returns 0 for the most common cases?
    
    Fixes: 31ba19ff681 ("zink: fix ntv partial stores")
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17404>
    (cherry picked from commit c189b7f585ba42c12be9ab2dcb737db838219af4)
    
  • a9c354cd
    by Qiang Yu at 2022-07-27T15:57:56-07:00
    ac/nir/ngg: fix nogs culling scratch size
    
    Should be in bytes not dwords.
    
    Fixes: e97f0463a8f ("ac/nir: Implement NGG deferred attribute culling in NIR.")
    Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
    Signed-off-by: Qiang Yu <yuq825@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17593>
    (cherry picked from commit 0b7ef846b3ddfe6e7964d95332cba79e69c8163a)
    
  • 1b4e99e9
    by Qiang Yu at 2022-07-27T15:59:30-07:00
    ac/nir/ngg: add a barrier before prim id export
    
    When culling enabled, it will use LDS space, which overlap with
    the prim id export.
    
    Fixes: e97f0463a8f ("ac/nir: Implement NGG deferred attribute culling in NIR.")
    Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
    Signed-off-by: Qiang Yu <yuq825@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17593>
    (cherry picked from commit eeaf0b1888810042d335f609695bceaa2368b42f)
    
     Conflicts:
    	src/amd/common/ac_nir_lower_ngg.c
    
  • 9ab162bf
    by Dave Airlie at 2022-07-27T15:59:31-07:00
    kms/dri: add mutex lock around map/unmap
    
    this can get called from multiple threads with the recent llvmpipe
    overlapping rendering changes, so make sure to lock around the
    map/unmapping so they can't race.
    
    This should fixes some crashes seen with kwin.
    
    Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Tested-by: Adam Williamson (Fedora)
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17531>
    (cherry picked from commit 50e3303b3d0484ffdc1acbc03bae8655231b19de)
    
  • 1be1029e
    by Lionel Landwerlin at 2022-07-27T15:59:32-07:00
    intel/fs: Set NonPerspectiveBarycentricEnable when the interpolator needs it.
    
    [anholt: changed to make all drivers do the right thing by moving the
    payload barycentric check into the compiler]
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17381>
    (cherry picked from commit 2d1f021e16204e28cec374258c1e3497e916ab6b)
    
  • d42978b1
    by Lionel Landwerlin at 2022-07-27T15:59:33-07:00
    anv: fix primitive topology dynamic state emission on gfx7
    
    This dynamic state uses the pipeline information so it needs to be
    reemitted whenever the pipeline changes.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Cc: mesa-stable
    Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17601>
    (cherry picked from commit a9abf1dd936eef6373b9e61537c89762ff5d21ee)
    
  • 5e481bb5
    by Iago Toral Quiroga at 2022-07-27T15:59:34-07:00
    v3dv: stop tracking push constant buffer references
    
    Since we allocate this ourselves we can immediately add it to the
    job at the time we allocate it.
    
    This also fixes a bug we introduced when we implemented inline
    uniforms because since that commit, if we had an inline uniform
    buffer at index 1 which happend to have indirect access we would
    track it in slot 0 instead of slot 1, potentially overwriting
    the push constant buffer reference.
    
    Fixes: ea3223e7a46 ('v3dv: implement VK_EXT_inline_uniform_block')
    Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17536>
    (cherry picked from commit e451c612df87fc8033d9be64be0c449bd9a17191)
    
  • 5b86d213
    by Daniel Schürmann at 2022-07-27T15:59:35-07:00
    aco: fix assertion in insert_exec_mask
    
    The exec mask might also be of type mask_type_loop.
    
    Fixes: d068eb53e84ca1e44ad96c31dab63476880b3c72 ('aco/insert_exec_mask: optimize top-level transition to exact before demote')
    Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17402>
    (cherry picked from commit ac39e7bf23710b4847d582352b20544a62370f25)
    
  • ca887b31
    by Rhys Perry at 2022-07-28T09:36:28-07:00
    radv: fix vbo_bound_mask indexing
    
    Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6812
    Fixes: 1b8bdecf6e0 ("radv: add a mask of bound descriptor buffers for dynamic vertex input")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17521>
    (cherry picked from commit 1d019d2ab772ad72f4d3665e60f26de83f5cf29c)
    
    Conflicts:
    	src/amd/vulkan/radv_cmd_buffer.c
    
  • bb9054a8
    by SoroushIMG at 2022-07-28T09:36:35-07:00
    zink: Fix spirv stream 0 vertex emit for multistream shaders
    
    Spirv spec does not allow the use of OpEmitVertex or OpEndPrimitive when there are multiple streams.
    Instead emit the multi-stream version of these with stream set to 0.
    This issue was seen when testing cts case KHR-GL46.transform_feedback.draw_xfb_stream_test
    
    Fixes: 35e346f4280 ("zink: handle vertex streams")
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17513>
    (cherry picked from commit 3dfd8e4d7dde2dfb749c4d115e7f37e5965d460c)
    
  • fa900881
    by SoroushIMG at 2022-07-28T09:36:36-07:00
    Zink: Fix clear being missed when using emulated draws in zink_blit
    
    zink_kopper_acquire_readback will flush any outstanding clears, this means that
    the current clears need to be applied first before calling zink_kopper_acquire_readback.
    This was already done for native_blit and native_resolve, also do this for the emulated draw path.
    Seen as intermittent failures in cts case GTF-GL33.gtf21.GL2FixedTests.buffer_clear.buffer_clear.
    
    Cc: mesa-stable
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17631>
    (cherry picked from commit 2159a377c0f2b5db9af0f6e283b6bb7205eac715)
    
  • f0a8da08
    by Dave Airlie at 2022-07-28T09:36:38-07:00
    crocus: fail query begin if upload allocation fails.
    
    This is the only place I think I can see this crashing.
    
    Cc: mesa-stable
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17615>
    (cherry picked from commit e14022c05255edafbb4db7df71379ba2f6964bae)
    
  • e5ce737b
    by Dave Airlie at 2022-07-28T09:39:09-07:00
    lavapipe: state latest conformance tests passed
    
    Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Cc: mesa-stable "22.1"
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17643>
    (cherry picked from commit bfebf51571e3f958bf74e9d90cb095e4fced8c06)
    
    Conflicts:
    	src/gallium/frontends/lavapipe/lvp_device.c
    
  • 95572964
    by Mike Blumenkrantz at 2022-07-28T09:39:11-07:00
    zink: handle max_vertices=0 in geometry shader
    
    this is a weird corner case where glsl permits a zero value, so clamp to 1
    and then don't emit any vertices to avoid driver hangs
    
    affects:
    dEQP-GL45-ES31.functional.geometry_shading.emit.points_emit_0_end_0
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17639>
    (cherry picked from commit 5b58f8df538f9bb7489486d262a6e603ddfa1f65)
    
  • 54a8bb32
    by Mike Blumenkrantz at 2022-07-28T09:39:12-07:00
    zink: handle null samplerview in get_imageview_for_binding()
    
    this is legal
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17639>
    (cherry picked from commit 19eddeb22631a9a861f2df9731701a8ba315639b)
    
  • 9ef9b932
    by Mike Blumenkrantz at 2022-07-28T09:39:22-07:00
    zink: call bind_last_vertex_stage() when binding vs
    
    ensure all the necessary updates are flagged
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17639>
    (cherry picked from commit eaf11d3cd919790c7ca702181e5067ec2cef72e7)
    
  • dc5fcc2d
    by Mike Blumenkrantz at 2022-07-28T09:39:23-07:00
    zink: fix viewport count tracking
    
    the number of viewports in use is based on the outputs of the last vertex
    stage, not the viewports passed by the state tracker
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17639>
    (cherry picked from commit 268011e8c6aae4a682a8bc39c77d3783b3fb25b1)
    
  • b946850b
    by Mike Blumenkrantz at 2022-07-28T10:15:22-07:00
    zink: invoke descriptor_program_deinit for programs on context destroy
    
    this should make multi-context shutdown more stable
    
    affects:
    glx@glx-visuals-depth -pixmap
    glx@glx-visuals-stencil
    
    cc: mesa-stable
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17658>
    (cherry picked from commit 4123ee3c71461d7d045fec519130128a7fc4e643)
    
  • 5a9ef84f
    by Jason Ekstrand at 2022-07-28T10:15:23-07:00
    vulkan/nir: Don't remove dead XFB outputs
    
    Fixes: 21b405fbbc53 ("vulkan: Add a vk_shader_module_to_nir() helper")
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17644>
    (cherry picked from commit bd93d6f69373cbc9dc5d32fbde1dd4a119a307c9)
    
  • 624c6f94
    by Dave Airlie at 2022-07-28T10:15:24-07:00
    llvmpipe: fix aniso cube map arrays.
    
    There was a coordinate missing when you have cube map arrays,
    and aniso sampling.
    
    Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Fixes: ce2b711c0a5d ("gallivm: add support for anisotropic sampling.")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17704>
    (cherry picked from commit 21dd30569450b05a98c71b116df03c46f29c4da5)
    
  • b4ce0d71
    by Timur Kristóf at 2022-07-28T10:15:24-07:00
    ac/llvm: Add LLVM bug workaround to ac_build_mbcnt_add.
    
    LLVM always believes that this instruction's upper bound is the wave
    size, regardless of ac_set_range_metadata and regardless of whether
    the add source is used.
    
    As a workaround, emit an extra add instruction.
    
    Cc: mesa-stable
    Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
    Reviewed-by: Qiang Yu <yuq825@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17706>
    (cherry picked from commit 1e2663b62c241d6389e3f97cb8e104ccdd8d567e)
    
  • f8a04c8b
    by Daniel Schürmann at 2022-07-28T10:15:27-07:00
    radv/rt: fix nir_builder cursor in lower_rt_instructions()
    
    Fixes: 207ce6d658ac6d8f6421a02304b74645ff835e96 ('radv: Add helper to inline shaders into the main shader.')
    Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17301>
    (cherry picked from commit f7c318901d277ff22c23bdc881ee5ca42151be50)
    
  • c2760516
    by Nanley Chery at 2022-07-28T10:15:28-07:00
    iris: Don't leak surface states for compressed resources
    
    Before this patch, we were leaking surface states in iris_create_surface.
    Specifically, when we failed to create an uncompressed ISL surface and view for
    a compressed resource, we didn't free surface states we allocated for it.
    
    Fix this by attempting to create the uncompressed surface and view before we
    allocate the surface states.
    
    Cc: 22.1 <mesa-stable>
    Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17598>
    (cherry picked from commit bca601ffe92be0933bb706e4ad320676a0da8477)
    
  • 76ddaeb3
    by Nanley Chery at 2022-07-28T10:15:28-07:00
    iris: Don't leak compressed resources in iris_create_surface
    
    Before this patch, we were leaking compressed resources in iris_create_surface.
    Specifically, when we failed to create an uncompressed ISL surface and view for
    a compressed resource, we didn't unreference the resource pointer we referenced
    into the pipe_surface.
    
    Fix this by delaying the pipe_surface initialization code to after attempting
    to create the uncompressed surface and view.
    
    Cc: 22.1 <mesa-stable>
    Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
    Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17598>
    (cherry picked from commit 6c65e990b6e2d640492c4db66adaa5ac48825571)
    
  • 235dd6c0
    by Icecream95 at 2022-07-28T11:28:48-07:00
    panfrost: Only emit images when they are present
    
    nr_images is the trigger for allocating double the number of buffers
    for attributes. When there are no images, there is not always enough
    space for ALIGN_POT(k, 2) to not move k out of bounds, so don't
    execute the line in that case.
    
    Fixes: dc85f65e059 ("panfrost: emit shader image attribute descriptors")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17447>
    (cherry picked from commit fe613a8de95a95a3c44bd47c80316830ab10945e)
    
  • 25606926
    by Icecream95 at 2022-07-28T13:41:40-07:00
    panfrost: Don't unbind recently bound streamout targets
    
    When unbinding extra targets, start after the last new target.
    
    Fixes: 5ff79735601 ("panfrost: Import streamout data structures")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17447>
    (cherry picked from commit a0851f1cc4538b36087edb9bfcd0a6d449fb1cb6)
    
  • 46beee74
    by Pierre-Eric Pelloux-Prayer at 2022-07-28T13:41:41-07:00
    radeonsi: check last_dirty_buf_counter and dirty_tex_counter
    
    Check both counters in draw and compute, otherwise compute dispatches may
    miss buffers invalidation.
    This fixes the test case from https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/702
    (both with and without GALLIUM_THREAD=0).
    
    cc: mesa-stable
    
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17394>
    (cherry picked from commit af7c2ff8425bda1660cf7dd9beffdf813b3bc990)
    
  • 0df74bb3
    by Mike Blumenkrantz at 2022-07-28T13:41:42-07:00
    zink: only flag fbfetch as rp update if fbfetch wasn't already configured
    
    otherwise this is probably just a swapchain acquire which needs to update
    the descriptor during begin_renderpass
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17665>
    (cherry picked from commit c24c5972a82825367ee444dd7cde22d1ed88b3dd)
    
  • 256c0b91
    by Mike Blumenkrantz at 2022-07-28T13:41:42-07:00
    zink: avoid crashing when bindless texture updates aren't used
    
    some apps trigger the texture update path far in advance of when the
    texture will be used, so don't crash and wait to do the update
    
    cc: mesa-stable
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17665>
    (cherry picked from commit a2f97bd88a0d050a56a36659f82a28f05a8ee40c)
    
  • 7ee792cb
    by Dave Airlie at 2022-07-28T13:41:43-07:00
    crocus: fix leak in query code.
    
    Fixes: f3630548f1da ("crocus: initial gallium driver for Intel gfx 4-7")
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17731>
    (cherry picked from commit 878784dbec00d1d5cd4d3d080d72d740e3197df4)
    
  • 8ddf455f
    by Erik Faye-Lund at 2022-07-28T13:41:44-07:00
    zink: fix EXT_color_write_enable check
    
    Checking for the extension isn't enough, we also need to check for the
    feature-bit.
    
    Fixes: 49a20e0981c ("zink: start a unified driver workarounds struct")
    Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17709>
    (cherry picked from commit 747913377f22b8c55b456612cc586f9eabc14ee4)
    
  • faf316b9
    by Dylan Baker at 2022-08-03T14:13:26-07:00
    docs: add release notes for 22.1.5
    
  • f94151ee
    by Dylan Baker at 2022-08-03T14:13:26-07:00
    VERSION: update to 22.1.5
    
  • 095f9ee9
    by Timo Aaltonen at 2022-08-04T08:39:41+03:00
    Merge branch 'upstream-unstable' into debian-unstable
    
  • 31a9b9f9
    by Timo Aaltonen at 2022-08-04T08:40:08+03:00
    version bump
    
  • d01d8931
    by Timo Aaltonen at 2022-08-04T09:49:52+03:00
    release to sid
    

30 changed files:

The diff was not included because it is too large.

Reply to: