Eric Anholt
db95dfe252
freedreno: Reuse u_math.h instead of open coding ALIGN/ARRAY_SIZE.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Eric Anholt
21df8b3e08
freedreno: Fix UBSan failures in cffdec's (uint8_t)x << 24
...
Types <32 bit get promoted to int32_t when you do expressions on them
(thus why (u8)x << 8 works at all), but shifting into the top bit of the
signed int is undefined behavior.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Emma Anholt
d5a80781aa
freedreno/afuc: Avoid ubsan warns about shifting to the top bit of 'int'
...
I think maybe it's being promoted to int due to the mismatched bitfield
sizes of the uint32_t values being referenced here?
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Emma Anholt
ba9e994034
freedreno/rnndec: Avoid making 0-length variable length arrays.
...
ubsan hates it.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Emma Anholt
bd8bfe43fa
freedreno/rnndec: Fix use of undefined value_orig in the !ti case.
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360 >
2021-10-01 23:16:04 +00:00
Filip Gawin
b47017192b
r300: implement forgotten tgsi's cases of textures
...
Fixes: d0c398a8 ("r300g: Use radeon compiler for fragment programs")
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13135 >
2021-10-01 22:56:51 +00:00
Emma Anholt
5116388e0b
turnip: Expose a device name similar to the blob.
...
We add "Turnip" so that users (and vulkan.gpuinfo.org) can distinguish us
without requiring VK_KHR_driver_properties. This will be a lot more
user-friendly than "FD618", though.
I made some little vk_asprintf helpers, because I figure other drivers
setting up deviceName's will want them too.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13041 >
2021-10-01 22:32:10 +00:00
Emma Anholt
7e471541e0
turnip: Match the blob's format for vendorID and deviceID.
...
This should hopefully cause us the least trouble with apps tuning for
device performance.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13041 >
2021-10-01 22:32:10 +00:00
Sagar Ghuge
7ddb0c9f76
iris: Enable atomic operations on compressed surfaces
...
Let's not turn off compression for atomic operations since XeHPG
supports it.
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com >
Reviewed-by: Tapani Pälli <tapani.palli@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12966 >
2021-10-01 22:16:22 +00:00
Mike Blumenkrantz
2f7ea2c493
anv: support EXT_primitive_topology_list_restart
...
Acked-by: Jason Ekstrand <jason@jlekstrand.net >
Tested-by: Ivan Briano <ivan.briano@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12628 >
2021-10-01 21:49:26 +00:00
Marek Olšák
923c535ee8
ac/surface: don't overwrite DCC settings for imported buffers
...
Fixes: 0f6251b31f - ac/surface: use DCC compatible with image stores for < 4K resolutions
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13120 >
2021-10-01 16:15:40 -04:00
Vasily Khoruzhick
5db5ff58b7
lima: split_load_input: don't split unaligned vec2
...
Mali4x0 can't fetch unaligned vec2 (i.e. .yz), so don't split it.
Fixes: 6dd0ad66de ("lima/ppir: add NIR pass to split varying loads")
Reviewed-by: Erico Nunes <nunes.erico@gmail.com >
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13131 >
2021-10-01 18:11:54 +00:00
Tapani Pälli
c752bb459b
panvk: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
54325dd138
lavapipe: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
f056fb1e56
v3dv: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
40c798c6bc
turnip: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Hyunjun Ko <zzoon@igalia.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
814d6b626f
radv: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
69e82462a1
anv: remove feature checks from device creation
...
This is already handled by vk_device_init(); drivers no longer
need to do it themselves.
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Tapani Pälli
2e5718c957
vulkan: provide common functions to check device features
...
v2: move checks to vk_device_init, ignore struct types from
provisional extensions + lots of cleanups/fixes (Jason Ekstrand)
v3: squash in following patch from Jason:
"vulkan: Restructure vk_physical_device_check_device_features()"
v4 (Jason): Fix a Windows build error
Signed-off-by: Tapani Pälli <tapani.palli@intel.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12867 >
2021-10-01 17:37:02 +00:00
Samuel Pitoiset
2aa705ec87
radv: determine the VS output parameters in the shader info pass
...
This can be determined earlier instead of duplicating code in both
compiler backends.
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/13119 >
2021-10-01 17:11:39 +00:00
Samuel Pitoiset
89f1117c62
radv: set export_clip_dists for the GS copy shader
...
This is needed for the next change to correctly compute the VS
output parameters from the shader info pass.
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/13119 >
2021-10-01 17:11:39 +00:00
Timur Kristóf
c53a1dff32
radv: Don't declare ngg_gs_state when there is no API GS.
...
This shader arg is only used when the pipeline has API GS,
so it is useless to declare it otherwise.
Also remove unused code from radv_declare_shader_args.
NGG is handled by the GS code path so these were never
actually used.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13129 >
2021-10-01 15:46:12 +00:00
Timur Kristóf
6ca66808b5
aco: Fix determining whether any culling is enabled.
...
Use 0xB instead of 0x00FFFFFF - this allows to jump over the culling
code when no actual culling is enabled but the ngg_cull_face_is_ccw
flag is set.
Fixes: 182d9b1e60
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13129 >
2021-10-01 15:46:12 +00:00
Timur Kristóf
c13a8d20f7
aco: Fix small primitive precision.
...
This is a mistake. It should use ngg_culling_settings
instead of ngg_gs_state.
Fixes: 182d9b1e60
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13129 >
2021-10-01 15:46:12 +00:00
Marek Olšák
fb8f532ea1
radeonsi: implement draw_vertex_state for lower display list overhead
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
73f7142ace
radeonsi: separate VBO descriptor code into a new function (for future work)
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
e78d7fe7d5
mesa: use pipe_vertex_state in vbo and st/mesa for lower display list overhead
...
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
f32cefdb87
st/mesa: make setup_arrays more reusable for future display list support
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
74cb74045f
st/mesa: add ST_PIPELINE_RENDER_NO_VARRAYS, for future display list support
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
7a2458f4bd
gallium/util: add util_vertex_state_cache for deduplicating the states
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
e8cad57aa7
gallium/trace: add pipe_vertex_state support
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
0842488859
gallium/u_threaded: implement draw_vertex_state
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
1c66de3239
gallium: add pipe_vertex_state and draw_vertex_state for display lists
...
The main motivation is to improve the score of viewperf13/snx.
This new interface is designed to be optimal for display lists as implemented
by the vbo module. It has much lower CPU overhead in the frontend, threaded
context, and the driver.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
d5218f0889
gallium/util: make pipe_vertex_buffer_reference safe for hashing dst
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
6e69acad82
util: import u_debug_refcnt, u_hash_table, u_debug_describe from gallium
...
to allow pipe_*_reference to be called in src/mesa/vbo.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Marek Olšák
bec054ec63
util: add util_popcnt_inline_asm
...
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13050 >
2021-10-01 14:51:23 +00:00
Bas Nieuwenhuizen
0b92d4ec98
radv: Add GPU serialization of acceleration structures.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Bas Nieuwenhuizen
5a45e2e04d
radv: Add CPU serialization of acceleration structures.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Bas Nieuwenhuizen
0bf77a3fd1
radv: Add GPU copying of acceleration structures.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Bas Nieuwenhuizen
c7e0a8a6f7
radv: Add CPU copying of acceleration structures.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Bas Nieuwenhuizen
76fcd50e14
radv: Add GPU copy/serialization/deserialization shader.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Bas Nieuwenhuizen
6def6ba04e
radv: Add acceleration structure queries.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Bas Nieuwenhuizen
817b4a9aca
radv: Add copy/serialization info to accel struct headers.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Bas Nieuwenhuizen
c814e42c12
radv: Add an indirect dispatch struct to the header.
...
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Bas Nieuwenhuizen
237a979419
radv: Add an internal indirect dispatch command.
...
Avoiding the entire buffer dance.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Bas Nieuwenhuizen
8500e9e1f0
radv: Add DMA buffer update function for internal use.
...
Only split out the DMA part because that doesn't need the BO.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12840 >
2021-10-01 13:43:28 +00:00
Mike Blumenkrantz
5e9669650c
zink: break out surface info init to helper function
...
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13126 >
2021-10-01 13:27:50 +00:00
Mike Blumenkrantz
fed9243078
zink: make a local resource var in fb_clears_apply_internal
...
no functional changes
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13126 >
2021-10-01 13:27:50 +00:00
Tomeu Vizoso
0497d4aeef
panfrost/ci: Run Piglit's quick_gl tests on G52
...
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13063 >
2021-10-01 12:03:42 +00:00
Tomeu Vizoso
75212b3b34
ci: Rebuild kernel with Amlogic KMS support
...
So we can run Xorg for Piglit tests.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13063 >
2021-10-01 12:03:42 +00:00