Mike Blumenkrantz
ce90f73eb0
zink: rework pipeline cache implementation
...
this is now a screen-based queue which can be triggered to serialize
cache updates, ensuring synchronization
the cache is on the program object, enabling incremental updates as well as
variant loading for an entire pipeline collection at once
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11595 >
2021-07-02 00:09:33 +00:00
Mike Blumenkrantz
8da06994cf
zink: merge some streamout state emission into the same draw conditional
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11667 >
2021-07-01 23:58:53 +00:00
Mike Blumenkrantz
f97fa6f5f5
zink: move line width and depth bias updating into conditional during draw
...
only do calculations when needed
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11667 >
2021-07-01 23:58:53 +00:00
Mike Blumenkrantz
22530ad9f1
zink: unify fb surface unbinding
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11666 >
2021-07-01 23:47:18 +00:00
Mike Blumenkrantz
e58eb3f269
zink: add a ref for flush resource
...
the lifetime of this needs to always be preserved
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11665 >
2021-07-01 23:04:34 +00:00
Mike Blumenkrantz
005262863f
zink: break up ctx descriptor state updating to per-type functions
...
this is a bit easier to read/manage going forward
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11664 >
2021-07-01 22:53:51 +00:00
Mike Blumenkrantz
6368f9453a
zink: unify/consolidate some barrier queuing
...
this queuing is based on bind counts, and it's all the same, so it
can mostly be combined for better reuse
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11663 >
2021-07-01 22:42:34 +00:00
Mike Blumenkrantz
2d32d123e5
zink: avoid unnecessarily rewriting gl_DrawID
...
with tc enabled, we get genuine multidraws with valid drawids, so we can
update this to reflect the new capabilities...which are the same as the old
ones except that potentially some drivers can now do direct multidraws
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11662 >
2021-07-01 22:30:55 +00:00
Jesse Natalie
02efc5a099
microsoft/compiler: Change behavior for emitting inexpressible barriers
...
If the barrier tries to apply to memory that we can't express, just
don't apply the memory portion of the barrier. Similarly, if it tries
to apply a global memory barrier at invocation level, upgrade it to
thread-group.
Reviewed-by: Enrico Galli <enrico.galli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11670 >
2021-07-01 21:05:14 +00:00
Jason Ekstrand
938ce8cdaf
docs/isl/tiling: Fix swizzle pattern for X-tiling
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11679 >
2021-07-01 14:07:42 -05:00
Georg Lehmann
adbd63e24d
lavapipe: Add a missing VKAPI_ATTR.
...
Signed-off-by: Georg Lehmann's avatarGeorg Lehmann <dadschoorse@gmail.com >
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11114 >
2021-07-01 17:09:02 +00:00
Georg Lehmann
0556173918
lavapipe: Use common default allocator.
...
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com >
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11114 >
2021-07-01 17:09:02 +00:00
Luis Felipe Strano Moraes
daf3d9e1eb
overlay_layer: add missing undef
...
reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11673 >
2021-07-01 16:42:07 +00:00
Luis Felipe Strano Moraes
7f8652d72d
meson: print information about layers being built as part of summary
...
reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11673 >
2021-07-01 16:42:07 +00:00
Erik Faye-Lund
669b6889e4
gallium/u_threaded: do not apply start twice
...
We already apply start when setting the bits in writable_buffer, so
shifting the bits up by start just makes us apply the offset twice.
Caught by Coverity.
Fixes: 988d091720 ("gallium/u_threaded: clear valid buffer range only if it's not bound for write")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11635 >
2021-07-01 11:57:49 +00:00
Samuel Pitoiset
28e1b02a6f
radv: disable DCC for DOOM 2016 and Wolfenstein II
...
Both games perform two image layout transitions with the same image
in the same pipeline barrier with UNDEFINED and this re-initializes
DCC to the uncompressed state. No ideal solution sadly. Note that
both games declare all images as CONCURRENT.
This fixes rendering issues on GFX10+ because DCC for stores is
supported and this implicitly enables DCC for concurrent.
Fixes: da166f648f ("radv: enable DCC for concurrent images on GFX10")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4927
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4607
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/11656 >
2021-07-01 11:09:22 +00:00
Dave Airlie
d9c0687a54
zink: drop getenv hacking now that gallium is fixed.
...
This drops the getenv hacks which cause problems testing multithread apps
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11643 >
2021-07-01 10:27:44 +00:00
Dave Airlie
75a8246563
gallium/sw: add sw_vk bit to avoid having to futz with env vars for lavapipe
...
lavapipe really only currently works with llvmpipe, and likely for the forseeable
future.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11643 >
2021-07-01 10:27:44 +00:00
Rhys Perry
ed123a03be
radv: enable VK_KHR_shader_subgroup_uniform_control_flow
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11626 >
2021-07-01 10:01:52 +00:00
Rhys Perry
a9c4a31d8d
aco: handle NIR loops without breaks
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11626 >
2021-07-01 10:01:52 +00:00
Juan A. Suarez Romero
fd5c787958
ci: update VK-GL-CTS to 1.2.6.2
...
v1:
- Fix typos (Emma)
- Remove needless sort (Adam)
Reviewed-by: Emma Anholt <emma@anholt.net >
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11654 >
2021-07-01 08:12:31 +00:00
Daniel Stone
0c09498fe9
Revert "CI: Disable LAVA devices for maintenance"
...
This actually came back a few hours ago.
This reverts commit b07dc014c44849af59f98afa3a1703c9d9d3cf27.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11669 >
2021-07-01 06:59:07 +00:00
Hyunjun Ko
9507705693
turnip/kgsl: new flag TU_USE_KGSL
...
There are some cases using kgsl backend on linux that is still not usual
setup though, we need to consider too.
Regarding the timeline semaphore feature, we could implement it for
the kgsl backend in the future, and probalby it should be using the
existing code in tu_drm.
See #4738 , #4907
Signed-off-by: Hyunjun Ko <zzoon@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11488 >
2021-07-01 04:22:55 +00:00
Yiwei Zhang
73c71a37f4
venus: fix AHB VkBuffer memory requirement
...
Layering AHB on top of dma_buf_fd requires venus to combine the memory
type bits internally for VkBuffer.
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Chia-I Wu <olvaffe@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11661 >
2021-07-01 03:42:24 +00:00
Yiwei Zhang
4f2b98dc40
venus: handle ahb backed VkBuffer creation properly
...
Venus needs to override the external handle type from AHB to dma buf.
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Chia-I Wu <olvaffe@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11661 >
2021-07-01 03:42:24 +00:00
Yiwei Zhang
3527146a26
venus: prepare vn_CreateBuffer for AHB
...
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Chia-I Wu <olvaffe@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11661 >
2021-07-01 03:42:24 +00:00
Yiwei Zhang
0ea726b5fd
venus: add more logs for Android WSI debugging
...
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Chia-I Wu <olvaffe@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11661 >
2021-07-01 03:42:24 +00:00
Mike Blumenkrantz
5951d2abac
lavapipe: implement EXT_vertex_input_dynamic_state
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11231 >
2021-07-01 00:37:08 +00:00
Mike Blumenkrantz
87b089c711
lavapipe: hook up some bits for handling dynamic line stipple state
...
this won't actually work, but it stubs out some (functional) placeholder
code for later code to build on
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11231 >
2021-07-01 00:37:08 +00:00
Thomas H.P. Andersen
85de630273
anv: remove dead code
...
The unused bo_flags here is a leftover from the past. A similar
setup of bo_flags is now performed within anv_device_alloc_bo
via a call to anv_bo_alloc_flags_to_bo_flags.
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11645 >
2021-06-30 22:34:42 +00:00
Emma Anholt
4300853edc
freedreno: Flush the shadowed resource's write batch up front.
...
This simplifies my mental model of the swapping/blit process for resource
shadowing.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11544 >
2021-06-30 21:39:11 +00:00
Emma Anholt
88161ced8d
freedreno: Swap needs_ubwc_clear when shadowing.
...
The destination of the upcoming blit (the old rsc struct that houses the
fresh BO) wouldn't have its ubwc cleared first, which if it got
unfortunate data in a recycled BO could lead to blit failures.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11544 >
2021-06-30 21:39:11 +00:00
Emma Anholt
ed1f1dea28
freedreno: Stop manually marking blit dst buffers as valid.
...
fd_batch_resource_write() does this already.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11544 >
2021-06-30 21:39:11 +00:00
Emma Anholt
514aa01853
freedreno/a5xx: Make sure to mark blit read/write access in the BC.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11544 >
2021-06-30 21:39:11 +00:00
Emma Anholt
f413b30ad4
freedreno: swap ->valid when shadowing resources.
...
The valid flag indicates whether the bo has had any data written to it.
Failure to swap it meant that if for some reason we fell back to SW
mappings during the blit from shadow, the PIPE_MAP_READ staging blit would
get dropped.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11544 >
2021-06-30 21:39:11 +00:00
Emma Anholt
172082f235
freedreno: Update comments about PIPE_BUFFER shadowing.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11544 >
2021-06-30 21:39:11 +00:00
Eric Engestrom
90071dc47c
docs/release-calendar: add a few more 21.1 releases
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11660 >
2021-06-30 19:44:28 +01:00
Eric Engestrom
830ff5a697
docs: update calendar and link releases notes for 21.1.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11660 >
2021-06-30 19:38:19 +01:00
Eric Engestrom
f37e482013
docs: add release notes for 21.1.4
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11660 >
2021-06-30 19:38:00 +01:00
Rhys Perry
c094765a01
aco: remove resource flags
...
After disabling SMEM stores, nir_opt_access() now does the same analysis
and we don't need this anymore. Doing it in isel is also too late if we
want to lower descriptor loads in NIR.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11652 >
2021-06-30 19:07:12 +01:00
Emma Anholt
fcc41b0631
i915g: Set up the cube map texture wrap modes.
...
There are HW limits on what you're allowed to do. No change on dEQP, but
one less thing for me to worry about with our busted cubes.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11648 >
2021-06-30 17:42:56 +00:00
Emma Anholt
25ce136d23
i915g: Add curly braces for normal mesa style (and helps clang-format)
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11648 >
2021-06-30 17:42:56 +00:00
Emma Anholt
afe627ea70
i915g: Delete redundant i915_hw_sampler_views atom.
...
The i915_hw_samplers atom already updated both samplers and maps, since
both samplers and maps depend on parts of both the gallium sampler state
and the sampler view. Just move the samplers+views atom down to the
bottom of the file for legibility, and delete the views-only one.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11648 >
2021-06-30 17:42:56 +00:00
Emma Anholt
7e75b1ca49
i915g: Fix FS debug dumping for declarations.
...
Samplers have a type, and non-samplers have a destination writemask.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11648 >
2021-06-30 17:42:56 +00:00
Emma Anholt
99fccbee48
i915g: Add the nice cube map layout comments from i915c.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11648 >
2021-06-30 17:42:56 +00:00
Emma Anholt
33e9143faf
i915g: Finish the uint -> uint32_t conversion.
...
My sed job missed a few.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11648 >
2021-06-30 17:42:56 +00:00
Rob Clark
525be27326
freedreno/a6xx: Fix framebuffer_barrier crash
...
This is emitting cmdstream, it should take the submit lock to (a) ensure
we actually have a batch, and (b) prevent it from being flushed from
under it. This was overlooked in the conversion.
Fixes: 02298ed1fc ("freedreno: Add submit lock")
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11658 >
2021-06-30 17:17:39 +00:00
Roman Stratiienko
f85d3113b2
egl: android: add IMapper@4 metadata API buffer_info getter
...
Starting from Android-11 Google introduces generalized API
to access buffer information. This API is a part of IMapper@4 HAL.
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com >
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6045 >
2021-06-30 16:50:44 +00:00
Roman Stratiienko
5d3e64f105
egl: android: prepare code for adding more buffer_info getters
...
Instead of calling droid_create_image_ for every gralloc implementation,
create struct buffer_info which contains all required field for invoking
createImageFromDmaBufs2() and let the getters to fill this structure.
Since createImageFromDmaBufs2() is called now only once, the code looks
cleaner and more robust.
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com >
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6045 >
2021-06-30 16:50:44 +00:00
Yevhenii Kolesnikov
974c58b317
intel: fix leaking memory on shader creation
...
ralloc_adopt takes care of all the shader's children, but shader itsel ends up
orphaned and never gets free'd.
Fixes: ef5bce9253 ("intel: Drop the last uses of a mem_ctx in nir_builder_init_simple_shader().")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4951
Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11651 >
2021-06-30 19:34:56 +03:00