Ilia Mirkin
ac0b8d58b9
mesa: add interaction between compute derivatives and variable local sizes
...
This is an added interaction in NV_compute_shader_derivatives added in
Sep 2019.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu >
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4583 >
2020-04-17 13:51:11 +00:00
Karol Herbst
8c949b2aa6
st/mesa: properly guard fallback_copy_texsubimage aginst failed maps
...
Fixes random crashes in some packed_pixel GLES CTS tests
Signed-off-by: Karol Herbst <kherbst@redhat.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4592 >
2020-04-17 11:50:21 +00:00
Pierre-Eric Pelloux-Prayer
8521acd660
radeonsi: don't assume ctx is always a threaded_context
...
Fixes: dcb1e8fef8 ("radeonsi: use thread_context::bytes_mapped_limit")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4587 >
2020-04-17 11:36:20 +02:00
Daniel Stone
791134658e
Revert "CI: Disable Windows/VS2019 builds"
...
DNS is now fixed.
This reverts commit 460b8b1758d953b2b820443615d73ccdb1455b5e.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4591 >
2020-04-16 22:40:24 +00:00
Ilia Mirkin
2f009c4b49
docs: update for recently-added nvc0 features
...
Also sort while we're at it.
And add NV_pixel_buffer_object.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4599 >
2020-04-16 15:58:37 -04:00
Ilia Mirkin
6ae214ac2e
nv50,nvc0: update with latest caps
...
One notable change is that DRAW_INFO_START_WITH_USER_INDICES is enabled.
An audit of the code indicates that it should work, and a number of
piglit tests exercising glMultiDrawElements continue to function.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4520 >
2020-04-16 18:19:27 +00:00
Jason Ekstrand
029471c3c4
intel/batch_decoder: Stop printing to stdout
...
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4597 >
2020-04-16 17:26:16 +00:00
Jason Ekstrand
b8acf9a3d4
anv: Report correct SLM size
...
Fixes: d787a2d0 "anv: Implement VK_KHR_pipeline_executable_properties"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4597 >
2020-04-16 17:26:16 +00:00
Jason Ekstrand
e003104605
intel: Add _const versions of prog_data cast helpers
...
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4597 >
2020-04-16 17:26:16 +00:00
Jason Ekstrand
9b17d7caac
nir: Add some sanity assertions in opt_large_constants
...
We make some assumptions in opt_large_constants such as the size_align
function returning the obvious sizes for vectors. Now that we've got
the deref_size lying around, we may as well assert it's consistent with
our assumptions. In particular, we now assert that it really claims
booleans are 32-bit. If anyone's driver ever decides to be clever and
change this, we'll now catch the breakage earlier.
Reviewed-by: Eric Anholt <eric@anholt.net >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4468 >
2020-04-16 17:00:13 +00:00
Jason Ekstrand
33eb43349e
nir: Add an alignment to nir_intrinsic_load_constant
...
In f1883cc73d we tried to pass through alignments from load_constant
intrinsics when rewriting them to load_ubo in iris. However, those
intrinsics don't have ALIGN_MUL or ALIGN_OFFSET indices. It's easy
enough to add them. We just call the size/align function on the vector
type at the end of our deref chain and use the alignment returned from
there. It's possible we could do better by walking the whole deref
chain but this should be good enough.
Fixes: f1883cc73d "iris: Set alignments on cbuf0 and constant reads"
Closes : #2739
Reviewed-by: Eric Anholt <eric@anholt.net >
Tested-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4468 >
2020-04-16 17:00:13 +00:00
Jan Vesely
8cbeb13704
clover: Check if the detected clang libraries are usable
...
clang-cpp.so is broken in LLVM-9 and doesn't exist in LLVM<9,
however meson will find and try to use system libraries in these cases.
v2: Use helper variable to dedpulicate test code
Move second test inside the condition to avoid testing good clang-cpp twice
v3: Check for cross compilation
v4: style fixes
Fixes: ff1a3a00cb
Signed-off-by: Jan Vesely <jano.vesely@gmail.com >
Tested-by: Karol Herbst <kherbst@redhat.com >
Acked-by: Karol Herbst <kherbst@redhat.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4457 >
2020-04-16 16:29:44 +00:00
Rhys Perry
839c886b34
aco: add missing scc clobber to nir_op_unpack_32_2x16_split_y
...
The ISA doc is inconsistent whether this instruction writes SCC. It does.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4552 >
2020-04-16 17:04:53 +01:00
Rhys Perry
ac74367bef
aco: implement various 8/16-bit conversions
...
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/4552 >
2020-04-16 17:04:45 +01:00
Rafael Antognolli
0443a4a0af
iris: Enable EXT_depth_bounds_test extension.
...
It was implemented in 1df871f8ff , but to
really enable it we need to enable PIPE_CAP_DEPTH_BOUNDS_TEST.
v2: Add release notes (Ian).
Suggested-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4540 >
2020-04-16 15:28:59 +00:00
Erik Faye-Lund
daeff19608
meson: tell flex that we support c99
...
flexint.h uses stdint.h if the compiler claims to support C99. MSVC
doesn't support enough of C99 to enable this flag, but it supports
enough to keep flex happy.
Without this, we end up with *both* some flex-specific definitions as
well as our own definitions from mesa-headers, producing a slew of
compiler warnings.
Reviewed-by: Brian Paul <brianp@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577 >
2020-04-16 14:48:40 +00:00
Erik Faye-Lund
0752648a99
vbo: avoid including wingdi.h on win32
...
On Windows, main/glheader.h ends up including windows.h which in turn
includes wingdi.h unless the NOGDI macro is defined. And wingdi.h
defines a macro called "ERROR", which we end up redefining below.
To avoid a warning on the redefinition, we can define NOGDI to prevent
wingdi.h from implicitly being included.
Reviewed-by: Brian Paul <brianp@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577 >
2020-04-16 14:48:40 +00:00
Erik Faye-Lund
b55b033f76
mesa: fixup cast expression
...
This cast-expression was meant to cast the result of the terniary
expression, but it just casted the condition expression instead. Let's
correct this, to silence a compiler-warning.
Reviewed-by: Brian Paul <brianp@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577 >
2020-04-16 14:48:40 +00:00
Erik Faye-Lund
c55fc35435
util/tests: initialize variable
...
This just silences a compiler-warning about a potentially uninitialized
variable. It's not uninitialized, but it's a bit hard for the compiler
to see. So let's just initialize it to zero.
Reviewed-by: Brian Paul <brianp@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577 >
2020-04-16 14:48:40 +00:00
Erik Faye-Lund
522bb08131
wgl: silence some cast-warnings
...
These casts cause warnings on x64. We're passing integers through
pointers, which works fine.
So let's make the casts a bit more explicit, to silence that warning.
Reviewed-by: Brian Paul <brianp@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577 >
2020-04-16 14:48:40 +00:00
Erik Faye-Lund
e9ad8af6f3
meson: use override_options to change warning-level
...
This pevents MSVC from complaining about multiple warning-levels on the
command-line.
Reviewed-by: Brian Paul <brianp@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577 >
2020-04-16 14:48:40 +00:00
Jonathan Marek
2437808671
turnip: image_view rework
...
Instead of exposing various layout functions, move image-related logic
into tu_image.c and have the image_view pre-fill relevant register values.
This changes the clear/blit code to use image_view.
This will make it much easier to deal with aspect masks, in particular for
planar formats and D32_S8.
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4581 >
2020-04-16 14:04:18 +00:00
Jonathan Marek
300d0e2b80
turnip: don't limit framebuffer size to image size
...
Minor cleanup, I couldn't find anything that suggests this should be done,
and anv doesn't do it either.
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4581 >
2020-04-16 14:04:18 +00:00
Jonathan Marek
b6455e9a6a
turnip: compute render_components/srgb_cntl at renderpass creation time
...
Signed-off-by: Jonathan Marek <jonathan@marek.ca >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4581 >
2020-04-16 14:04:18 +00:00
Bas Nieuwenhuizen
d80fb02430
winsys/amdgpu: Retrieve WC flags from imported buffers.
...
Otherwise reading from an imported mapped GTT+WC linear texture
is painfully slow.
Sadly no radeon winsys implementation, as I don't know a suitable
kernel driver operation.
Hit this in vaGetImage with an image imported from minigbm (which
we are switching to allocate WC for SCANOUT images).
Cc: <mesa-stable@lists.freedesktop.org >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4542 >
2020-04-16 13:51:28 +00:00
Marek Olšák
80797edd71
st/mesa: fix a crash due to passing a draw vertex shader into the driver
...
Fixes: bc99b22a30
Closes : #2754
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4527 >
2020-04-16 13:31:46 +00:00
Daniel Stone
7a794b1de4
CI: Disable Windows/VS2019 builds
...
An update seems to have poisoned gitlab-runner, and it can no longer
resolve DNS even though the host system can.
Disable this until we can figure out what's going on.
Signed-off-by: Daniel Stone <daniels@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4589 >
2020-04-16 14:03:49 +01:00
Daniel Stone
9ecd9463de
meson: Make shared-llvm into a tri-state boolean
...
Choosing LLVM's link mode is legitimate on UNIX systems, but only static
actually really works under Windows.
Give shared-llvm a default 'auto' mode which will pick the previous
default of true (shared) on UNIX systems, but newly defaulting to false
(static) on Windows.
Signed-off-by: Daniel Stone <daniels@collabora.com >
Suggested-by: Dylan Baker <dylan@pnwbakers.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Reviewed-by: Jose Fonseca <jfonseca@vmware.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4555 >
2020-04-16 12:18:36 +00:00
Connor Abbott
0c05d46237
tu: Align GMEM resolve blit scissor
...
Even though we normally use the CP_BLIT path with resolves that aren't
aligned, there's a special case when we're resolving the entire image
and there's enough padding so that we can still use CP_EVENT_WRITE::BLIT
when the render area isn't aligned. The hardware seems to not like
unaligned scissors when not clearing, and sometimes hangs rather than
silently round the scissor. This causes hangs in e.g.
dEQP-VK.glsl.derivate.dfdx.texture.msaa4.float_highp.
There was some concern that the CP_BLIT path might use this scissor
also, but I confirmed that this isn't the case by setting it to 0 before
resolving and then noting that CP_BLIT still works (but CP_EVENT_WRITE
doesn't). Furthermore, this is actually impossible because of how the 2D
engine is set up: it gets its own pair of register banks, which can be
switched independently of the 3D register banks, so that 2D events
(CP_BLIT) normally aren't synchronized relative to 3D events
(CP_EVENT_WRITE, CP_DRAW_*, and CP_EXEC_CS) and therefore they can't
share any registers except for non-pipelined registers like RB_CCU_CNTL
that don't use the register bank mechanism at all.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4585 >
2020-04-16 12:00:22 +00:00
Erik Faye-Lund
d2e172c03f
.mailmap: add an alias for Zhongmin Wu
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
eafacdc0fa
.mailmap: add alias for Zhaowei Yuan
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
56222c13cf
.mailmap: add an alias for Yaakov Selkowitz
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
8be72b4c79
.mailmap: add an alias for Xavier Bouchoux
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
a96e1a2d9f
.mailmap: specify spelling for Wladimir J. van der Laan
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
f9e1e5857d
.mailmap: specify spelling for Vivek Kasireddy
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
47d17238dd
.mailmap: add an alias for Varad Gautam
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
55f883b8ea
.mailmap: add an alias for Vadym Shovkoplias
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
d8982ce84c
.mailmap: add an alias for Topi Pohjolainen
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
0399b4f298
.mailmap: add an alias for Tomasz Figa
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
049ce5f417
.mailmap: add an alias for Tom Stellard
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
05b2a4471c
.mailmap: add an alias for Tim Wiederhake
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
e430136cc9
.mailmap: add a couple of aliases for Timothy Arceri
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
34ab507c1f
.mailmap: add an alias for Timo Aaltonen
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:15 +00:00
Erik Faye-Lund
cb177e054a
.mailmap: add an alias for Thierry Reding
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:14 +00:00
Erik Faye-Lund
032a603e3c
.mailmap: add a couple of aliases for Suresh Guttula
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:14 +00:00
Erik Faye-Lund
6d1fe4a687
.mailmap: add a couple of aliases for Steinar H. Gunderson
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:14 +00:00
Erik Faye-Lund
5ee82189f2
.mailmap: specify spelling for Sonny Jiang
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:14 +00:00
Erik Faye-Lund
d3f36056fa
.mailmap: add an alias for Sergii Romantsov
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:14 +00:00
Erik Faye-Lund
00d9496a12
.mailmap: add an alias for Samuel Li
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:14 +00:00
Erik Faye-Lund
9a5bd1512a
.mailmap: add an alias for Rodrigo Vivi
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1999 >
2020-04-16 11:46:14 +00:00