Gert Wollny
9a6b11a733
r600/sfn: Fix indirect const buffer access
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6879 >
2020-09-28 18:16:28 +00:00
Gert Wollny
73c5f45191
r600/sfn: Fix interpolate at sample
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6879 >
2020-09-28 18:16:28 +00:00
Gert Wollny
a8435f70ed
r600/sfn: use fine gradient evaluation for interpolate_at_offset
...
Also pass in the interpolator x component (because the TGSI does this too)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6879 >
2020-09-28 18:16:28 +00:00
Gert Wollny
8540523610
r600/sfn: save some instructions when doing multisample on sample 0
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6879 >
2020-09-28 18:16:28 +00:00
Gert Wollny
0c5dfd294a
r600/sfn: Support group memory barrier
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6879 >
2020-09-28 18:16:28 +00:00
Gert Wollny
972dd730d9
r600/sfn: lower to scalar for some optimizations and vectortize later
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6879 >
2020-09-28 18:16:28 +00:00
Gert Wollny
d55404b39c
r600/sfn: Handle nir_op_b2b32
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6879 >
2020-09-28 18:16:28 +00:00
Gert Wollny
b2df9c2f88
r600/sfn: Fix emitting shared atomics with constant sources
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6879 >
2020-09-28 18:16:28 +00:00
Eric Anholt
e8c5f8b9d3
nir/lower_clip: Add i/o semantics for load/store intrinsics.
...
ir3 looks at the .location on its inputs for handling
non-VARYING_SLOT_POS, but our uninitialized semantics matched that and
threw a compiler assertion failure.
Fixes: 502abfce7f ("nir: save IO semantics in lowered IO intrinsics")
Reviewed-by: Connor Abbott <cwabbott0@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6716 >
2020-09-28 17:35:30 +00:00
Eric Anholt
4ed904989f
ci/freedreno: Add trace tests for glxgears, 0 A.D., and xonotic.
...
glxgears is now trimmed to not be tons of frames, and we've picked up a
couple more traces in the public repo.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6716 >
2020-09-28 17:35:30 +00:00
Eric Anholt
8538b7d270
ci/freedreno: Sort the traces in the .yml of expectations
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6716 >
2020-09-28 17:35:30 +00:00
Eric Anholt
a55dc276a3
turnip: Replace tu_log*() with mesa_log*()
...
This gets us logging on Android.
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6806 >
2020-09-28 09:14:44 -07:00
Eric Anholt
13ea7db760
mesa: Promote Intel's simple logging façade for Android to util/
...
I'm bringing up freedreno Vulkan on an Android phone, and my pains are
exactly what Chad said when working on Intel's vulkan for Android in
aa716db0f6 ("intel: Add simple logging façade for Android (v2)"):
On Android, stdio goes to /dev/null. On Android, remote gdb is even
more painful than the usual remote gdb. On Android, nothing works like
you expect and debugging is hell. I need logging.
This patch introduces a small, simple logging API that can easily wrap
Android's API. On non-Android platforms, this logger does nothing
fancy. It follows the time-honored Unix tradition of spewing
everything to stderr with minimal fuss.
My goal here is not perfection. My goal is to make a minimal, clean API,
that people hate merely a little instead of a lot, and that's good
enough to let me bring up Android Vulkan. And it needs to be fast,
which means it must be small. No one wants to their game to miss frames
while aiming a flaming bow into the jaws of an angry robot t-rex, and
thus become t-rex breakfast, because some fool had too much fun desiging
a bloated, ideal logging API.
Compared to trusty fprintf, _mesa_log[ewi]() is actually usable on
Android. Compared to os_log_message(), this has different error levels
and supports format arguments.
The only code change in the move is wrapping flockfile/funlockfile in
!DETECT_OS_WINDOWS, since mingw32 doesn't have it. Windows likely wants
different logging code, anyway.
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6806 >
2020-09-28 09:14:44 -07:00
Bas Nieuwenhuizen
78165ea3e2
radv: Record cache flushes for RGP.
...
Not doing the EOP TS cacheflush event because that break wave counting
in RGP for some reason. But the rest looks to be all there.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6550 >
2020-09-28 15:46:08 +00:00
Bas Nieuwenhuizen
cc73182152
radv: Include flushes in the barrier.
...
Since the flushes really happen on the next draw delay the barrier
end to include the flushes.
This fixes the barrier duration in RGP.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6550 >
2020-09-28 15:46:08 +00:00
Bas Nieuwenhuizen
eff6710aab
radv: Fix RGP Asic CU info for GFX10+.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6550 >
2020-09-28 15:46:08 +00:00
Bas Nieuwenhuizen
8349b82083
radv: Use correct alignment for SQTT buffer sizes.
...
Otherwise we can miss the start of the buffer, which
results in RGP missing the initial (and only) timestamp
packet and results in RGP completely ignoring the second
SE, causing messy issues and missed events.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6550 >
2020-09-28 15:46:08 +00:00
Bas Nieuwenhuizen
929aac5d35
radv: Fix emitting SQTT userdata.
...
Otherwise some marker packets were missing ...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6550 >
2020-09-28 15:46:08 +00:00
Hoe Hao Cheng
b2d042b621
zink: remove old extension infrastructure
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6789 >
2020-09-28 15:03:56 +00:00
Hoe Hao Cheng
08d51e92ae
zink: use the new, generated extension infrastructure
...
this is just a find-and-replace from screen->... to screen->info.
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6789 >
2020-09-28 15:03:56 +00:00
Hoe Hao Cheng
79c0023d19
zink: use the new extension infrastructure in device creation
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6789 >
2020-09-28 15:03:56 +00:00
Hoe Hao Cheng
0ed17a212c
zink: hook zink_device_info.py to build system
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6789 >
2020-09-28 15:03:56 +00:00
Hoe Hao Cheng
f1432fd3e2
zink: generate extension infrastructure using a python script
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6789 >
2020-09-28 15:03:56 +00:00
Samuel Pitoiset
39098a2053
nir/lower_memory_model: do not break with global atomic operations
...
Global atomics don't have an access flag.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6888 >
2020-09-28 14:47:02 +00:00
Samuel Pitoiset
de1409089c
nir/lower_memory_model: return progress when visiting instructions
...
It never returned progress=TRUE.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6888 >
2020-09-28 14:47:02 +00:00
Icecream95
756441b297
pan/mdg: Infer whether to disassemble shaders from info.internal
...
Blit shaders are now marked as internal, so remove the silent argument
from midgard_compile_shader_nir and instead use nir->info.internal to
suppress disassembling shaders.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6870 >
2020-09-28 12:25:57 +00:00
Icecream95
90eaaada0d
panfrost: Mark blit shaders as internal
...
Fixes spam of blit shader nir when NIR_PRINT=1 is set.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6870 >
2020-09-28 12:25:57 +00:00
Rhys Perry
ee073cb543
nir/load_store_vectorize: improve vectorization with identical operations
...
We might have several identical options to vectorize an entry with, but
only one might be vectorizable because of writes interfering.
An example of this is a pattern found in some CTS tests:
a = load(0)
b = load(4)
store(0, a)
store(4, b)
a = load(0)
b = load(4)
store(0, a)
store(4, b)
...
It might have attempted to vectorize the first load(0) with the second
load(4) without attempting the second load(4) when the first fails. This
changes vectorize_entries() to continue even if the first try_vectorize()
failed.
fossil-db (Navi):
Totals from 117 (0.09% of 137413) affected shaders:
SGPRs: 7040 -> 7088 (+0.68%)
CodeSize: 276504 -> 276308 (-0.07%); split: -0.08%, +0.01%
Instrs: 51152 -> 51111 (-0.08%); split: -0.09%, +0.01%
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Matt Turner <mattst88@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5415 >
2020-09-28 12:06:30 +00:00
Vinson Lee
d9c4ec9154
panfrost: Remove extra printf arguments.
...
Fix defects reported by Coverity Scan.
Extra argument to printf format specifier (PRINTF_ARGS)
extra_argument: This argument was not used by the format string: job +
32UL.
Fixes: 89fafe9e92 ("panfrost: XML-ify the fragment job descriptor")
Fixes: d289209ea6 ("panfrost: XML-ify the compute job descriptor")
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6829 >
2020-09-28 08:54:02 +00:00
Louis-Francis Ratté-Boulianne
f2b94ae085
glsl/linker: Add support for XFB varying lowering in geometry shader
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6723 >
2020-09-28 07:57:28 +00:00
Erik Faye-Lund
5bea0e88ba
docs: recognisable -> recognizable
...
Most of the docs is US English, let's stick to that.
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
b8f1075c4e
docs: url -> URL
...
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
7ee8a3a2cb
docs: gitlab -> GitLab
...
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
0894b590a4
docs: initialisation -> initialization
...
Most of the docs is US English, let's stick to that.
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
2dccdb1d4b
docs: timeplan -> time plan
...
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
9890927a84
docs: behaviour -> behavior
...
Most of our documentation is US English, so let's stick to that.
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
33180434af
docs: unecessarily -> unnecessarily
...
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
fa834fd365
docs: make two acronyms upper-case
...
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
58512ce3dc
docs: frambuffer -> framebuffer
...
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
e8c1b789aa
docs: scons -> SCons
...
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
3fffa27a3b
docs: apis -> APIs
...
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
255019340c
docs: everytime -> every time
...
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6864 >
2020-09-28 07:54:25 +00:00
Erik Faye-Lund
e48b77b5b1
docs: remove webmaster article
...
This article is out-of-date, so let's instead forward to the "About
Mesa3D.org" article on the main website. This explains where to submit
merge requests for wanted changes.
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6862 >
2020-09-28 07:51:31 +00:00
Erik Faye-Lund
d2dfbf0e66
docs: store prefixes in redirects
...
This allows us to link to articles that are using pretty-URLs without
adding an ugly "/index.html"-suffix to them.
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6862 >
2020-09-28 07:51:30 +00:00
Erik Faye-Lund
12760d0480
docs: show 'Edit on GitLab'-link
...
It's easier to contribute to the documentation if we have links to the
document on GitLab. This will allow people to easily edit docs, or to
realize where in the source-tree they are without having to search.
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6742 >
2020-09-28 07:46:33 +00:00
Erik Faye-Lund
96ac7115db
docs: escape backquote character
...
This unescaped backquote charcter confuses Sphinx, making it emit a
warning and slightly confused HTML in the end.
Let's escape it instead, to keep things sane.
Fixes: fdff24d930 ("docs: add release notes for 20.1.8")
Reviewed-by: Eric Engestrom <eric@engestrom.ch >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6863 >
2020-09-28 07:43:28 +00:00
Andreas Baierl
92831412d9
lima: set clear depth value to 0x00ffffff as default
...
According to the specs, the initial depth value for a
depth buffer clear is 1. Use 0x00ffffff like the blob does.
We can remove setting this value in lima_clear, because it's
set during job creation now.
Fixes the following dEQP tests:
dEQP-GLES2.functional.fbo.render.shared_depthbuffer.rbo_rgb565_depth_component16
dEQP-GLES2.functional.fbo.render.shared_depthbuffer.rbo_rgb5_a1_depth_component16
dEQP-GLES2.functional.fbo.render.shared_depthbuffer.rbo_rgb4_depth_component16
dEQP-GLES2.functional.fbo.render.shared_depthbuffer.tex2d_rgba_depth_component16
dEQP-GLES2.functional.fbo.render.shared_depthbuffer.tex2d_rgb_depth_component16
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com >
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6842 >
2020-09-28 07:35:07 +00:00
Mauro Rossi
9a221095d2
android: pan/bi: fix typo in bifrost_gen_disasm.c gen rules
...
Gen rules were erroneusly named as bifrost_gen_disasm*s*
This patch fixes them
Fixes: 792b51713b ("android: pan/bi: Use new disassembler")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6873 >
2020-09-28 09:19:46 +02:00
Boris Brezillon
2e9599b34d
panfrost: Fix bifrost tiler job emission
...
The tiler descriptor pointer and padding sections were not filled.
Fixes: d289209ea6 ("panfrost: XML-ify the compute job descriptor")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Tested-by: Christian Hewitt <christianshewitt@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6859 >
2020-09-28 09:07:33 +02:00
Boris Brezillon
6abb4cd8b9
panfrost: Fix bifrost tiler descriptor definition
...
The bifrost tiler descriptor definition was wrong, leading to a buffer
overflow.
Fixes: efce73d99d ("panfrost: XML-ify the bifrost tiler descriptors")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Tested-by: Christian Hewitt <christianshewitt@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6859 >
2020-09-28 09:06:37 +02:00