Marek Olšák
4fb2eddfdf
gallium/util: remove empty file u_half.h
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6774 >
2020-09-30 16:28:24 +00:00
Marek Olšák
2b6a172343
util: remove util_float_to_half and util_half_to_float wrappers
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6774 >
2020-09-30 16:28:24 +00:00
Bas Nieuwenhuizen
55e2b3424d
radeonsi: Fix imports with displayable DCC.
...
Otherwise we reset the displayable DCC on import.
Fixes: c6c1fa9a26 "radeonsi: Put retile map in separate buffers."
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3577
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6918 >
2020-09-30 11:39:03 +00:00
Jason Ekstrand
92a594b154
spirv: Delete the legacy offset/index UBO/SSBO lowering
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5275 >
2020-09-30 07:20:39 +00:00
Dave Airlie
b0504ed682
llvmpipe: use an alternate env var to enable clover.
...
This can be used outside debug contexts.
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6928 >
2020-09-30 16:54:10 +10:00
Gert Wollny
89a1a3e9d6
r600/sfn: extend life range of all variables by one
...
This is a strange fix for some gles 3.1 tests with atomics. Maybed
the register holding the atomic add value can't be re-used in the
first instruction after an GDS instruction.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6925 >
2020-09-29 21:30:42 +00:00
Gert Wollny
02245e38fc
r600/sfn: Add support for more barrier instructions
...
These barriers should probably be global, but currently we only issue
a shared barrir (i.e. for only one wave front).
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6925 >
2020-09-29 21:30:42 +00:00
Gert Wollny
48edb98a7e
r600/sfn: Fix IDX register ID
...
Fixes: 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/6925 >
2020-09-29 21:30:42 +00:00
Gert Wollny
7683e27561
r600/sfn: Fix enabling the right interpolator for inerpolate_at_sample
...
Fixes: 73c5f45191
r600/sfn: Fix interpolate at sample
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6925 >
2020-09-29 21:30:42 +00:00
Rob Clark
16a3a56321
freedreno: Don't leak LRZ bo's
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6900 >
2020-09-29 20:56:54 +00:00
Rob Clark
98093e2780
freedreno/a6xx: Small cleanup
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6900 >
2020-09-29 20:56:54 +00:00
Rob Clark
5be3cfdc13
freedreno: Don't leak border_color_buf reference
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6900 >
2020-09-29 20:56:54 +00:00
Mike Blumenkrantz
6a20c630b9
zink: unify all occurrences of waiting on a fence
...
this was duplicated in a few places
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6922 >
2020-09-29 20:49:15 +00:00
Mike Blumenkrantz
e31381ac26
zink: combine all surface layout-setting for src/dst into util function
...
we do a lot of src/dst layout-setting, so ensure that we use the same code
everywhere to avoid cases where src==dst and we aren't setting GENERAL
layout as we should
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6922 >
2020-09-29 20:49:15 +00:00
Pierre-Eric Pelloux-Prayer
2584d48b2c
gallium/vl: add chroma_format arg to vl_video_buffer functions
...
vl_mpeg12_decoder needs to override the chroma_format value to get the
correct size calculated (chroma_format is used by vl_video_buffer_adjust_size).
I'm not sure why it's needed, but this is needed to get correct mpeg decode.
Fixes: 24f2b0a856 ("gallium/video: remove pipe_video_buffer.chroma_format")
Acked-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6817 >
2020-09-29 16:50:37 +00:00
Indrajit Kumar Das
cd1fab4ed6
radeonsi: enable support for GL_NV_shader_atomic_int64
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6708 >
2020-09-29 14:24:44 +00:00
Boris Brezillon
d4d5382963
panfrost: Add support for rbg16 formats
...
Fixes: 171e94fe62 ("mesa/st: enable EXT_color_buffer_half_float when formats 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/6887 >
2020-09-29 11:48:31 +00:00
Samuel Pitoiset
1a19fae868
radeonsi: call nir_io_add_const_offset_to_base only once per shader
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6890 >
2020-09-29 09:40:21 +00:00
Boris Brezillon
fefb3e9b70
panfrost: Add preliminary support for Mali G72
...
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6885 >
2020-09-29 08:39:23 +00:00
Vinson Lee
287ef94e24
gallium/swr: Remove unreachable code.
...
pContextMem has already been checked and cannot be NULL.
Fix defect reported by Coverity Scan.
Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement: return tsCtx;
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6857 >
2020-09-28 23:06:18 +00:00
Gert Wollny
bc32d41a9b
r600/sfn: Add support for helper invocations
...
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:29 +00:00
Gert Wollny
6aa196b673
r600/sfn: remove old code to track uniforms as it is no longer needed
...
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:29 +00:00
Gert Wollny
31e42fb780
r600/sfn: replace hand-backed literal check by NIR function
...
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:29 +00:00
Gert Wollny
6784cea646
r600/sfn; go back to not lowering uniforms to UBOs
...
Lowering uniforms to UBOs results in an aditional iadd for the
UBO buffer id evaluation, and for indirect buffers access that
results in an unnecessary op that can be avoided by not lowering
uniforms. There is some code duplication when reading the uniforms
but it saves a whole instruction group per indirect cont buffer
access.
This reverts commit 98eb00face with
some additional fixes.
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:29 +00:00
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
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
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
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
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
Eric Anholt
b4a087ce1b
driconf: Use nesting macros for defining options.
...
Manually balancing the BEGIN/ENDs is a recipe for xml validation failures,
just make the macros do the balancing. The only ugly bit I think is that
enums take a list of DRI_CONF_ENUM() without ','s in between them.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6753 >
2020-09-25 19:36:23 +00:00
Eric Anholt
e5d2481bfe
virgl: Clean up the driconf definition of GLES_SAMPLES_PASSED_VALUE.
...
The right values ended up being passed to DRI_CONF_OPT_BEGIN_V, they were just
named wrong.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6753 >
2020-09-25 19:36:23 +00:00
Samuel Iglesias Gonsálvez
b54a0bb528
freedreno/layout: add tile_all flag to the layout
...
Added a new tile_all flag which is used to set the TILE_ALL flag of
the texture. Enabled tile_all to depth/stencil images are they are
non-linear.
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com >
Reviewed-by: Jonathan Marek <jonathan@marek.ca >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6848 >
2020-09-25 15:38:47 +00:00
Andreas Baierl
b8c31ac06d
lima: fix glCopyTexSubImage2D
...
The reload texture descriptor needs to take care of the mipmap level
and the layer in case of GL_TEXTURE_CUBE_MAP.
glCopyTexSubImage2D triggers the lima_blit function which ends in a draw.
A reload is necessary. The reload texture descriptor is always built with
just one mipmap level, but this needs to be the level we want to reload,
not just 0. We also have to take care of the cubemap face.
This fixes the following dEQP tests:
dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.2d_rgb
dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.2d_rgba
dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.cube_rgb
dEQP-GLES2.functional.texture.specification.basic_copytexsubimage2d.cube_rgba
Reviewed-by: Erico Nunes <nunes.erico@gmail.com >
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6816 >
2020-09-25 10:11:36 +00:00
Guido Günther
7b9cf779f2
kmsro: Extend to include imx-dcss
...
This allows using the dcss display controllers (with the dcss drm
modesetting driver) along with the Etnaviv render-only drivers. DCSS is
found on i.MX SoCs.
Signed-off-by: Guido Günther <agx@sigxcpu.org >
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3449 >
2020-09-25 09:55:15 +00:00
Erik Faye-Lund
cbef2dc7d3
zink: only set stencil-ref for back if two-sided
...
Otherwise, we want to set both front and back to the same state.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6853 >
2020-09-25 09:16:27 +00:00
Erik Faye-Lund
4b2525b68d
zink: store base-object of DSA-state
...
This is useful in the next commit, where we need to inspect the
base-state.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6853 >
2020-09-25 09:16:27 +00:00
Erik Faye-Lund
9e94dcca67
zink: correct typo in stencil-setup
...
Without this, we end up using two-sided stencil when one-sided stencil
should be used. Whoops.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6853 >
2020-09-25 09:16:27 +00:00
Marek Olšák
d1d27e9db4
radeonsi: remove redundant info.uses_fbfetch
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6782 >
2020-09-25 04:37:23 -04:00
Marek Olšák
7b1e01fec7
radeonsi: remove redundant variables from struct si_compute
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6782 >
2020-09-25 04:37:23 -04:00