Tapani Pälli
3eadb3f5b0
iris: remove dg2 condition for Wa_22011440098
...
We need same workaround for MTL.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19636 >
2022-11-11 10:38:24 +00:00
Tapani Pälli
ecd4517560
anv: setup stage bitmask for Wa_22011440098
...
Fixes: 40b66a4499
("anv, iris: Add Wa_22011440098 for DG2")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19636 >
2022-11-11 10:38:24 +00:00
Tapani Pälli
210d95bdb3
iris: setup stage bitmask for Wa_22011440098
...
Fixes: 40b66a4499
("anv, iris: Add Wa_22011440098 for DG2")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19636 >
2022-11-11 10:38:24 +00:00
Lionel Landwerlin
4ceaed7839
anv: split internal surface states from descriptors
...
On Intel HW we use the same mechanism for internal operations surfaces
as well as application surfaces (VkDescriptor).
This change splits the surface pool in 2, one part dedicated to
internal allocations, the other to application VkDescriptors.
To do so, the STATE_BASE_ADDRESS::SurfaceStateBaseAddress points to a
4Gb area, with the following layout :
- 1Gb of binding table pool
- 2Gb of internal surface states
- 1Gb of bindless surface states
That way any entry from the binding table can refer to both internal &
bindless surface states but none of the driver allocations interfere
with the allocation of the application.
Based off a change from Sviatoslav Peleshko.
v2: Allocate image view null surface state from bindless heap (Sviatoslav)
Removed debug stuff (Sviatoslav)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7110
Cc: mesa-stable
Tested-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19275 >
2022-11-11 10:13:27 +00:00
Gert Wollny
917d992b32
nir/algeraic_opt: use double options too for lowering ftrunc@64
...
ftrunc@64 also might need lowering on fp64 only, especially now
that it might be introduced by nir_lower_int64.
Fixes: 29da985682
nir/lower_int64: Enable lowering of 64-bit float to 64-bit integer conversions.
Signed-off-by: Gert Wollny <gert.wollny@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19657 >
2022-11-11 09:29:31 +00:00
Samuel Pitoiset
b142a7790e
radv: advertise extendedDynamicState3ProvokingVertexMode with NGG
...
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/19168 >
2022-11-11 08:50:03 +00:00
Samuel Pitoiset
2cce8500de
radv: add support for dynamic provoking vertex mode with NGG
...
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/19168 >
2022-11-11 08:50:03 +00:00
Samuel Pitoiset
d81cccbb77
radv: add lowering support for load_provoking_vtx_in_prim_amd when dynamic
...
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/19168 >
2022-11-11 08:50:03 +00:00
Samuel Pitoiset
8d8aa05fd2
radv: declare shader arguments/locations for provoking vertex
...
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/19168 >
2022-11-11 08:50:03 +00:00
Samuel Pitoiset
8bb572b7f8
radv: add radv_pipeline_key::dynamic_provoking_vtx_mode
...
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/19168 >
2022-11-11 08:50:03 +00:00
Samuel Pitoiset
08b346e81a
radv: re-emit NGG culling settings when conservative rast mode is dynamic
...
Found by inspection.
Fixes: fbed3aed4a
("radv: add support for dynamic conservative rasterization mode")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19651 >
2022-11-11 08:20:23 +00:00
Luis Felipe Strano Moraes
d983827a62
meson: only enable intel-clc for x86_64 builds
...
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19662 >
2022-11-11 07:35:27 +00:00
Yonggang Luo
8e677bc1e1
util: Replace the usage of boolean with c11 bool in u_cpu_detect.c
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19649 >
2022-11-11 06:48:46 +00:00
Yonggang Luo
e39afa1ae8
microsoft: Fixes error: unknown type name ‘boolean’ in nir_to_dxil.c
...
error message:
../../src/microsoft/compiler/nir_to_dxil.c:1711:8: error: unknown type name ‘boolean’
1711 | static boolean
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19649 >
2022-11-11 06:48:46 +00:00
Yonggang Luo
5d794e8e3d
util: Replace usage of boolean with c11 bool in src/util/format/* and src/util/tests/format/*
...
This is done by find and replace:
boolean -> bool
TRUE -> true
FALSE -> false
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19649 >
2022-11-11 06:48:46 +00:00
Yonggang Luo
d13d93b089
util: Replace the usage of boolean with c11 bool in u_debug_symbol.c
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19649 >
2022-11-11 06:48:46 +00:00
Yonggang Luo
28d044730f
util: Replace the usage of boolean with c11 bool in u_debug_memory.c
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19649 >
2022-11-11 06:48:46 +00:00
Yonggang Luo
89f7446643
util: Replace all usage of __FUNCTION__ with __func__ in src/util/*
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19646 >
2022-11-11 06:15:42 +00:00
Yonggang Luo
605ebc32ee
util: Remove va_copy fixup because of c11 is required
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19646 >
2022-11-11 06:15:42 +00:00
Yonggang Luo
df3ca74053
util: Replace TAB with space in compiler.h
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19646 >
2022-11-11 06:15:42 +00:00
Yonggang Luo
6eb2512fab
util: Cleanup util/compiler.h
...
Remove MESA_*_ENDIAN
Use UTIL_ARCH_*_ENDIAN to define CPU_TO_LE32
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19646 >
2022-11-11 06:15:42 +00:00
Yonggang Luo
6e8229c45a
wsi: Use UTIL_ARCH_LITTLE_ENDIAN instead MESA_LITTLE_ENDIAN
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19646 >
2022-11-11 06:15:42 +00:00
Yonggang Luo
67627c84a7
meson: Fixes name_prefix for clover on mingw
...
Cc: mesa-stable
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19610 >
2022-11-11 05:38:20 +00:00
Yonggang Luo
f25d483e1b
clover: Fixes building with mingw-x86
...
Cc: mesa-stable
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19610 >
2022-11-11 05:38:20 +00:00
Yonggang Luo
a3b26e2758
clover: Rename *OpenCL.def to *OpenCL.def.in
...
Cc: mesa-stable
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19610 >
2022-11-11 05:38:19 +00:00
Yonggang Luo
ab20ec9da7
meson: fixes mingw-clang32 building
...
Cc: mesa-stable
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19610 >
2022-11-11 05:38:19 +00:00
Yonggang Luo
f03421702c
meson: Refactoring shared gen_vs_module_defs_normal_command out
...
Cc: mesa-stable
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19610 >
2022-11-11 05:38:19 +00:00
Yonggang Luo
e5656f07c7
radv: Fixes prototypes
...
Cc: mesa-stable
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19610 >
2022-11-11 05:38:19 +00:00
Dave Airlie
9b3e4d5d7c
pvr: use common command buffer status
...
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Jason Ekstrand
f1e95f324b
pvr: Hook up vk_command_buffer_ops::reset
...
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Jason Ekstrand
255de11af3
pvr: Call command buffer reset conditionally
...
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Dave Airlie
49c4c5cb64
turnip: use common command buffer status code.
...
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Jason Ekstrand
697f448f6c
turnip: Initialize push descriptors in tu_create_cmd_buffer()
...
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Dave Airlie
1486b54e80
panvk: move to using common command buffer status
...
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Jason Ekstrand
84cd81e104
panvk: Use common code for command buffer lifecycle management
...
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Jason Ekstrand
2126bb6c92
panvk: Drop panvk_cmd_buffer::queue_family_index
...
Suggested-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Dave Airlie
452ab5554d
lavapipe: use common command buffer status code.
...
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Dave Airlie
a0819382fc
radv: use common command buffer status code.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Dave Airlie
a26755458e
vulkan: Add common cmd buffer state tracking
...
For drivers already using vk_common_ResetCommandBuffer(), it now only
calls the driver's reset hook if the command buffer is not in the
INITIAL state. Pulled this trick from the PowerVR driver.
v2 (Jason Ekstrand):
- Rename from "status" to "state" since that's what's in the spec
- Add vk_command_buffer_begin/end instead of drivers setting it all
manually
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16922 >
2022-11-11 05:01:24 +00:00
Qiang Yu
eca63c5e5c
radeonsi: move param assign offset to si_get_nir_shader
...
We need this info for gfx11 param export soon and nir vertex
export lowering in the future.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Qiang Yu
35895c25e2
radeonsi: pack code into si_assign_param_offsets
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Qiang Yu
63e2e45dfa
radeonsi: small refine for si_nir_assign_param_offsets
...
Pass si_shader as arg directly, move primitive id pending
inside it.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Qiang Yu
17a66f2665
radeonsi: move si_nir_assign_param_offsets above
...
It's going to be called by si_get_nir_shader.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Qiang Yu
a6f86d003b
radeonsi: implement nir_load_ring_attr_amd
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Qiang Yu
3aaf7c103e
ac/llvm: implement intrinsic for gfx11 param export
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Qiang Yu
2510b7f66a
radeonsi: use si_nir_clamp_vertex_color
...
Clamp vertex color in nir. Now only GS copy shader use
si_vertex_color_clamping, so move it there. It will be
completely removed after we switch to nir GS copy shader.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Qiang Yu
42c2596b3c
radeonsi: add si_nir_clamp_vertex_color pass
...
To replace the LLVM si_vertex_color_clamping.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Qiang Yu
533b39bfcb
nir,ac/llvm,radeonsi: add nir_load_clamp_vertex_color_amd
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Qiang Yu
a338d13a99
radeonsi: remove lower_fsat nir option
...
We implemented nir_op_fsat nir to llvm translation.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: Qiang Yu <yuq825@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19429 >
2022-11-11 04:22:20 +00:00
Lucas Stach
1d86188dc0
meson: enable Wmisleading-indentation
...
Clang enables it by default, but GCC does not. Enable it explicitly to
have some consistency between the supported compilers.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de >
Acked-by: Eric Engestrom <eric@igalia.com >
Acked-by: Dylan Baker <dylan.c.baker@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19439 >
2022-11-11 01:56:28 +00:00