pal1000
6643bfd3e4
ci/MinGW: LLD is not really used anywhere
...
Fixes: bbfd6dfe
("ci: Prepare the container for building all mesa components with mingw under linux")
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17766 >
2022-08-01 08:52:08 +00:00
pal1000
65795e7658
ci/MSVC: LLD is not really used anywhere
...
Fixes: 0f46a319
("CI: Windows: Build LLVM and llvmpipe")
Reviewed-by: Jose Fonseca <jfonseca@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17766 >
2022-08-01 08:52:08 +00:00
Gert Wollny
33765aa92a
r600/sfn: Enable NIR for pre RG hardware
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
d7a3f17a79
r600/sfn: Advertise support for fmulz
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
14ab267c76
r600/sfn: Disable FP64 for pre-CEDAR
...
There is no point in trying to get the softfp to work here,
since these cards don't support tesselation shaders, they will
never get OpenGL 4.0.
v2: Fix formatting (Filip)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
13b1069a87
r600/sfn: Handle pre-EG buffer fetch
...
v2: Fix formatting (Filip)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
325eaf6479
r600/sfn: Set trans flag for flt_to_int on pre-EG
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
a2cb85800b
r600/sfn: Handle non-compressed MS texel fetch
...
v2: Fix formatting (Filip)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
82437c69c4
r600/sfn: Handle primitive input handling for pre-EG
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
be7bd71a86
r600/sfn: Handle pre-EG GS input fetch
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
675348e65e
r600/sfn: Handle buffer size query on pre-EG
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
42f2e82fe0
r600/sfn: Handle chipclass with kcache allocation
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:28 +00:00
Gert Wollny
3c7368de56
r600/sfn: Handle slot differences between pre-EG and EG
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:27 +00:00
Gert Wollny
dac627f6e0
r600/sfn: Prepare StreamOut instruction for pre EG opcodes
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:27 +00:00
Gert Wollny
fbe997049d
r600/sfn: Support pre-EG style FS input
...
v2: Fix formatting
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:27 +00:00
Gert Wollny
8f96cd4db0
r600/sfn: Factor out fragement shader class for EG
...
Pre-EG hardware handles the FS inputs differently, so we
need to prepare a different code path.
v2: Make m_interolators_used private (Filip)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Filip Gawin <filip@gawin.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822 >
2022-08-01 08:44:27 +00:00
Gert Wollny
f9703ac34d
virgl: honor host caps in shader cash sha evaluation
...
This is needed because when we switch between GLES and GL on the host,
we have to lower atomics to ssbo, and with that the shaders can't be
pulled from the cache anymore. Likewise when we move the disk image with
a shader cache to a different host, other features might change that
will need lowering. To avoid using stale shaders in this case, merge the
caps into into the shader cache sha.
Fixes: d6db4d2e08
virgl: Add simple disk cache
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17798 >
2022-08-01 08:34:12 +00:00
Eli Schwartz
5780ea90c4
meson: add various generated header dependencies as order-only deps
...
https://mesonbuild.com/FAQ.html#how-do-i-tell-meson-that-my-sources-use-generated-headers
A few locations had underspecified deps on the header files, and this
caused builds to fail given sufficient parallelism.
Fixes #6531
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16659 >
2022-07-31 18:10:15 +00:00
Yonggang Luo
df242a2c06
auxiliary: Remove pipe_tsd
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:12 +00:00
Yonggang Luo
af1fe5c2c8
glx: Remove usage of pipe_tsd_set and pipe_tsd_get
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:12 +00:00
Yonggang Luo
6af5cadef9
meson: Remove pre_args += '-DUSE_ELF_TLS'
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:12 +00:00
Yonggang Luo
365253605a
util: Remove usage of USE_ELF_TLS in u_thread.h
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:12 +00:00
Yonggang Luo
aa0b857544
glx: Remove usage of USE_ELF_TLS
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:12 +00:00
Yonggang Luo
a055f285f5
loader: Remove usage of USE_ELF_TLS in loader.c
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:12 +00:00
Yonggang Luo
62a68481fa
mapi: Remove usage of USE_ELF_TLS
...
After commit c47fd3dc00
("windows: Use TLS context/dispatch with shared-glapi")
USE_ELF_TLS are always defined by
pre_args += '-DUSE_ELF_TLS'
So we can remove it safety
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:11 +00:00
Yonggang Luo
bf2cd50019
egl: Remove usage of USE_ELF_TLS macro
...
After commit c47fd3dc00
("windows: Use TLS context/dispatch with shared-glapi")
USE_ELF_TLS are always defined by
pre_args += '-DUSE_ELF_TLS'
So we can remove it safety
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:11 +00:00
Yonggang Luo
c8d296ae4b
meson: Remove usage of use_elf_tls
...
After c47fd3dc00
("windows: Use TLS context/dispatch with shared-glapi")
use_elf_tls are always setting to true, so we can remove it safety
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:11 +00:00
Yonggang Luo
6bde428c0a
mapi: Trim trailing spaces in stub.c and u_current.c
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213 >
2022-07-29 23:59:11 +00:00
Yiwei Zhang
71a0ae2796
anv: enable VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM for modifier support
...
This is a missed format to properly support media interop for Android.
Currently only used when layering GL atop Vulkan on Android, but will
be used directly with Vulkan when the platform default renderer has
switched to skiavk in modern Android.
Test: CtsMediaTestCases and CtsVideoTestCases with angle on venus on anv
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Chad Versace <chadversary@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17808 >
2022-07-29 23:24:15 +00:00
Iván Briano
a05fcc94c2
anv: assert inheritance_info is not NULL
...
Makes some static analysis tools happier.
Reviewed-by: Mark Janes <markjanes@swizzler.org >
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17809 >
2022-07-29 22:50:21 +00:00
Yonggang Luo
1bb92a3178
util: Disable tests/sparse_array_test.cpp on MacOS as it's too slow
...
[----------] 1 test from SparseArrayTest
[ RUN ] SparseArrayTest.Multithread
[ OK ] SparseArrayTest.Multithread (105624 ms)
[----------] 1 test from SparseArrayTest (105624 ms total)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Acked-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17802 >
2022-07-29 21:38:01 +00:00
Mark Janes
dc8df485e9
intel/compiler: reorder shader cache keys to minimize padding
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17749 >
2022-07-29 20:45:25 +00:00
Mark Janes
a4a4aefa03
intel/compiler: pad all data structures used by shader cache keys
...
When the compiler pads a data structure, the padded bytes will not be
initialized. Shader keys are compared with memcmp and unitialized
bytes within the structure breaks this mechanism.
Explicitly pad the structures with members, so the compiler is forced
to initialize them. Add a warning to indicate if a change to
alignment in any of the data structures requires additional padding.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17749 >
2022-07-29 20:45:25 +00:00
Mark Janes
3269a9b6a3
iris: reorder to minimize padding
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17749 >
2022-07-29 20:45:25 +00:00
Mark Janes
e6f6142c9b
iris: pad all structures used in a shader key
...
When the compiler pads a data structure, the padded bytes will not be
initialized. Shader keys are compared with memcmp and unitialized
bytes within the structure breaks this mechanism.
Explicitly pad the structures with members, so the compiler is forced
to initialize them. Add a warning to indicate if a change to
alignment in any of the data structures requires additional padding.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17749 >
2022-07-29 20:45:25 +00:00
Mark Janes
b15d0a11a4
util: define helpful macros for compiler diagnostic features
...
Suggested-by: Kenneth Graunke <kenneth@whitecape.org >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17749 >
2022-07-29 20:45:25 +00:00
Mike Blumenkrantz
e5c50ed2d4
nine: set view_mask=0
...
nine doesn't use viewids, and this breaks drivers that support it
cc: mesa-stable
Reviewed-by: Axel Davy <davyaxel0@gmail.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17792 >
2022-07-29 19:42:45 +00:00
Mike Blumenkrantz
079857720b
d3dadapter: fix sw pipe loading
...
this needs to check the env var in order to work correctly
cc: mesa-stable
Reviewed-by: Axel Davy <davyaxel0@gmail.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17792 >
2022-07-29 19:42:45 +00:00
Mike Blumenkrantz
f153ae75db
virgl: more ci flakes
...
I guess nobody is watching these?
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17806 >
2022-07-29 19:31:03 +00:00
Alejandro Piñeiro
106b33405e
vc4/v3d: stop adding NORAST when SHADERDB debug option is used
...
Right now if we use the option SHADERDB, NORAST is added
automatically. There's no comment justifying it, neither a lot of info
on the commits that added that. But I guess that the purpose is that
SHADERDB option is assumed to be used only to gather shader-db stats,
so setting setting NORAST would allow to get those dumps faster.
But adding debug options automatically can be confusing, as we could
get a behaviour that we were not expecting. At least I needed to check
why using SHADERDB was getting a black screen. And if we want to get
this behaviour, we can easily add manually the NORAST.
Finally, v3dv doesn't support NORAST right now (and we don't have
immediate plans to implement it), so it is somewhat inconsistent to
get different behaviour from the same debug option from the two
drivers.
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17788 >
2022-07-29 18:29:34 +00:00
Chia-I Wu
6929ccedff
turnip: shared_consts and push_consts are mutually exclusive
...
Skip gather_push_constants when shared consts are enabled. This makes
sure push_consts is only zero-initialized, and reserved_user_consts is
0. This saves some space in the const file.
This change also adds a few asserts and a comment to
lower_load_push_constant. Because shared consts share the same range
for all stages, we should not apply per-stage offsets in
lower_load_push_constant. It worked because nir_lower_explicit_io
always sets base to 0 for nir_var_mem_push_const and
shader->push_consts.lo was always 0 for all stages.
Fixes: 0c787d57e6
("tu: increase maxPushConstantsSize to 256.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17777 >
2022-07-29 16:22:43 +00:00
Chia-I Wu
562e5ba286
turnip: remove shared_consts from tu_compiled_shaders
...
It is set but unused. We also don't serialize/deserialize shared_consts
to/from the pipeline cache.
Fixes: e1f2cabc5e
("turnip: Change to use shared consts for PushConstants")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17777 >
2022-07-29 16:22:43 +00:00
Yonggang Luo
ae2947fbc5
ci: Building osmesa on OSX
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784 >
2022-07-29 12:57:26 +00:00
Yonggang Luo
6544cf4a2a
dri: Trim trailing space in dri/dri_util.*
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784 >
2022-07-29 12:57:26 +00:00
Yonggang Luo
9caa6bb71a
glx: Convert tab to space in applegl_glx.c
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784 >
2022-07-29 12:57:26 +00:00
Yonggang Luo
73c51b5c57
util: thread_local doesn't support to be exported on OSX
...
The linkage error is:
Undefined symbols for architecture x86_64:
"thread-local wrapper routine for _glapi_tls_Context", referenced from:
__mesa_GetActiveUniform_impl in libmesa.a(main_uniform_query.cpp.o)
Fixes: a9e2c699aa
("util/c11: Update function u_thread_create to be c11 conformance")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6756
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Acked-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784 >
2022-07-29 12:57:26 +00:00
Yonggang Luo
7d35d560ac
glx: __glX_tls_Context should use __THREAD_INITIAL_EXEC
...
Error message on OSX:
../src/glx/tests/fake_glx_screen.cpp:101:20: error: thread-local declaration of '__glX_tls_Context' with dynamic initialization follows declaration with static initialization
thread_local void *__glX_tls_Context = &dummyContext;
^
../src/glx/glxclient.h:655:36: note: previous declaration is here
extern __THREAD_INITIAL_EXEC void *__glX_tls_Context;
Fixes: be00a7c8ac
("glx: using C++11 keyword thread_local")
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784 >
2022-07-29 12:57:26 +00:00
Yonggang Luo
14bbfee3bc
gallium: Disable dri2 interface on OSX
...
Error message:
Undefined symbols for architecture x86_64:
"_dri_kms_driver_extensions", referenced from:
_swkmsCreateNewScreen in libdri.a(dri_util.c.o)
"_galliumdrm_driver_extensions", referenced from:
_dri2CreateNewScreen in libdri.a(dri_util.c.o)
ld: symbol(s) not found for architecture x86_64
Fixes: b6f7a4836a
("dri: Fill in the driver extensions for the legacy createNewScreen paths")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6519
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784 >
2022-07-29 12:57:26 +00:00
Yonggang Luo
48e72da0dd
gallium: Rename macros HAVE_PIPE_LOADER*
...
Rename macro HAVE_PIPE_LOADER_DRI to HAVE_DRI
Rename macro HAVE_PIPE_LOADER_KMS to HAVE_DRISW_KMS
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784 >
2022-07-29 12:57:26 +00:00
Yonggang Luo
98fa0c3351
gallium: Do not call to pipe_loader_sw_probe_kms when not present
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784 >
2022-07-29 12:57:26 +00:00