summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-02-06HACK: iris: Dump stack when pinning memory outside of sync region.iris-cache-trackerFrancisco Jerez1-1/+8
2020-02-06WIP: iris: Replace unconditional QBO flush with iris_dirty_for_history().Francisco Jerez1-7/+2
2020-02-06WIP: iris: Remove remaining history flushes.Francisco Jerez3-59/+3
2020-02-06WIP: iris: Demote all callers of iris_flush_and_dirty_for_history() to ↵Francisco Jerez4-36/+5
iris_dirty_for_history().
2020-02-06WIP: iris: Make sure a bound resource is flushed after iris_dirty_for_history.Francisco Jerez2-3/+19
2020-02-06WIP: iris: Insert buffer-local memory barriers for SSBO reads and writes.Francisco Jerez2-1/+18
2020-02-06WIP: iris: Insert buffer-local memory barriers for UBO reads.Francisco Jerez2-2/+22
2020-02-06WIP: iris: Insert DATA domain memory barrier for image reads and writes.Francisco Jerez1-1/+1
2020-02-06WIP: iris: Add read-write domain for data cache.Francisco Jerez3-0/+9
2020-02-06WIP: iris: Insert buffer-local memory barriers for VF reads.Francisco Jerez1-0/+8
2020-02-06WIP: iris: Annotate all BO uses through VF cache domain.Francisco Jerez1-5/+5
2020-02-06WIP: iris: Add read-only domain for VF cache.Francisco Jerez3-2/+11
2020-02-06WIP: iris: Insert buffer-local memory barriers for indirect draw parameters.Francisco Jerez1-3/+4
2020-02-06WIP: iris: Remove iris_flush_depth_and_render_caches().Francisco Jerez2-28/+0
2020-02-06WIP: iris: Emit single render target flush PIPE_CONTROL on format mismatch.Francisco Jerez1-1/+4
2020-02-06WIP: iris: Open-code iris_cache_flush_for_read() and ↵Francisco Jerez3-23/+12
iris_cache_flush_for_depth().
2020-02-06WIP: iris: Remove render cache set-based synchronization.Francisco Jerez5-58/+4
2020-02-06WIP: iris: Remove depth cache set tracking and synchronization.Francisco Jerez6-38/+2
2020-02-06WIP: iris: Perform compute predraw flushes from compute batch.Francisco Jerez1-7/+2
2020-02-06WIP: iris: Remove batch argument of iris_resource_prepare_access() and friends.Francisco Jerez5-24/+22
The resolves performed by this function are only expected to work from the render batch, so make sure we use it independently of the batch the caller wants to use. This function provides no synchronization guarantees anyway, the caller is expected to insert any cache flushing and synchronization required for the resolved surface to be visible to the target batch.
2020-02-06WIP: iris: Insert buffer barrier in existing cache flush helpers.Francisco Jerez1-0/+6
2020-02-06WIP: iris: Implement buffer-local memory barrier based on cache coherency ↵Francisco Jerez2-0/+72
matrix.
2020-02-06WIP: iris: Update cache coherency matrix on PIPE_CONTROL.Francisco Jerez1-0/+35
2020-02-06WIP: iris: Introduce cache coherency matrix for batch-local memory ordering.Francisco Jerez2-0/+26
2020-02-06WIP: iris: Report use of any in-flight buffers on first draw call after sync ↵Francisco Jerez2-4/+8
boundary.
2020-02-06WIP: iris: Annotate all BO uses with domain and sequence number information.Francisco Jerez7-91/+157
2020-02-06WIP: iris: Bracket batch operations which access memory within sync regions.Francisco Jerez5-0/+73
2020-02-06WIP: iris: Add infrastructure to partition batch into sync boundaries.Francisco Jerez3-0/+41
2020-02-05WIP: iris: Add batch-local synchronization book-keeping to iris_bo.Francisco Jerez1-0/+30
2020-02-03Revert "gitlab-ci: disable a630 tests as mesa-cheza is down"Fritz Koenig1-6/+6
This reverts commit f38851d84c583b1c62ea95edbc42eb5e2ad14fa8 Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3687> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3687>
2020-02-03clover: Use explicit conversion from llvm::StringRef to std::stringJan Vesely2-2/+3
Fixes build after llvm 777180a32b61070a10dd330b4f038bf24e916af1 ("[ADT] Make StringRef's std::string conversion operator explicit") CC: <mesa-stable@lists.freedesktop.org> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
2020-02-03zink: disallow depth-stencil blits with format-changeErik Faye-Lund1-0/+4
The Vulkan spec says this about vkCmdBlitImage: "No format conversion is supported between depth/stencil images. The formats must match." So yeah, let's stop trying to do this. Reviewed-by: Dave Airlie <airlied@redhat.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3681> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3681>
2020-02-03zink: be more careful about the mask-checkErik Faye-Lund1-2/+4
We currently disallow blits that we can support. Let's be more accurate when checking the mask. Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3681>
2020-02-03panfrost: Fix the damage box clamping logicBoris Brezillon1-0/+2
When the rendering are is not covering the whole FBO, and the biggest damage rect is empty, we can have damage.max{x,y} > damage.min{x,y}, which leads to invalid reload boxes. Fixes: 65ae86b85422 ("panfrost: Add support for KHR_partial_update()") Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
2020-02-03pan/midgard: Stop leaking instruction objects in mir_schedule_alu()Boris Brezillon1-18/+16
Allocate those instructions with ralloc() instead of using mem_dup. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
2020-02-03pan/midgard: Don't check 'branch && branch->writeout' twice in ↵Boris Brezillon1-1/+1
mir_schedule_alu() There's a writeout bool storing the result of this test. Use it instead of duplicating the test. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
2020-02-03pan/midgard: Lower bitfield extract to shiftsBoris Brezillon1-0/+1
Let's lower bitfield extract to shifts until we figure out if it can be natively supported. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
2020-02-03pan/midgard: Make sure we pass the right RT id to emit_fragment_store()Boris Brezillon1-1/+26
nir_intrinsic_base() is assigned nir_variable.data.driver_location, which is assigned a unique ID based on the variable position in the shader variable list. There's no guarantee that this position will match the RT id we want to pass to emit_fragment_store(). Add a search_var() helper to retrieve a nir_variable based on its driver location, so we can pass the right RT value to emit_fragment_store(). We also make sure the shader output is color, since emit_fragment_store() is not ready for depth/stencil stores yet. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
2020-02-03pan/midgard: Add an enum to describe the render targetsBoris Brezillon1-1/+9
We are about to add a special ZS render target, let's add a enum so we can easily know which render target we're dealing with. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3676>
2020-02-03util/os_socket: Include unistd.h to fix build errorBernd Kuhls1-0/+1
Fixes In file included from ../src/util/os_socket.c:8: ../src/util/os_socket.h:26:1: error: unknown type name ‘ssize_t’; did you mean ‘size_t’? ssize_t os_socket_recv(int socket, void *buffer, size_t length, int flags); seen with gcc version 8.3.0 (Buildroot 2019.11) and uClibc 1.0.32. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Fixes: ef5266ebd50e7fa65c56 ("util/os_socket: Add socket related functions.") Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3659> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3659>
2020-02-03gitlab-ci: disable a630 tests as mesa-cheza is downEric Engestrom1-6/+6
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3677> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3677>
2020-02-02nv50: report max lod bias of 15.0Ilia Mirkin1-1/+1
The blob returns 15, the state creation code clamps it to 15, but since the dawn of time we've returned 4.0. Setting this to 15 also fixes GTF-GL33.gtf21.GL3Tests.texture_lod_bias.texture_lod_bias_clamp_m_le_M which is sensitive to these limits. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
2020-02-02egl: put full path to libEGL_mesa.so in GLVND jsonEric Engestrom3-8/+36
This is useful when installing to a non-standard path. glvnd_icd.py copied & adapted from src/intel/vulkan/anv_icd.py Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Acked-by: Matt Turner <mattst88@gmail.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3038> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3038>
2020-02-02radv: Allow non-dedicated linear images and buffer.Bas Nieuwenhuizen2-6/+13
Requested for virtualized Vulkan as they need to export memory to map it. Since radeonsi and the kernel assume an image without metadata is linear, this should work just fine. Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3583> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3583>
2020-02-02pan/midgard: Implement mixed-type constant packingAlyssa Rosenzweig1-52/+47
Lot of churn but mostly just specializes types per source instead of per instruction. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3653> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3653>
2020-02-02pan/midgard: Break out one-src read_componentsAlyssa Rosenzweig2-23/+31
For constant packing, this is interesting to break down further. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3653>
2020-02-02panfrost: Fix non-debug buildsIcecream951-0/+1
For non-debug builds, where assertions are compiled out, GCC complains about the end of the non-void function panfrost_translate_channel_width being reached. Fixes: 226c1efe9a8 ("panfrost: Add more info to some assertions") Reported-by: Piotr Oniszczuk Suggested-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3665> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3665>
2020-02-02anv/blorp: Use the correct size for vkCmdCopyBufferToImageJason Ekstrand1-0/+8
Now that we're using an uncompressed format for the buffer, we have to scale down the dimensions we pass into BLORP when doing buffer->image copies. Fixes: dd92179a72 "anv: Canonicalize buffer formats for image/buffer..." Closes: #2452 Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3664> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3664>
2020-02-02VERSION: bump after 20.0 branch pointEric Engestrom1-1/+1
Closes: #2457
2020-01-31lima: Fix build with GCC 10.Vinson Lee1-1/+1
This patch fixes this build error with GCC 10. /usr/bin/ld: src/gallium/drivers/lima/liblima.a(lima_context.c.o):src/gallium/drivers/lima/lima_util.h:32: multiple definition of `lima_dump_command_stream'; src/gallium/drivers/lima/liblima.a(lima_screen.c.o):src/gallium/drivers/lima/lima_util.h:32: first defined here /usr/bin/ld: src/gallium/drivers/lima/liblima.a(lima_resource.c.o):src/gallium/drivers/lima/lima_util.h:32: multiple definition of `lima_dump_command_stream'; src/gallium/drivers/lima/liblima.a(lima_screen.c.o):src/gallium/drivers/lima/lima_util.h:32: first defined here /usr/bin/ld: src/gallium/drivers/lima/liblima.a(lima_draw.c.o):src/gallium/drivers/lima/lima_util.h:32: multiple definition of `lima_dump_command_stream'; src/gallium/drivers/lima/liblima.a(lima_screen.c.o):src/gallium/drivers/lima/lima_util.h:32: first defined here /usr/bin/ld: src/gallium/drivers/lima/liblima.a(lima_bo.c.o):src/gallium/drivers/lima/lima_util.h:32: multiple definition of `lima_dump_command_stream'; src/gallium/drivers/lima/liblima.a(lima_screen.c.o):src/gallium/drivers/lima/lima_util.h:32: first defined here /usr/bin/ld: src/gallium/drivers/lima/liblima.a(lima_submit.c.o):src/gallium/drivers/lima/lima_util.h:32: multiple definition of `lima_dump_command_stream'; src/gallium/drivers/lima/liblima.a(lima_screen.c.o):src/gallium/drivers/lima/lima_util.h:32: first defined here /usr/bin/ld: src/gallium/drivers/lima/liblima.a(lima_util.c.o):src/gallium/drivers/lima/lima_util.h:32: multiple definition of `lima_dump_command_stream'; src/gallium/drivers/lima/liblima.a(lima_screen.c.o):src/gallium/drivers/lima/lima_util.h:32: first defined here /usr/bin/ld: src/gallium/drivers/lima/liblima.a(lima_texture.c.o):src/gallium/drivers/lima/lima_util.h:32: multiple definition of `lima_dump_command_stream'; src/gallium/drivers/lima/liblima.a(lima_screen.c.o):src/gallium/drivers/lima/lima_util.h:32: first defined here Fixes: d71cd245d744 ("lima: Rotate dump files after each finished pp frame") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Qiang Yu <yuq825@gmail.com>