Dylan Baker
d630f852b9
.pick_status.json: Mark c025cb9ee9 as backported
2022-05-02 10:46:29 -07:00
Dylan Baker
0542f4ab03
.pick_status.json: Update to 2505afc430
2022-05-02 10:44:30 -07:00
Mike Blumenkrantz
1d33c5a2fc
zink: remove drm_fd
...
no longer used
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16226 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
69c861ad58
zink: ignore KMS handle types
...
who could've guessed that such a thing was possible
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16226 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
e45737c9eb
zink: export fd info for all 2d images
...
there's no way to add this later, so here we go
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16226 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
9f02b52ba2
zink: fix dmabuf plane returns
...
use the actual drm format plane count, not the resource format
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16226 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
f2d04b4fe9
kopper: implement texture-from-pixmap for software (non-dmabuf)
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16190 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
e0bf9a7ea8
kopper: rename a confusing variable
...
is_pixmap is defined in kopper_allocate_textures() as being (!window && x11),
which is very different from this check, which determines whether the drawable
is a window
so rename it to keep things consistent
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16190 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
6993615047
kopper: check whether zink is using sw
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16190 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
8fb66e77e2
zink/kopper: add a function for determining if running on software
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16190 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
9b872cc3a5
kopper: check for modifiers to use modifier functionality
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16190 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
721f054bae
kopper: add some error logging for pixmap->texture failure
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16190 >
2022-04-28 21:53:00 -04:00
Adam Jackson
e8d1650625
glx/kopper: Wire up a way for SwapBuffers to fail
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:53:00 -04:00
Mike Blumenkrantz
c9f29c22b8
zink/kopper: add a mechanism for checking swapchain status
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:52:59 -04:00
Mike Blumenkrantz
0d4b79d111
zink: flag swapchain resources as swapchains
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:52:59 -04:00
Mike Blumenkrantz
2096db8aad
zink: handle swapchain acquire failures more directly
...
if acquire fails, the pending operation cannot be completed, so just
drop it
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:52:59 -04:00
Mike Blumenkrantz
7decf4056e
zink: fix return for zink_kopper_acquire
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:52:59 -04:00
Mike Blumenkrantz
8ac563d157
zink: rework swapchain object check for acquires
...
this is more accurate
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:52:59 -04:00
Mike Blumenkrantz
8ab5ac0870
zink: unset image layout when killing swapchain
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:52:59 -04:00
Mike Blumenkrantz
5694c04cdd
zink: handle dead swapchains in acquire
...
this is a no-op failure
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:52:59 -04:00
Mike Blumenkrantz
8bae419dfe
zink: flag swapchains when updating fails
...
these are dead, they just don't know it yet
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:52:59 -04:00
Mike Blumenkrantz
e1706c29c6
zink: add a util function for finding swapchain resource
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16038 >
2022-04-28 21:52:59 -04:00
Jordan Justen
ccdebfb26a
drm-uapi/i915_drm.h: Update from drm-next (2022-04-28)
...
git://anongit.freedesktop.org/drm/drm 9bda072a7bec278c424ad660373e69d8e4a3385d
Among other changes, this provides DRM_I915_QUERY_HWCONFIG_BLOB and
DRM_I915_QUERY_GEOMETRY_SUBSLICES, which are needed for DG2 support.
Cc: 22.1 <mesa-stable>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16174 >
(cherry picked from commit 3477dbd34f )
2022-04-28 21:52:59 -04:00
Tapani Pälli
b39d53761c
isl: disable mcs (and mcs+ccs) for color msaa on DG2
...
Fixes lots of various test failures in:
dEQP-VK.pipeline.multisample.min_sample_shading_disabled.*
dEQP-GLES3.functional*multisample.*
KHR-GL*sample_variables.*
Cc: mesa-stable
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13991 >
(cherry picked from commit d3ef3657b2 )
2022-04-28 21:52:59 -04:00
Jordan Justen
b674942ecc
vulkan/wsi/x11: Use atomic_int with sent_image_count
...
Without this being atomically incremented and decremented, I observed
this assert triggering in debug builds:
src/vulkan/wsi/wsi_common_x11.c:x11_present_to_x11_dri3():
assert(chain->sent_image_count <= chain->base.image_count);
I think this was happening since,
src/vulkan/wsi/wsi_common_x11.c:x11_handle_dri3_present_event()
which decrements chain->sent_image_count may be run in a separate
thread.
Fixes: d0bc1ad377 ("vulkan/wsi/x11: add sent image counter")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15908 >
(cherry picked from commit 212fb25b26 )
2022-04-28 21:52:59 -04:00
Dylan Baker
2e84b75047
.pick_status.json: Update to 1dc697942a
2022-04-28 10:05:42 -07:00
Icecream95
431f07fcd9
panfrost: Fix pack_32_2x16 implementation
...
Fixes: 6f0eff548c ("pan/bi: Implement packing ops between 32-bit vec1 and 16-bit vec2")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16181 >
(cherry picked from commit 76cea8e27b )
Conflicts:
src/panfrost/bifrost/bifrost_compile.c
2022-04-27 12:30:28 -07:00
Samuel Pitoiset
46c9e8b811
radv: enable radv_disable_sinking_load_input_fs for Grid Autosport
...
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4228
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16165 >
(cherry picked from commit e6bcdc763c )
2022-04-27 12:30:28 -07:00
Samuel Pitoiset
0783dd7f7e
radv: allow to disable sinking of load inputs for FS via drirc
...
To workaround game bugs where partial derivatives are used in
non-uniform control flow. A proper solution needs to be implemented,
but as a quick fix disabling nir_opt_sink() works.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16165 >
(cherry picked from commit 1dbfd2be4b )
2022-04-27 12:30:28 -07:00
Samuel Pitoiset
2eba273314
radv: fix handling divisor == 0 with dynamic vertex input state
...
When the divisor is 0, the compiler should generate a different VS
prolog instead of re-using a previous prolog that uses nontrivial
divisors. This is because divisor == 0 and divisor > 1 should use
a different path to guarantee that the index is correctly computed.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16009 >
(cherry picked from commit f525706e77 )
2022-04-27 11:19:10 -07:00
Mike Blumenkrantz
7fb345d84a
drisw: remove dead code
...
this was from a very early version of kopper, but it can no longer
be reached
Fixes: d760a9151b ("gallium: Learn about kopper")
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16152 >
(cherry picked from commit 6a9def8c9f )
2022-04-27 11:19:09 -07:00
Yevhenii Kolesnikov
07a0e16324
nir: Remove single-source phis before opt_if_loop_last_continue
...
We might have some single-source phis leftover after prior optimizations. We
want to get rid of them before merging the blocks.
Fixes: 5921a19d4b ("nir: add if opt opt_if_loop_last_continue()")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6312
Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16095 >
(cherry picked from commit 65caf46b3b )
2022-04-27 11:19:09 -07:00
Jason Ekstrand
a5191667d3
spirv: Handle Op*MulExtended for non-32-bit types
...
Fixes: 58bcebd987 ("spirv: Allow [i/u]mulExtended to use new nir opcode")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6306
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16060 >
(cherry picked from commit ef9d97ec1f )
2022-04-27 11:19:08 -07:00
Dylan Baker
dea703ff2b
.pick_status.json: Update to f17d3a1251
2022-04-27 11:19:07 -07:00
Dylan Baker
53fe3ea095
VERSION: bump for 22.1.0-rc3
2022-04-27 10:23:21 -07:00
Mike Blumenkrantz
276d23b4bc
zink: ci update
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16179 >
2022-04-27 03:54:29 +00:00
Mike Blumenkrantz
8cd82ee256
zink: fix up swapchain depth buffer geometry during fb update
...
due to desync between the frontend and the driver, the size that the
depth buffer was created with may not match the size of the swapchain if
the window is being resized very quickly, so just go ahead and clobber
the existing depth buffer with a series of very illegal internal object
replacements to make everything match up
do not try at home.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16179 >
2022-04-27 03:54:29 +00:00
Mike Blumenkrantz
939a0cf876
zink: fix/improve swapchain surface info updating
...
if the swapchain is updated, the base surface info needs to be updated
so that the surface info used for the framebuffer is updated
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16179 >
2022-04-27 03:54:29 +00:00
Mike Blumenkrantz
c074592f3d
kopper: add DISPLAY_TARGET bind for depth buffer
...
this doesn't affect functionality and is only used for validation
in the driver
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16179 >
2022-04-27 03:54:29 +00:00
Mike Blumenkrantz
63d75ac797
kopper: copy a bunch of code for texture_from_pixmap
...
seems to work?
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16179 >
2022-04-27 03:54:29 +00:00
Mike Blumenkrantz
5e3b01c515
kopper: store whether screen has dmabuf support
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16179 >
2022-04-27 03:54:29 +00:00
Mike Blumenkrantz
c7830bf873
kopper: move drawable geometry updating up in function
...
no functional changes
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16179 >
2022-04-27 03:54:29 +00:00
Mike Blumenkrantz
e34284b7dc
kopper: always fetch and store drawable info
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16179 >
2022-04-27 03:54:29 +00:00
Sidney Just
bad73e0959
wgl: support kopper
...
this is semi transposed from the dri version of kopper and mostly ignores
what wgl tries to do in order to let zink drive everything
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16087 >
2022-04-27 02:20:06 +00:00
Sidney Just
888b4de9d4
zink: support win32 wsi
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16087 >
2022-04-27 02:20:06 +00:00
Sidney Just
5a1b1a0729
kopper: add win32 loader interface
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16087 >
2022-04-27 02:20:06 +00:00
Sidney Just
88b07e972b
zink: support VK_KHR_win32_surface
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16087 >
2022-04-27 02:20:06 +00:00
Sidney Just
38fd735a72
wgl: add zink to the list of auto-loaded drivers
...
it's a legitimate driver!
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16087 >
2022-04-27 02:20:06 +00:00
Sidney Just
3ae788a937
wgl: add a flag to determine if running on zink
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16087 >
2022-04-27 02:20:06 +00:00
Daniel Stone
68998c0c9a
ci: Also disable Windows container builds when down
...
Unlike all the other test configurations, we also want to drop the
Windows container build when our Windows machines aren't available.
Missed in !16055 .
Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16185 >
2022-04-26 21:43:55 -04:00