Dylan Baker
aef2c5cb70
.pick_status.json: Mark 0e49ef5c9f as backported
2022-05-10 20:08:31 -07:00
Dylan Baker
da84a8ffe7
.pick_status.json: Mark 9a412c10b7 as backported
2022-05-10 20:08:29 -07:00
Dylan Baker
4b6b9e1889
.pick_status.json: Mark 5ff3fa5912 as backported
2022-05-10 20:08:26 -07:00
Dylan Baker
7533fc00df
.pick_status.json: Mark 6317f88b04 as backported
2022-05-10 20:08:26 -07:00
Dylan Baker
00e217bf2e
.pick_status.json: Update to 14b1ed1ce1
2022-05-10 20:07:24 -07:00
Mike Blumenkrantz
be08a23dc0
zink: ci regressions
2022-05-10 22:12:31 -04:00
Mike Blumenkrantz
0be76e7ec1
zink: semi-handle 1D sparse texture rewrites for drivers that don't support them
...
nvidia can't do this, but also nothing uses it, so I've gone ahead and
done the bare minimum here to make cts pass
I think the work to do the shader rewrites should be easy, but without a test
case, I see no point in spending the time for it
Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16100 >
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
2493985aae
zink: bump number of image binds that can be batched to 50
...
this is big enough to batch all the cts binds into a single submit
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16100 >
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
7e0055e4a0
zink: fix multisample conditional in sparse image query
...
you stare at the code for so long without truly seeing it
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16100 >
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
d26843de8b
zink: set all usage flags when querying sparse features
...
they're allocated through TexStorage, so they can do everything
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16100 >
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
e40dd33d1a
zink: pass sparse bind bo offset through for texture binds
...
should fix partial binding with textures
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16100 >
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
a0771d809e
zink: pass sparse backing page offset to binding function
...
this is the offset of the memory block being bound
cc: mesa-stable
fixes:
KHR-GL46.sparse_buffer_tests.BufferStorageTest
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16100 >
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
7b0d367735
zink: create images with modifiers any time there is an import handle
...
there's no way to pass in a plane offset otherwise, so this is necessary
in order to handle yuv imports
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
1ed9c24fb9
zink: rebind resources for export as needed
...
exporting all resources breaks suballocation, so instead just use the
existing heuristics and then forcibly rebind resources as needed
for this functionality
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
77127ce4ae
zink: add a LINEAR drm modifier if rebinding to add dmabuf export
...
this needs to have some kind of modifier, so be conservative here
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
0c9f8d3d05
zink: force memory exports if dmabuf bind is specified
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
93d28694ce
zink: fix conditional for modifier usage
...
the shared check here was inaccurate; if the resource has dmabuf
export, then use modifiers
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
c425166bc9
zink: add a bind flag to indicate a resource is exported as a dmabuf
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
3d82b71516
zink: unset pipe_resource::next pointers when creating resource copies
...
this otherwise walks the chain and destroys all the resources
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
1e2b6e131e
zink: always check for fb rebinds when starting renderpass
...
ensure the right image is being used
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
d3095f5cf0
Revert "zink: export fd info for all 2d images"
...
This reverts commit fda7371b4cfc5a15f2207f5165f3a8e14442a522.
this breaks suballocation
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
2c529a9ab9
zink: create a copy context for the screen on init
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
89d94335e4
zink: introduce copy contexts
...
this is for creating a context which is only used for copying images
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
907c1bab60
zink: break out resource bind-adding into separate function for reuse
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
2920e0d843
zink: add a flag to indicate whether a resource is exportable
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
d39eafe93d
zink: outdent some code
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
5068d98157
zink: remove unused headers/struct members/linkage
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
6f0a7ae37b
kopper: remove unused zink include
...
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16441 >
2022-05-10 21:45:27 -04:00
Mike Blumenkrantz
ca9c3ece53
zink: use descriptor surfaces for notemplates ref updating
...
basically the same codepath as samplerviews now, and fixes
some issues with invalid mem access
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16167 >
2022-05-10 21:45:19 -04:00
Mike Blumenkrantz
efc5ecee9c
zink: add more image usage for null surfaces
...
without null descriptor features, these can be used for all sorts of things
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16167 >
2022-05-10 21:21:04 -04:00
Mike Blumenkrantz
f8fc9d4c09
zink: fix null buffer/surface formats
...
4-component formats are needed here in order to return the correct
alpha value in invalid load scenarios
cc: mesa-stable
fixes:
spec@arb_shader_image_load_store@invalid
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16167 >
2022-05-10 21:21:04 -04:00
Mike Blumenkrantz
0ffaf1002d
lavapipe: enqueue pipeline destruction
...
this avoids races in llvmpipe related to modification of per-context shader
variant lists, which causes massive amounts of flakiness in ci
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16331 >
2022-05-10 21:20:57 -04:00
Mike Blumenkrantz
331bc00d77
llvmpipe: never infer early zs tests when fbfetch is active
...
this breaks zs fbfetch
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16346 >
2022-05-10 21:20:51 -04:00
Mike Blumenkrantz
76ca02ff7b
nir/gather_info: flag fbfetch on subpass image loads
...
might not be able to determine which output is being read, but these
are definitely fbfetch uses (from lavapipe)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16346 >
2022-05-10 21:20:51 -04:00
Mike Blumenkrantz
8b806828ad
kopper: pass the current context to dri_flush
...
passing the drawable's context leads to desync and crashing if the app
is using multiple threads and multiple contexts
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16351 >
2022-05-09 14:19:37 -04:00
Mike Blumenkrantz
ef86acd25c
kopper: invalidate drawables when resizing textures in place
...
this guarantees that swapchains shared between contexts will stay
in sync
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16351 >
2022-05-09 14:19:37 -04:00
Georg Lehmann
b78272daa5
wsi/x11: Don't leak xcb_get_geometry_reply_t.
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6443
Fixes: 44a20baeb8 ("wsi/x11: Avoid using xcb_wait_for_special_event in FIFO modes")
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16384 >
2022-05-09 14:18:47 -04:00
Samuel Pitoiset
45cbab0442
radv: disable instance packing to fix pipeline query stats
...
RDNA2 is affected by a hardware bug when instance packing is enabled
for adjacent primitive topologies and instance_count > 1, pipeline
stats generated by GE are incorrect. It needs to be applied for
indexed and non-indexed draws.
This is based on PAL waDisableInstancePacking.
This fixes KHR-GL46.pipeline_statistics_query_tests_ARB.* with Zink.
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6257
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15877 >
(cherry picked from commit 9348620946 )
2022-05-05 11:13:09 -07:00
Dylan Baker
718a8223ff
.pick_status.json: Update to 17c98393f9
2022-05-05 11:13:08 -07:00
Mike Blumenkrantz
b929e21fbe
lavapipe: lower quad_broadcast intrinsics
...
not supported by gallivm
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16301 >
2022-05-05 14:05:37 -04:00
Adam Jackson
b312721d87
egl/kopper: Hook up eglSwapInterval
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15800 >
2022-05-05 14:05:37 -04:00
Adam Jackson
cbc697d2d6
glx/kopper: Enable GLX_EXT_swap_control etc.
...
This requires newly tracking the max swap interval since kopper can't do
abs(interval) > 1 yet.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15800 >
2022-05-05 14:05:37 -04:00
Adam Jackson
533117777f
kopper: Grow a swap interval API
...
We take a slight liberty here by allowing 0 to mean either MAILBOX or
IMMEDIATE, since Wayland (at least) doesn't have a true IMMEDIATE mode
at least MAILBOX won't throttle to vblank.
This only correctly handles intervals of 0 or 1 at the moment.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15800 >
2022-05-05 14:05:37 -04:00
Mike Blumenkrantz
f96b0d640b
zink: add supported present modes to kopper displaytarget
...
for use later
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16193 >
2022-05-05 14:05:36 -04:00
Adam Jackson
f857eed827
wsi/x11: Avoid using xcb_wait_for_special_event in FIFO modes
...
If the window is destroyed from underneath us while we happen to be in
xcb_wait_for_special_event, there's no recovery. The special event will
never match because the XID is no longer valid, and Present doesn't have
an in-band DestroyNotify. We're going to work around this by using the
poll API instead. If we get an event we short-circuit back to the top of
the "wait for available image" loop, so we drain the whole special event
queue before any other logic. Which means if we run out of special
events (and the connection and swapchain are still valid) that we
_don't_ have enough images available, so to hurry along any events that
the X server hasn't flushed out yet we call GetGeometry on the
swapchain's window. As a side effect this verifies that the window is
still alive.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15800 >
2022-05-05 13:56:43 -04:00
Jason Ekstrand
aab9d6df50
vulkan/wsi: Set the right stage flags for semaphore waits
...
This is currently technically broken for compute.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Cc: mesa-stable@lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333 >
(cherry picked from commit 233be8ee59 )
2022-05-04 16:05:57 -07:00
Lionel Landwerlin
ca8af9c529
anv: remove static_state_mask
...
This is now unnecessary. Either an instruction is never dynamic and
it's emitted in genX_pipeline.c or it can be and it's emitted in
genX_cmd_buffer.c/gfx8_cmd_buffer/gfx7_cmd_buffer.c
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16220 >
(cherry picked from commit 797a8850b9 )
2022-05-04 16:05:53 -07:00
Lionel Landwerlin
5346b6aac4
anv: don't emit 3DSTATE_VF_TOPOLOGY in pipeline batch
...
v2: drop primitive_topology = 0xffffffff (Tapani)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16220 >
(cherry picked from commit 74a27a6ccb )
2022-05-04 16:05:46 -07:00
Lionel Landwerlin
1cd83f0311
anv: don't emit 3DSTATE_DEPTH_BOUNDS in pipeline batch
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16220 >
(cherry picked from commit 48229d11ba )
2022-05-04 16:05:38 -07:00
Lionel Landwerlin
0dcd1ac226
anv: don't emit 3DSTATE_BLEND_STATE_POINTERS in pipeline batch
...
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16220 >
(cherry picked from commit 76e735d09c )
2022-05-04 16:05:31 -07:00