David Rosca
3a484cd4ea
gallium/auxiliary/vl: Fix chroma and blurry output of cs video_buffer
...
Truncate UV coordinates to fix incorrect chroma offset.
Add texture offset to avoid blur from linear sampler.
Reviewed-by: Thong Thai <thong.thai@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24301 >
2023-07-27 13:16:10 +00:00
Mike Blumenkrantz
318d0316dd
zink: fix the fix for separate shader program refcounting
...
the previous fix fixed the initial refcount but then left a dangling
ref when doing the optimized program replacement
Fixes: 4e38061643 ("zink: fix separate shader program refcounting")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24255 >
2023-07-27 11:59:21 +00:00
Samuel Pitoiset
670bd70fa6
radv: emulate GEOMETRY_SHADER_INVOCATIONS query on RDNA1-2
...
The number of geometry shader invocations is correctly counted by the
hardware for both NGG and the legacy GS path but it increments for
NGG VS/TES because they are merged with GS, but it shouldn't. Fix this
by emulating the number of geometry shader invocations.
This fixes piglit/bin/arb_query_buffer_object-qbo and recent
dEQP-VK.query_pool.statistics_query.gs_invocations_no_gs.* failures
with NGG.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24231 >
2023-07-27 09:15:22 +02:00
Dmitry Baryshkov
ba5f0c203c
gallium: unbreak kmsro/freedreno case
...
In case the case of kmsro and freedreno driver, freedreno will fail to
with the xmlconfig errors as the kmsro declaration doesn't have defaults
for the freedreno options. Instead of directly using v3d_driconf for
kmsro, add native kmsro_driconf, which optionally includes v3d and
freedreno options.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24218 >
2023-07-26 21:57:13 +00:00
Dmitry Baryshkov
a5b445782e
gallium: move kmsro definition to the bottom of the file
...
The kmsro (in theory) can be using any other driver. In order to
simplify handling of driver public headers, move kmsro definition to the
bottom of the drm_helper.h
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24218 >
2023-07-26 21:57:13 +00:00
Gert Wollny
3954d545ca
r600: don't use sb disasm to disassamble copy shader
...
We will remove sb at one point, so drop its use.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
02384de494
r600: don't check possible size of ALU CF
...
The scheduler and sfn assembler already o this.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
c3e5b8da58
r600: Assert when backend wants to create a new ALU CF
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
9d4104d4fb
r600: Explicitly force new CF in gs copy shader
...
With that we can assert on ALU CF mission in the assembler
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
104cac4dbd
r600/sfn: Schedule AR uses befor possible groups
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
9bf68273ad
r600/sfn: rework checks for ALU CF emission
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
6aafa2bb49
r600/sfn: Splizt ALU blocks in scheduler to fit into 128 slots
...
With that the backend doesn't split these ALU CFs any more.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
440cf7439d
r600/sfn: on Cayman loading an index register needs only one slot
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
4b4770e820
r600/sfn: make remaining slots a signed value
...
Needed to check the limits.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
b4ddc9b0c7
r600/sfn: Add flags to check whether a group starts CF and can do that
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:43 +00:00
Gert Wollny
acf21d7462
r600/sfn: Add method to convert to AluGroup directly
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:42 +00:00
Gert Wollny
bd7a9b7f4e
r600/sfn: override slot count for IfInstr
...
We have one slot for the predicate (todo fix this value)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:42 +00:00
Gert Wollny
c517defbdd
r600/sfn: Fix typo with block type
...
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:42 +00:00
Gert Wollny
e60ff83834
r600/sfn: set block sizes based on chip class
...
Be conservative with the ALU slots and the VTX slots.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:42 +00:00
Gert Wollny
55f692c451
r600/sfn: Always check arrays writes before allowing copy propagation
...
Also propaate extra dependencies when an indirect load is propagated
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:42 +00:00
Gert Wollny
1d4dd664e0
r600/sfn: Fix use of multiple IDX with kcache
...
Currently we don't properly support using he two IDX registers in the
same ALU CF, so work around this by enforcing a new CF if both indices
are used.
Fixes: d21054b4bc
r600/sfn: Add pass to split addess and index register loads
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297 >
2023-07-26 19:33:42 +00:00
Yonggang Luo
a606074a7a
radeonsi: Convert to use nir_foreach_function_impl
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23940 >
2023-07-26 03:43:40 +00:00
Collabora's Gfx CI Team
2f834340a6
Uprev Piglit to ed58dfbd12be34fa3dab97a7a2987b890e0637f1
...
5036601c43...ed58dfbd12
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23485 >
2023-07-25 21:29:33 +00:00
José Roberto de Souza
3efba1e2e9
iris: Request Xe KMD to place BOs to CPU visible VRAM when required
...
This is required to support discrete GPUs placed in systems with large
PCI bar or resizeble PCI bar not available or disabled.
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23781 >
2023-07-25 19:33:16 +00:00
Alyssa Rosenzweig
b010b6f691
panfrost: Disable blending for no-op logic ops
...
Prevents regression from the series, since we don't support empty blend
shaders. This could be fixed more generically but I'm not inclined to compile
more blend shaders than needed so shrug.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Italo Nicola <italonicola@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24252 >
2023-07-25 18:03:57 +00:00
Karol Herbst
2d902dbf02
rusticl: fix warnings with newer rustc
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24315 >
2023-07-25 17:12:40 +00:00
Faith Ekstrand
6908814d46
vc4: Convert to new-style NIR registers
...
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24153 >
2023-07-25 15:36:52 +00:00
Yonggang Luo
23a2b83639
lavapipe: fixes indent of function lvp_inline_uniforms
...
The indent fixes are in separate patch is for easier to review
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24316 >
2023-07-25 12:09:07 +00:00
Yonggang Luo
b4ed366d6b
lavapipe: Convert to use nir_foreach_function_impl
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24316 >
2023-07-25 12:09:07 +00:00
Yonggang Luo
d557169e81
zink: Convert to use nir_foreach_function_impl when possible
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24316 >
2023-07-25 12:09:07 +00:00
Yonggang Luo
d45f846946
lima: Convert to use nir_foreach_function_impl when possible
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24316 >
2023-07-25 12:09:06 +00:00
Antonio Gomes
29f4e7b215
rusticl/core: Make convert_spirv_to_nir output pair (KernelInfo, NirShader)
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898 >
2023-07-25 10:30:11 +00:00
Antonio Gomes
2448bdc81b
rusticl/core: Delete KernelDevState and KernelDevStateInner
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898 >
2023-07-25 10:30:11 +00:00
Antonio Gomes
58979e9247
rusticl/program: New helper functions to NirKernelBuild
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898 >
2023-07-25 10:30:11 +00:00
Antonio Gomes
323dcbb4b5
rusticl: Move NirKernelBuild to ProgramDevBuild
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898 >
2023-07-25 10:30:11 +00:00
Antonio Gomes
7ec9b9cd07
rusticl/compiler: Remove unnecessary functions
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898 >
2023-07-25 10:30:11 +00:00
Antonio Gomes
218dce5e38
rusticl: Move Cso to Program
...
Commit got huge, but couldn't figure out a better way to split without
breaking stuff.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898 >
2023-07-25 10:30:11 +00:00
Antonio Gomes
11729e8311
rusticl/compiler: Add NirPrintfInfo
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898 >
2023-07-25 10:30:11 +00:00
Antonio Gomes
e3169f624d
rusticl/kernel: Add CsoWrapper
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898 >
2023-07-25 10:30:11 +00:00
Antonio Gomes
07c8bce24d
rusticl/kernel: Removing unnecessary clone in kernel launch
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898 >
2023-07-25 10:30:11 +00:00
Illia Polishchuk
1cbf10ca88
iris: remove NULL check for already dereferenced pointer earlier
...
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Illia Polishchuk <illia.a.polishchuk@globallogic.com>
Found by Coverity.
CID: 1528158
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20893 >
2023-07-25 08:55:56 +00:00
Illia Abernikhin
33546705b5
i915: change format in dbg string
...
Actually, uintptr_t is of type unsigned long, but the
debug line uses the %d format specifier, which expects an int.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Illia Abernikhin <illia.abernikhin@globallogic.com>
Found by Coverity.
CID: 1515961
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20893 >
2023-07-25 08:55:56 +00:00
Konstantin Seurer
ae18247e88
lavapipe: Advertise samplerYcbcrConversion
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24295 >
2023-07-25 08:22:27 +00:00
Konstantin Seurer
32403c696b
lavapipe: Implement samplerYcbcrConversion
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24295 >
2023-07-25 08:22:27 +00:00
Konstantin Seurer
2667da5174
lavapipe: Fix binding immutable samplers with desc buffers
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24295 >
2023-07-25 08:22:27 +00:00
Konstantin Seurer
da95f64a6f
lavapipe: Store immutable_samplers as lvp_sampler array
...
We will need this to access the ycbcr conversion.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24295 >
2023-07-25 08:22:27 +00:00
Konstantin Seurer
7dc6c4b581
lavapipe: Remove dummy sampler ycbcr conversion
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24295 >
2023-07-25 08:22:27 +00:00
Konstantin Seurer
dbbd84ce8b
gallivm: Ignore nir_tex_src_plane
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24295 >
2023-07-25 08:22:27 +00:00
Konstantin Seurer
c7914a84e9
gallivm: Fix subsampled format sampling under Vulkan
...
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24295 >
2023-07-25 08:22:27 +00:00
Konstantin Seurer
1280cf5b2a
draw: Do not restart the primitive_id at 0
...
Otherwise the primitive_id will wrap around to 0 if more than 4096
patches are drawn.
cc: mesa-stable
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24295 >
2023-07-25 08:22:27 +00:00