Alyssa Rosenzweig
1110fcccc2
agx: Split off NIR preprocessing from compiling
...
So we can specialize after lowering I/O.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19811 >
2022-11-19 04:27:10 +00:00
Alyssa Rosenzweig
972354b5fd
agx: Handle scalar texture destinations
...
Fixes dEQP-GLES3.functional.shaders.texture_functions.texturelod.sampler2dshadow_fragment.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19811 >
2022-11-19 04:27:10 +00:00
Alyssa Rosenzweig
a92fb4f38c
agx: Don't depend on GenXML
...
Separation of concerns, unused #include.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19811 >
2022-11-19 04:27:10 +00:00
Alyssa Rosenzweig
3789dba5f6
agx: Lower packs/unpacks and bitfields
...
Needed for GLES3. These could be optimized.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19811 >
2022-11-19 04:27:10 +00:00
Yonggang Luo
94886a2975
util: Move src/gallium/include/pipe/p_format.h to src/util/format/u_formats.h
...
Because p_format.h shared between vulkan drivers and opengl drivers
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/19629 >
2022-11-19 03:38:19 +00:00
David Heidelberg
1facb6fbe8
ci/freedreno: disable flaking Civilization V
...
See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7491
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19862 >
2022-11-19 02:22:30 +00:00
Yonggang Luo
e5f0d222b1
util: Rename PIPE_ALIGN_STACK to UTIL_ALIGN_STACK and moved into util/compiler.h
...
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/19676 >
2022-11-19 01:37:46 +00:00
Yonggang Luo
778402f3b0
llvmpipe: fixes error: ‘enum pipe_blendfactor’ declared in lp_test_blend.c
...
error message:
In file included from ../../src/gallium/drivers/llvmpipe/lp_test_blend.c:44:
../../src/gallium/drivers/llvmpipe/lp_bld_blend.h:47:21: error: ‘enum pipe_blendfactor’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
47 | enum pipe_blendfactor factor_src,
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/19676 >
2022-11-19 01:37:46 +00:00
Yonggang Luo
6832a9433d
util: convert usage of uint to unsigned in u_format.h
...
Because uint comes from pipe/p_compiler.h, and that depends will be removed in future
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/19676 >
2022-11-19 01:37:46 +00:00
Yonggang Luo
b728bed567
util: use void * instead of byte * for util_copy_rect in u_format.h
...
As ubyte comes from p_compiler.h, so do not use it,
and the code calles util_copy_rect may use args with type uint8_t*, ubyte* or unsigned char*,
so use the type void* that consistence with memcpy
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/19676 >
2022-11-19 01:37:46 +00:00
Yonggang Luo
2f42ffcd02
tgsi: fixes error: ‘enum pipe_shader_type’ declared in tgsi_info.h
...
error message:
../../src/gallium/auxiliary/tgsi/tgsi_info.h:92:30: error: ‘enum pipe_shader_type’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
92 | tgsi_get_processor_name(enum pipe_shader_type processor);
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/19676 >
2022-11-19 01:37:46 +00:00
Yonggang Luo
887e0fdace
aco: fixes error: 'uint' was not declared in aco_instruction_selection.cpp
...
uint is from pipe/p_compiler.h
error message:
../../src/amd/compiler/aco_instruction_selection.cpp:11061:4: error: 'uint' was not declared in this scope; did you mean 'rint'?
11061 | uint en_mask = 1;
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/19676 >
2022-11-19 01:37:46 +00:00
Yonggang Luo
72cf2b540c
util: Remove the usage of enum pipe_error in u_hash_table.*
...
Use 0 instead of PIPE_OK in u_hash_table.c
Because pipe_error and PIPE_OK is comes from pipe/p_defines.h that doesn't belong
to src/util/
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/19676 >
2022-11-19 01:37:46 +00:00
Yonggang Luo
8eff2c2223
util: Remove redundant #include "util/u_inlines.h" in u_trace.c
...
util/u_inlines.h is comes from src/gallium/auxiliary/util/u_inlines.h,
so when possible, do not use it under src/util folder
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/19676 >
2022-11-19 01:37:46 +00:00
Caio Oliveira
fbe40720e0
intel/compiler: Remove redundant argument from brw_nir_create_passthrough_tcs
...
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19831 >
2022-11-19 00:35:56 +00:00
Mark Janes
f0115ebc25
intel/perf: fix printf formatting of size_t for 32bit builds
...
Fixes: bdacd6df5a ("intel/perf: add a non installable tool to print metrics")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7736
Reviewed-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19856 >
2022-11-18 23:29:16 +00:00
David Heidelberg
bc34217978
ci/dzn: add flake
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19858 >
2022-11-18 23:04:14 +00:00
Jason Ekstrand
9a9a49d630
clover: Use braces arround a union initializer
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19816 >
2022-11-18 22:22:58 +00:00
Jim Wu
db2b098323
Update 00-mesa-defaults.conf
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19619 >
2022-11-18 21:31:34 +00:00
Lionel Landwerlin
723b15fb75
nir/lower_explicit_io: fix metadata preserve
...
This pass can insert if blocks, therefore no dominance/block_index for
you.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Cc: mesa-stable
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19818 >
2022-11-18 20:46:20 +00:00
Rhys Perry
716aaf3673
nir/lower_bit_size: lower uadd_sat/iadd_sat/isub_sat to unsaturated alu
...
The unsaturated arithmetic won't overflow/borrow, and may be faster.
No fossil-db changes.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19473 >
2022-11-18 18:31:32 +00:00
Rhys Perry
8a4f9a874b
nir/lower_bit_size: optimize usub_sat lowering
...
The result should never be larger than uint_max. This doesn't need a
special path.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19473 >
2022-11-18 18:31:32 +00:00
Rhys Perry
e19584db2b
nir/algebraic: optimize open-coded uadd_sat/usub_sat
...
fossil-db (navi21):
Totals from 19 (0.01% of 135636) affected shaders:
Instrs: 40730 -> 40688 (-0.10%)
CodeSize: 217708 -> 217568 (-0.06%)
Latency: 261466 -> 261373 (-0.04%)
InvThroughput: 74944 -> 74896 (-0.06%)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19473 >
2022-11-18 18:31:32 +00:00
Rhys Perry
6fc4a76057
radv: lower 8/16-bit uadd_carry/usub_borrow
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7615
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19473 >
2022-11-18 18:31:32 +00:00
Rhys Perry
da30fb5df7
nir/lower_bit_size: lower uadd_carry
...
8/16-bit uadd_carry can exist in SPIR-V.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com >
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7615
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19473 >
2022-11-18 18:31:32 +00:00
Caio Oliveira
4239512210
crocus: Pass devinfo directly in crocus_setup_uniforms
...
Instead of reaching through brw_compiler. This will make easy
future changes on brw_compiler side.
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19834 >
2022-11-18 18:22:43 +00:00
Samuel Pitoiset
5a5bc3dd52
radv: advertise extendedDynamicState3ColorBlendEnable
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19579 >
2022-11-18 15:29:33 +00:00
Samuel Pitoiset
40b76ca08a
radv: add support for dynamic color blend enable
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19579 >
2022-11-18 15:29:33 +00:00
David Heidelberg
faf15ff3f4
ci/freedreno: temporarily disable godot-trive
...
Test if this trace impact surrounding traces causing rendering changes.
Ref: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7732
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19838 >
2022-11-18 14:42:32 +00:00
David Heidelberg
17aea35c44
ci/panfrost: drop glmark2 traces, useless
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19838 >
2022-11-18 14:42:32 +00:00
David Heidelberg
b09e53479e
ci/iris: drop glmark2 traces, useless
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19838 >
2022-11-18 14:42:32 +00:00
David Heidelberg
0db9e170f6
ci/llvmpipe: drop glmark2 traces, useless
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19838 >
2022-11-18 14:42:32 +00:00
David Heidelberg
40d4d0785a
ci/virgl: drop glmark2 traces, useless
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19838 >
2022-11-18 14:42:32 +00:00
David Heidelberg
1637291fd4
ci/broadcom: drop glmark2 traces, useless
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19838 >
2022-11-18 14:42:32 +00:00
David Heidelberg
c80a7543df
ci/freedreno: drop glmark2 traces, useless
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19838 >
2022-11-18 14:42:32 +00:00
David Heidelberg
4f74621884
ci/amd: drop glmark2 traces, useless
...
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19838 >
2022-11-18 14:42:32 +00:00
Konstantin Seurer
bdd2abe334
nir/lower_shader_calls: Get rid of any brw occurences
...
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19749 >
2022-11-18 12:28:14 +00:00
Connor Abbott
37cde2c634
tu: Rewrite inline uniform implementation
...
Now we always push the inline uniforms, using an indirect CP_LOAD_STATE.
There is just enough space to be able to always push them if we expose
the minimum possible per-stage limits. This aligns us with Qualcomm and
removes the need to setup a uniform descriptor which will be
problematic.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18703 >
2022-11-18 11:57:05 +00:00
Connor Abbott
e402d2dbe9
nir: Fix nir_chase_binding() vecN handling
...
In the comments we claimed to handle vecN instructions, for the case
where an offset is trimmed from the descriptor, but we didn't ignore the
offset itself and in effect only handled identity vecN's (which copy
propagation would normally remove already!), so the handling of vecN was
useless and this relied on copy propagation cleaning things up. Fix it
to ignore everything except the components in the original source.
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18703 >
2022-11-18 11:57:05 +00:00
Matt Coster
bd51305943
pvr: Minor cleanup around pvr_emit_vdm_index_list()
...
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19802 >
2022-11-18 11:46:14 +00:00
Michel Dänzer
8d7aa4279a
vulkan/wsi/wayland: Set num_modifier_lists = 0 if num_drm_modifiers == 0
...
This case was missed in
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18826 ,
resulting in native Wayland apps failing with
../src/vulkan/wsi/wsi_common_drm.c:452: wsi_configure_native_image: Assertion `!"Failed to find a supported modifier! This should never " "happen because LINEAR should always be available"' failed.
if the Wayland compositor advertises only the INVALID modifier.
Fixes: c315e20d61 ("vulkan/wsi/wayland: Configure images via params passed to wsi_swapchain_init()")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19795 >
2022-11-18 09:42:03 +00:00
Matt Coster
fffc3866fe
pvr: Support clear colours with more than 32 bits
...
The support for this seems to already exist, but was blocked by a
conditional. Replace with an assert to ensure the format can be packed
into 4x32 bit words (true for all currently supported formats).
Signed-off-by: Matt Coster <matt.coster@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19799 >
2022-11-18 09:32:57 +00:00
Karmjit Mahil
0ad5b0a74e
pvr: Fix clang-format error.
...
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Reviewed-by: Frank Binns <frank.binns@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19798 >
2022-11-18 09:17:13 +00:00
Feng Jiang
8b48e11179
virgl/video: Check driver supported profiles and entrypoints
...
Since the support of video by the device and the driver may be
different, it is necessary to check on the driver side as well.
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn >
Reviewed-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18831 >
2022-11-18 07:46:11 +00:00
Feng Jiang
ebf6158bd0
virgl/video: Add support for H.265 encoding
...
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn >
Signed-off-by: Weishi Li <liweishi@kylinos.cn >
Signed-off-by: Liming Sun <sunliming@kylinos.cn >
Reviewed-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18831 >
2022-11-18 07:46:11 +00:00
Feng Jiang
d3a203c969
virgl/video: Add support for H.264 encoding
...
Implement encoding framework and support H.264 encoding.
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn >
Signed-off-by: Ming Xie <xieming@kylinos.cn >
Signed-off-by: Liming Sun <sunliming@kylinos.cn >
Reviewed-by: Gert Wollny <gert.wollny@collabora.com >
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18831 >
2022-11-18 07:46:11 +00:00
Boyuan Zhang
69ed5f13d8
virgl/video: Pass "max_references" to backend when creating a video codec
...
The "max_references" is an important value in sequence parameters,
which will be used when encoding SPS headers.
Signed-off-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn >
Reviewed-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18831 >
2022-11-18 07:46:11 +00:00
Feng Jiang
d4f189fe69
frontends/va/enc: save intra_idr_period in the context
...
The va frontend loses some information when processing parameter
buffers, but the virgl video encoding driver needs it to work.
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18831 >
2022-11-18 07:46:11 +00:00
Feng Jiang
316652a4bb
virgl/video: Move hardware-related definitions from virgl_video.h to virgl_video_hw.h
...
Considering the increasing number of hardware-related definitions,
it is better to put them in a separate file.
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn >
Reviewed-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18831 >
2022-11-18 07:46:11 +00:00
Kenneth Graunke
403083744d
iris: Increase the maximum grid size
...
I had simply copied these values from another driver when adding initial
compute support to iris. The actual hardware limit is UINT32_MAX (see
the GPGPU_WALKER/COMPUTE_WALKER ThreadGroupID{X,Y,Z}Dimension fields).
Thanks to Karol Herbst for noticing the unnecessarily low limit.
References: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7676
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Tested-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19826 >
2022-11-18 00:53:21 +00:00