Eric Anholt
dd899fd43e
gallium/osmesa: Fill out other format tests.
...
Move expected values/bpp into the test params, add more formats now that
we've fixed context setup so that they work.
Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:08 +00:00
Eric Anholt
0a53918f02
gallium/osmesa: Fix MakeCurrent of non-8888 contexts.
...
OSMesa is weird and you only get the type (byte/ubyte/565/etc.) at
MakeCurrent time, having only a channel order at CreateContext time. The
code was setting up a visual at CreateContext time, and then at
MakeCurrent it would fail to validate against the visual.
Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:08 +00:00
Eric Anholt
655394c6ed
gallium/osmesa: Fix a typo in the unit test's test names.
...
Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:08 +00:00
Danylo Piliaiev
75c50d0342
osmesa/tests: Cover OSMESA_RGB GL_UNSIGNED_BYTE case
...
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:08 +00:00
Danylo Piliaiev
d83abf1d37
st/mesa: Handle the rest renderbuffer formats from OSMesa
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2189
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/989
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2036
CC: <mesa-stable@lists.freedesktop.org >
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3216 >
2020-02-04 17:48:07 +00:00
Eric Engestrom
d1165ad18b
util/os_socket: fix header unavailable on windows
...
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2464
Fixes: e62c3cf350 ("util/os_socket: Include unistd.h to fix build error")
Signed-off-by: Eric Engestrom <eric@engestrom.ch >
Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com >
2020-02-04 17:33:49 +00:00
Danylo Piliaiev
36126b6211
i965: Do not set front_buffer_dirty if there is no front buffer
...
Otherwise there will be a warning:
"libEGL warning: FIXME: egl/x11 doesn't support front buffer rendering."
Happens with EGL_KHR_surfaceless_context:
eglMakeCurrent(egl_display, EGL_NO_SURFACE, EGL_NO_SURFACE, egl_context)
eglMakeCurrent(egl_display, egl_surface, egl_surface, egl_context)
glFlush() // Here will be a warning
Cc: <mesa-stable@lists.freedesktop.org >
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1525
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3628 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3628 >
2020-02-04 15:41:05 +00:00
Tomeu Vizoso
9afdcd64f2
gitlab-ci: Switch kernel for LAVA jobs to 5.5
...
All fixes we were carrying in our branch have been merged already.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
2020-02-04 15:46:34 +01:00
Alyssa Rosenzweig
162927e43c
panfrost: Use size0 when calculating the offset to a depth level
...
Previously, we were using cubemap_stride and sometimes overwriting other
BOs such as shaders.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
2020-02-04 15:46:30 +01:00
Tomeu Vizoso
64541dd698
panfrost: Only clamp the LOD to disable mipmapping when needed
...
Otherwise, we may be incrementing max_lod over the limit, causing a
DATA_INVALID_FAULT.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
2020-02-04 15:46:26 +01:00
Tomeu Vizoso
255227ecec
panfrost: Fix decoding of tiled 3D textures
...
From decoding cmd streams generated by the blob, the pointers in the
payload don't seem to include those that refer to different depth levels
when the texture is in tiled format.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3692 >
2020-02-04 15:46:06 +01:00
Erik Faye-Lund
fd27fb5113
st/mesa: use uint-result for sampling stencil buffers
...
Otherwise, we end up mismatching the result-type and the sampler-type.
Fixes: 642125edd9 ("st/mesa: use uint-samplers for sampling stencil buffers")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3680 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3680 >
2020-02-04 07:43:36 +00:00
Alyssa Rosenzweig
9cdd89a34b
pan/midgard: Remove unused variable
...
../src/panfrost/midgard/mir.c: In function ‘mir_bytemask_of_read_components_index’:
../src/panfrost/midgard/mir.c:471:18: warning: unused variable ‘mask’ [-Wunused-variable]
471 | uint16_t mask = 0;
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684 >
2020-02-04 08:24:37 +01:00
Alyssa Rosenzweig
0f3eb7989b
pan/midgard: Check for null consts
...
Valid shaders shouldn't hit this, but Coverity doesn't know that.
CID 1458029: (FORWARD_NULL)
Passing null pointer "consts" to "print_scalar_field", which dereferences it.
Tomeu: Fix name of variable
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684 >
2020-02-04 08:24:33 +01:00
Alyssa Rosenzweig
8ec4028d40
panfrost: Avoid overlapping copy
...
CID 1457486: Memory - corruptions (OVERLAPPING_COPY)
Assigning "(*attr).extra_flags = (*attr).size = 0U" to "(*attr).stride",
which have overlapping memory +locations.
Coverity.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3684 >
2020-02-04 08:24:18 +01:00
Marek Vasut
c32bd325e7
etnaviv: Destroy rsc->pending_ctx set in etna_resource_destroy()
...
Destroy rsc->pending_ctx set in etna_resource_destroy(), otherwise
the memory is allocated, never free'd, and becomes unreachable. This
fixes a memory leak.
Fixes: 9e672e4d20 ("etnaviv: keep references to pending resources")
Cc: <mesa-stable@lists.freedesktop.org >
Signed-off-by: Marek Vasut <marex@denx.de >
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3633 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3633 >
2020-02-04 06:27:19 +00:00
Kristian H. Kristensen
df6a2a7197
turnip: Be explicit about converting vk compare func to a6xx
...
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
6dd57f0e38
nir: Remove always-true assert
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
e3dfa8f4d6
glsl: Use 'using' to be explicit about visitor overloads
...
Clang has a warning about overloading virtuals that triggers when a
derived class defines a virtual function that's an overload of
function in the base class. This kind of thing:
struct chart; // let's pretend this exists
struct Base
{
virtual void* get(char* e);
};
struct Derived: public Base {
virtual void* get(chart* e); // typo, we wanted to override the same function
};
The solution is to use
using Base::get;
to be explicit about the intention to reuse the base class virtual.
We hit this a lot with out glsl ir_hierarchical_visitor visitor
pattern, so let's adds some 'using' to calm down the compiler.
See-also: https://stackoverflow.com/questions/18515183/c-overloaded-virtual-function-warning-by-clang )
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
0bc516fceb
spirv/opencl: Cast opcode up front to avoid warnings
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
67dd51606c
freedreno/fdperf: Cast away some ignored return values
...
This is developer tool, it can crash and burn if it fails to allocate.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
2be81a3bfa
nir: Make unroll pragma work on clang
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Kristian H. Kristensen
de856c6170
nir: Delete unused is_var_constant() helper
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3686 >
2020-02-04 06:03:52 +00:00
Fritz Koenig
42f7e124ca
Revert "gitlab-ci: disable a630 tests as mesa-cheza is down"
...
This reverts commit f38851d84c
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-03 21:45:16 +00:00
Jan Vesely
0ccda2ebff
clover: Use explicit conversion from llvm::StringRef to std::string
...
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-03 21:25:59 +00:00
Erik Faye-Lund
5d83314945
zink: disallow depth-stencil blits with format-change
...
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-03 21:42:52 +01:00
Erik Faye-Lund
85d4b41f68
zink: be more careful about the mask-check
...
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-03 21:42:49 +01:00
Boris Brezillon
b550b7ef3b
panfrost: Fix the damage box clamping logic
...
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: 65ae86b854 ("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-03 12:53:47 +00:00
Boris Brezillon
2b089e26bf
pan/midgard: Stop leaking instruction objects in mir_schedule_alu()
...
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-03 12:53:47 +00:00
Boris Brezillon
c7e68d8625
pan/midgard: Don't check 'branch && branch->writeout' twice in 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-03 12:53:47 +00:00
Boris Brezillon
ef89a52fe5
pan/midgard: Lower bitfield extract to shifts
...
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-03 12:53:47 +00:00
Boris Brezillon
c68cd39eb3
pan/midgard: Make sure we pass the right RT id to emit_fragment_store()
...
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-03 12:53:47 +00:00
Boris Brezillon
25946be4c4
pan/midgard: Add an enum to describe the render targets
...
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-03 12:53:47 +00:00
Bernd Kuhls
e62c3cf350
util/os_socket: Include unistd.h to fix build error
...
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: ef5266ebd5 ("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-03 10:55:44 +00:00
Eric Engestrom
f38851d84c
gitlab-ci: disable a630 tests as mesa-cheza is down
...
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-03 10:08:25 +00:00
Ilia Mirkin
a4e6270541
nv50: report max lod bias of 15.0
...
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-02 22:01:18 -05:00
Eric Engestrom
0021f7dc30
egl: put full path to libEGL_mesa.so in GLVND json
...
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-02 17:46:17 +00:00
Bas Nieuwenhuizen
d5fd8cd46e
radv: Allow non-dedicated linear images and buffer.
...
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-02 17:47:14 +01:00
Alyssa Rosenzweig
38f963226b
pan/midgard: Implement mixed-type constant packing
...
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-02 15:51:06 +00:00
Alyssa Rosenzweig
a12fe52cbc
pan/midgard: Break out one-src read_components
...
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-02 15:51:06 +00:00
Icecream95
b74212e701
panfrost: Fix non-debug builds
...
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: 226c1efe9a ("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-02 15:33:17 +00:00
Jason Ekstrand
d7fe9af620
anv/blorp: Use the correct size for vkCmdCopyBufferToImage
...
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-02 11:41:09 +00:00
Eric Engestrom
8ff613dc58
VERSION: bump after 20.0 branch point
...
Closes : #2457
2020-02-02 06:54:14 +00:00
Vinson Lee
02658df152
lima: Fix build with GCC 10.
...
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: d71cd245d7 ("lima: Rotate dump files after each finished pp frame")
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Reviewed-by: Qiang Yu <yuq825@gmail.com >
2020-01-31 19:18:58 -08:00
Rob Clark
982d61e2cd
freedreno/ir3: fix a dirty lie
...
Lies, damn lies, and leftover hacks!
We no longer hard-code these two, so fix the disasm to print the correct
values.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569 >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569 >
2020-02-01 02:40:22 +00:00
Rob Clark
752aeb7b3f
freedreno/ir3: simplify split from collect
...
In some cases we need to split components out from what was already a
collect. That was making it hard to DCE unused components of the
collect. (Ie. unused components of fragcoord, etc)
So just detect this case and skip the chained collect+split.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569 >
2020-02-01 02:40:22 +00:00
Rob Clark
8d0e7d9a4c
freedreno/ir3: create fragcoord instructions in input block
...
This was somehow working to create the instructions in a random block,
and use the value in other blocks, by dumb luck. But two-pass-RA's
better choice of register assignment causes a couple dEQPs to start
failing without this fix:
dEQP-GLES3.functional.shaders.metamorphic.bubblesort_flag.variant_1
dEQP-GLES3.functional.shaders.metamorphic.bubblesort_flag.variant_2
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569 >
2020-02-01 02:40:22 +00:00
Rob Clark
fb09020ef2
freedreno/ir3: remove unused tex arg harder
...
Just killing the SSA link isn't enough. It confuses RA, legalize,
and postsched to see a bogus unused reg.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569 >
2020-02-01 02:40:22 +00:00
Rob Clark
2ffe44ec0a
freedreno/ir3: add RA sanity check
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569 >
2020-02-01 02:40:22 +00:00
Rob Clark
2f4f46b708
freedreno/a6xx: fix lrz overflow
...
Running the complete deqp_gles2 seems to trigger an overflow in lrz
cmdstream. We skip the blit clear fast-path if there have been any
draws (so mid-batch clears of any attached buffer hit the 3d pipe).
Which means it is safe to simply discard any lrz clear rendering.
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569 >
2020-02-01 02:40:22 +00:00