Samuel Pitoiset
9b80f4d5f2
radv: rename radv_shader_variant to radv_shader
...
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/13548 >
2021-11-01 20:04:45 +00:00
Samuel Pitoiset
eeb034f2cc
docs: document RADV_THREAD_TRACE_* envvars
...
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/13477 >
2021-11-01 17:32:50 +00:00
Samuel Pitoiset
3839f3a486
radv: stop reporting SQTT/RGP support as experimental
...
It can be considered stable these days. This also now reports the
buffer size and if instruction timing is enabled/disabled.
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/13477 >
2021-11-01 17:32:50 +00:00
Samuel Pitoiset
74e625f057
radv: enable SQTT instruction timing by default
...
It seems stable enough to turn it on by default. This replaces
RADV_THREAD_TRACE_PIPELINE by RADV_THREAD_TRACE_INSTRUCTION_TIMING
which is enabled by default.
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/13477 >
2021-11-01 17:32:50 +00:00
Samuel Pitoiset
7fd414ec84
radv: remove useless checks about GFX7 for SQTT
...
It's only enabled on GFX8+.
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/13477 >
2021-11-01 17:32:50 +00:00
Samuel Pitoiset
b35fd1bff6
radv: move freeing the trigger SQTT file at a better place
...
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/13477 >
2021-11-01 17:32:50 +00:00
Christian Gmeiner
c5a1df095c
ci/etnaviv: add manual piglit testing
...
Initial work by Christian, polishing by @anholt. Takes ~21 minutes, and
flakes may not be fully classified yet.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13600 >
2021-11-01 09:18:23 -07:00
Emma Anholt
d2440b27e5
ci/etnaviv: Add some more deqp flakes I've seen in recent runs.
...
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13600 >
2021-11-01 09:18:23 -07:00
Emma Anholt
7355694e11
ci/etnaviv: Fix the dependency for the build artifacts.
...
This is an armhf board, not arm64. Fixes 404s from trying to pull the
artifacts early.
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13600 >
2021-11-01 09:18:23 -07:00
Jason Ekstrand
79f57f6893
lavapipe: Don't wrap errors returned from vk_device_init in vk_error
...
vk_device_init already calls vk_error so this is redundant. Also, it
makes vk_error grumpy to see a VK_ERROR_FEATURE_NOT_PRESENT on an
instance rather than a physical device.
Fixes: 47adb11143 ("lavapipe: Switch to the new vk_error helpers")
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13619 >
2021-11-01 14:30:32 +10:00
Mike Blumenkrantz
73af67883d
zink: force float dest types on some alu results
...
these aren't exact matches in spirv, so set the expected result type
to float where necessary
cc: mesa-stable
fixes #5567
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13562 >
2021-11-01 01:15:20 +00:00
Mike Blumenkrantz
c73f5a0082
zink: add more int/float types to cast switching in ntv
...
these come from opcode results, which are not always 32bit
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13562 >
2021-11-01 01:15:20 +00:00
Mike Blumenkrantz
69501ff458
zink: explicitly enable VK_EXT_shader_subgroup_ballot
...
this is needed when not creating 1.2 contexts
cc: mesa-stable
ref #5567
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13562 >
2021-11-01 01:15:20 +00:00
Mike Blumenkrantz
ccfe36fffa
zink: clamp max buffer sizes to smallest buffer heap size
...
the max driver limit for these is irrelevant if there isn't enough memory
to allocate a buffer of that size
KHR-GL46.texture_buffer.texture_buffer_max_size
cc: mesa-stable
fixes #5568
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13584 >
2021-11-01 01:01:33 +00:00
Mike Blumenkrantz
fd2b47281f
zink: error when trying to allocate a bo larger than heap size
...
this is illegal and would fail anyway
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13584 >
2021-11-01 01:01:33 +00:00
Mike Blumenkrantz
aa5e544644
zink: don't clamp 2D_ARRAY surfaces to 2D
...
another thing that used to be needed but now isn't
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13586 >
2021-11-01 00:49:24 +00:00
Mike Blumenkrantz
8d2280f533
zink: don't clamp cube array surfacess to cubes
...
this was probably necessary for some other reason that has since been fixed,
and instead now just creates validation spam
cc: mesa-stable
fixes #5566
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13586 >
2021-11-01 00:49:24 +00:00
Mike Blumenkrantz
6ab915960c
zink: be more spec-compliant for unnormalizedCoordinates samplers
...
the spec prohibits using most stuff with these, but also they probably
are just texelfetch anyway so it doesn't matter
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13587 >
2021-11-01 00:33:19 +00:00
Dave Airlie
75dc302340
lavapipe: drop EXT_acquire_xlib_display
...
This has a requirement on the display extensions.
VK-GL-CTS: dEQP-VK.info.instance_extensions
Fixes: 1d574d4860 ("lavapipe: remove display extension support")
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13616 >
2021-11-01 09:46:24 +10:00
Rob Clark
7e998783db
freedreno/ir3: xfb fix for duplicate outputs
...
We can't rely on regid to be unique, shaders can have multiple varyings
with the same output value. Normally shader linking deduplicates these,
but we still need to handle the case for xfb. So use slot instead as
the unique identifier.
Fixes KHR-GLES31.core.gpu_shader5.fma_precision_*
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13605 >
2021-10-31 16:30:13 +00:00
Rob Clark
f6f760a98d
freedreno/ir3/print: Show end's outidxs
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13605 >
2021-10-31 16:30:13 +00:00
Mike Blumenkrantz
6239adebbc
zink: flag renderpass change when toggling fbfetch
...
ensure the input attachment gets updated
fixes running
KHR-GL46.blend_equation_advanced.blend_all.GL_MULTIPLY_KHR_all_qualifier
after
KHR-GL46.blend_equation_advanced.BlendEquationSeparate
cc: mesa-stable
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13598 >
2021-10-31 14:56:51 +00:00
Jordan Justen
2d041d5f1e
Revert "iris: Disable I915_FORMAT_MOD_Y_TILED_GEN12* on adl-p/display 13"
...
Round and round we go :)
In the "drm/i915/adlp/fb: Remove CCS FB stride restrictions" series,
https://lists.freedesktop.org/archives/intel-gfx/2021-October/281768.html ,
it now appears that kernel can allow these modifiers to work with
adl-p.
This reverts commit d4174f5f05 .
Fixes: d4174f5f05 ("iris: Disable I915_FORMAT_MOD_Y_TILED_GEN12* on adl-p/display 13")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com >
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13565 >
2021-10-31 01:24:43 -07:00
Connor Abbott
68a62226e4
ir3: Don't emit barriers for make_available/make_visible
...
When looking at the output of some CTS tests, I realized that the
barriers vtn currently inserts to emulate coherent memory accesses
were being turned into fences, even though we never needed to do
anything special for coherent accesses before so presumably accesses are
already cache-coherent by default. Ignore make_visible/make_available
semantics to get us back to parity with the old path.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13599 >
2021-10-29 23:38:10 +00:00
Jason Ekstrand
4108fda426
vulkan: Move all the common object code to runtime/
...
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Jason Ekstrand
4af0c038cf
vulkan: Move trampoline code-gen to its own file
...
This way we sepaprate the raw tables from the code that actively depends
on vk_device and friends.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Jason Ekstrand
d53f20ff4d
vulkan: Break entrypoint parsing into its own file
...
Instead of having a bunch of stuff depend on vk_dispatch_table_gen to
get the list of entrypoints, pull that into its own vk_entrypoints file.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Jason Ekstrand
8f9e0c2816
vulkan/dispatch_table: EntrypointBase doesn't need to derive from object
...
We use python3 now and everything derives from object automatically
Suggested-by: Dylan Baker <dylan@pnwbakers.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Jason Ekstrand
3fd7cc9d42
vulkan: Drop unnecessary [en]coding comments from python generators
...
Suggested-by: Dylan Baker <dylan@pnwbakers.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Jason Ekstrand
a208b849f3
vulkan: Rework mako error handling in python generators
...
Suggested-by: Dylan Baker <dylan@pnwbakers.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Jason Ekstrand
006633c043
lavapipe: Use vk_instance_get_proc_addr_unchecked for WSI
...
It exists precisely to handle this case without the driver looking up
trampolines itself. This is nearly identical to what ANV does.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Jason Ekstrand
5ccba1576d
v3dv: Use vk_instance_get_proc_addr_unchecked for WSI
...
It exists precisely to handle this case without the driver looking up
trampolines itself. This is nearly identical to what ANV does.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Jason Ekstrand
837a142f2d
vulkan/vk_extensions_gen: Stop including vk_object.h
...
All we need from it is vulkan_common.h for VkExtensionProperties.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Jason Ekstrand
741262ee01
vulkan/vk_extensions_gen: Drop support for extra includes
...
No one is using this anymore.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13156 >
2021-10-29 23:12:32 +00:00
Vinson Lee
20620af1e4
clover: Add constructor for image_rd_argument.
...
Fix defect reported by Coverity Scan.
Uninitialized pointer field (UNINIT_CTOR)
member_not_init_in_gen_ctor: The compiler-generated constructor for this class does not initialize st.
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13500 >
2021-10-29 22:57:46 +00:00
Mike Blumenkrantz
e8f18385e0
zink: inject LOD for sampler version of OpImageQuerySize
...
this is required by spec
cc: mesa-stable
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13585 >
2021-10-29 19:05:07 +00:00
Mike Blumenkrantz
87fbb0eab0
zink: be more permissive for injecting LOD into texture() instructions
...
there's other variants of implicit lod sampling, and none of them are valid
outside fragment stage
Fixes: 3ad06b6949 ("zink: always use explicit lod for texture() when legal in non-fragment stages")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13585 >
2021-10-29 19:05:07 +00:00
Connor Abbott
8d0b508d91
ir3: Emit barriers for images again
...
This was accidentally broken with the nir_var_image work.
Fixes: e87dbfd3 ("ir3: Check for nir_var_mem_image in shared_barrier handling")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13593 >
2021-10-29 16:33:04 +00:00
Marek Olšák
8bfa146b80
radeonsi: print the border color error message only once
...
Cc: 21.2 21.3 <mesa-stable@lists.freedesktop.org >
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13590 >
2021-10-29 12:33:55 +00:00
Marek Olšák
a4e0b02f85
mesa: skip strlen when hashing strings for ProgramResourceHash
...
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507 >
2021-10-29 07:19:20 -04:00
Marek Olšák
7fe3cc94eb
mesa: add separate hash tables for each GLSL resource type
...
This removes the malloc for the key, the associated string pointer
indirection, and hopefully the hash table has fewer elements than
the global one.
This decrease overhead of glGetUniformLocation.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507 >
2021-10-29 07:19:20 -04:00
Marek Olšák
1b1425d45c
mesa: handle hash collisions in program resource lookups (e.g. uniforms)
...
We computed the hash of the name and used it as a key, and then the table
computed the hash of the hash.
Do it properly: Pass the name as a string into the hash table and let
the table handle everything.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507 >
2021-10-29 07:19:20 -04:00
Marek Olšák
aad903c3f5
mesa: preparse [ and [0] in gl_resource_name and use it in shader_query.cpp
...
strrchr is very expensive here.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507 >
2021-10-29 07:19:20 -04:00
Marek Olšák
4b67055fef
mesa: rename locals in _mesa_program_resource_find_name for clarity
...
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507 >
2021-10-29 07:19:20 -04:00
Marek Olšák
22d51f3c92
mesa: precompute strlen in gl_resource_name::length and use it
...
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507 >
2021-10-29 07:19:20 -04:00
Marek Olšák
81ad6a8b64
mesa: don't compute the same strlen up to 3x in _mesa_program_resource_find_name
...
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507 >
2021-10-29 07:19:20 -04:00
Marek Olšák
dea558cbd2
glsl: add gl_resource_name to precompute "name" properties later
...
This just adds the structure with a name and its update function.
strlen and others will be added in the following commits. The idea is to
parse and analyze the name in advance to make glGetUniformLocation faster.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507 >
2021-10-29 07:19:18 -04:00
Marek Olšák
c216f1931d
mesa: use alloca in search_resource_hash
...
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507 >
2021-10-29 05:09:55 -04:00
Samuel Pitoiset
1776d741c5
zink: add CI lists and deqp-suite configuration for RADV
...
This is used by our local CI (ie. vk-cts-image) which is a separate
project outside of Mesa. We use it for testing RADV since a while.
The CI lists have been created against Navi2x (Sienna Cichlid).
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13573 >
2021-10-29 08:28:02 +00:00
Marek Olšák
76892c4e46
vbo: restructure vbo_save_vertex_list to get more cache hits
...
- Move more stuff into the cold structure.
- Reorder fields for better packing.
- Flatten the gallium and merged nested structures.
Since we have tens of thousands of these, decreasing the size improves
performance by 13%.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13506 >
2021-10-29 07:33:50 +00:00