Mike Blumenkrantz
5b7eb0d9d3
zink: break out program primtype->idx conversion function
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17225 >
2022-08-04 02:16:18 +00:00
Mike Blumenkrantz
2215377aa0
zink: change zink_create_gfx_program signature
...
no functional changes
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17225 >
2022-08-04 02:16:18 +00:00
Mike Blumenkrantz
80fac34d92
zink: hook up pipeline_library extensions
...
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17225 >
2022-08-04 02:16:18 +00:00
Mike Blumenkrantz
ae022b784c
zink: always set vertex dynamic states
...
even if there are no bindings, this should be set in order to further
deduplicate the number of pipelines needed
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17225 >
2022-08-04 02:16:18 +00:00
Mike Blumenkrantz
3d58642984
zink: init cache_put program fence on program creation
...
re-initializing here might overwrite an existing cache_put job
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17225 >
2022-08-04 02:16:18 +00:00
Dave Airlie
4c0a7a169d
gallivm: fix printf hook for cached shaders.
...
I've noticed this before but never tracked it down, but it's annoying.
The printf hooks would crash with debug shaders when they were loaded
from the cache. This was because nothing was initing the printf hook
in the cached path so the global was never set.
No problems just always creating this afaics.
Fixes: 333ee94285 ("gallivm: rework debug printf hook to use global mapping.")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17867 >
2022-08-04 01:35:39 +00:00
Chia-I Wu
f0558c6f1c
turnip: use SPDX-License-Identifier
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
8977913a23
turnip: remove headers from libtu_files
...
meson can work out the dependencies.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
381f234ab8
turnip: remove tu_private.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
5f7538f241
turnip: move away from tu_private.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
46baf86414
turnip: update tu_util.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
e99703b515
turnip: add tu_android.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
8e61bee30c
turnip: add tu_cmd_buffer.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
6666ec3945
turnip: add tu_device.h
...
Also drop unused
- tu_instance_extension_supported
- tu_physical_device_api_version
- tu_physical_device_extension_supported
- tu_device_submit_deferred_locked
- tu_get_perftest_option_name
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
9d9bf78565
turnip: update tu_autotune.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
4fc31e4af3
turnip: add tu_wsi.h
...
Also drop unused x11 and wayland type definitions.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
543fac108d
turnip: add tu_pass.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
3c607309c9
turnip: add tu_lrz.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
79dd12478f
turnip: add tu_dynamic_rendering.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
4f759fddba
turnip: add tu_clear_blit.h
...
Also drop unused tu_emit_load_gmem_attachment.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
6430efcab7
turnip: add tu_pipeline.h
...
Also drop unused tu_pipeline_key.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
ec5bc3d8ff
turnip: add tu_shader.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
a7fe90434c
turnip: update tu_descriptor_set.h
...
Also drop unused tu_descriptor_range.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
216f19e62f
turnip: add tu_formats.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
095dfcae45
turnip: add tu_image.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
65a5fbcb15
turnip: add tu_query.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
51d416a7e4
turnip: update tu_cs.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
2e337f05ab
turnip: add tu_suballoc.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
4d9ac3d0df
turnip: add tu_drm.h
...
Also define tu_syncobj_from_handle only when TU_USE_KGSL.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
120469efea
turnip: remove includes that are already in tu_common.h
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:12 +00:00
Chia-I Wu
0312157101
turnip: add tu_common.h as the common header
...
Move most includes and defines in tu_private.h to the new tu_common.h.
tu_common.h is a header that all other files include, mostly indirectly
through tu_private.h. The only exceptions are tu_perfetto.h and
tu_tracepoints.h, because ir3 headers are not compatible with C++.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17811 >
2022-08-04 00:40:11 +00:00
Constantine Shablya
2af624706a
anv: use nir_opt_uniform_access
...
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17558 >
2022-08-03 23:57:50 +00:00
Constantine Shablya
d2754b12cd
radv: use nir_opt_uniform_access
...
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17558 >
2022-08-03 23:57:50 +00:00
Constantine Shablya
fa5559f272
nir: add a pass to remove non-uniform access qualifier when the operands are uniform
...
Signed-off-by: Constantine Shablya <constantine.shablya@collabora.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17558 >
2022-08-03 23:57:50 +00:00
Chia-I Wu
ceb9892c1c
vulkan: extend ALLOWED_ANDROID_VERSION up to api level 31
...
Compiled from the extension lists on android11-tests-release and
android12-tests-release branches.
v2: remove VK_EXT_color_write_enable that slipped in
Reviewed-by: Emma Anholt <emma@anholt.net> (v1)
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17526 >
2022-08-03 20:09:46 +00:00
Chia-I Wu
e7bd099dea
vulkan: fix ALLOWED_ANDROID_VERSION up to api level 29
...
Compiled from the extension lists on oreo-mr1-cts-release,
pie-cts-release, and android10-tests-release branches.
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17526 >
2022-08-03 20:09:46 +00:00
Chia-I Wu
ccf5481a6c
vulkan: fix ALLOWED_ANDROID_VERSION for api level 26
...
I mainly wanted to document that the list is compiled from
dEQP-VK.info.device_extensions and
dEQP-VK.api.info.android.no_unknown_extensions on various Android CTS
release branches. But then I noticed that some extensions should have
api level 26.
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17526 >
2022-08-03 20:09:46 +00:00
Chia-I Wu
6bb524e48e
vulkan: sort ALLOWED_ANDROID_VERSION by api levels
...
v2: fix ordering of VK_KHR_driver_properties
Reviewed-by: Emma Anholt <emma@anholt.net> (v1)
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17526 >
2022-08-03 20:09:46 +00:00
Marek Olšák
49237c0eb3
radeonsi: implement a non-scaled compute blit+resolve and use it on gfx11
...
This was written from scratch. Only a few pieces were taken from Indrajit's
code. This is also much simpler, and hopefully easier to review. For example,
out-of-bounds coordinates are handled trivially.
The new blit test proves that this is identical to u_blitter except for
a few precision differences (NaNs, sRGB) where the compute blit should be
more precise.
This is only enabled on gfx11 because it's slower than the gfx blit on gfx10.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17782 >
2022-08-03 14:39:17 -04:00
Marek Olšák
098b9a8d02
ac/llvm: remove all resinfo code now that it's lowered
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Marek Olšák
9c1014f312
radeonsi,radv: run ac_nir_lower_resinfo
...
Emulating image_get_resinfo should be faster than using the hw.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Marek Olšák
4f622d62d0
ac/nir: add ac_nir_lower_resinfo
...
Emulating image_get_resinfo should be faster than using the hw.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Marek Olšák
5f772a2b75
ac/llvm: implement nir_texop_descriptor_amd
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Marek Olšák
995beca09e
ac/llvm: implement nir_intrinsic_image_deref_descriptor_amd
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Marek Olšák
9a574d3802
ac/llvm: implement nir_intrinsic_image_deref_samples_identical
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Marek Olšák
e075769a53
nir: add shader_info::uses_resource_info_query for txs, levels, samples, etc.
...
AMD will use this to execute a lowering pass conditionally.
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Marek Olšák
3098000e71
nir: add nir_texop_descriptor_amd
...
AMD will use it to emulate resinfo.
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Marek Olšák
6483fd394e
nir: add nir_intrinsic_image_descriptor_amd
...
This returns the AMD shader resource descriptor.
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Marek Olšák
ea6993f9c7
nir: add nir_intrinsic_image_samples_identical
...
radeonsi will use it
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17693 >
2022-08-03 17:44:15 +00:00
Mike Blumenkrantz
22eff86eaf
zink: use modifier feature flags during surface creation when necessary
...
cc: mesa-stable
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17773 >
2022-08-03 17:25:27 +00:00