Marek Olšák
d7a36d8907
util/cpu_detect: print num_L3_caches and num_cpu_mask_bits
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12335 >
2021-08-31 22:29:21 +00:00
Quantum
e52aa1edff
main: allow all external textures for BindImageTexture
...
According to OES_EGL_image_external_essl3:
On p. 196 in the errors section for BindImageTexture, replace the
last error with the following:
"An INVALID_OPERATION error is generated if <texture> is neither the
name of an immutable texture object, nor the name of an external
texture object."
According to OES_EGL_image_external:
The command
void EGLImageTargetTexture2DOES(enum target, eglImageOES image);
with <target> set to TEXTURE_EXTERNAL_OES defines the currently bound
external texture object to be a target sibling of <image>.
...
If <target> is not TEXTURE_EXTERNAL_OES, the error INVALID_ENUM is
generated. (Note: if GL_OES_EGL_image is supported then <target> may
also be TEXTURE_2D).
Currently, mesa only allows GL_TEXTURE_EXTERNAL_OES textures to be bound
by glBindImageTexture. However, the language of the specification does not
appear to use "external" to refer to GL_TEXTURE_EXTERNAL_OES specifically,
since OES_EGL_image_external allows external eglImageOES to be attached
to GL_TEXTURE_2D in the presence of GL_OES_EGL_image. Thus, it should be
interpreted to refer to all types of external textures, including 2D
textures attached via glEGLImageTargetTexture2DOES.
Fixes: ed43dd62ac ("main: allow external textures for BindImageTexture")
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12383 >
2021-08-31 22:00:16 +00:00
Yiwei Zhang
4a2adb36ae
venus: set maxMipLevels to 1 for ahb images
...
Fixes: dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.*
Cc: 21.2.2 mesa-stable
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Ryan Neph <ryanneph@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12639 >
2021-08-31 21:50:25 +00:00
Keith Packard
6440523077
iris: Map scanout buffers WC instead of WB [v2]
...
The scanout engine is not coherent with rendering, so make sure
scanout buffers are mapped WC. This ensures that CPU rendering as done
by the Xserver gets flushed to the frame buffer immediately instead of
waiting for some future time.
v2:
Also mark shared buffers to be allocated for scanout
in case they are being used for scanout elsewhere.
Signed-off-by: Keith Packard <keithp@keithp.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5231
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12259 >
2021-08-31 21:05:18 +00:00
Chia-I Wu
86cb30baaf
venus: fix device group enumeration with unsupported devices
...
instance->physical_devices includes only supported devices, not all
devices. One example is that it does not include 1.0 devices. We need
to fix up VkPhysicalDeviceGroupProperties to exclude unsupported
devices.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org >
Reviewed-by: Ryan Neph <ryanneph@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12637 >
2021-08-31 20:54:06 +00:00
Chia-I Wu
a7ebcbbd6b
venus: pre-initialize device groups
...
We don't need to worry about how vkEnumeratePhysicalDeviceGroups is
called (props is NULL, props is non-NULL but count is 0, etc.) this way.
It also allows us to fix up VkPhysicalDeviceGroupProperties easily.
v2: let the for-loop increment (Yiwei)
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org > (v1)
Reviewed-by: Ryan Neph <ryanneph@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12637 >
2021-08-31 20:54:06 +00:00
Chia-I Wu
e2020484eb
venus: minor cleanup to physical device init loop
...
v2: let the for-loop increment (Yiwei)
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org > (v1)
Reviewed-by: Ryan Neph <ryanneph@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12637 >
2021-08-31 20:54:06 +00:00
Connor Abbott
88142d8a5a
ir3/ra: Fix type mismatch when comparing intervals
...
This was once a physreg, back in the very beginning of the new RA, but
now the caller passes an unsigned int.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5163
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12487 >
2021-08-31 20:33:49 +00:00
Connor Abbott
62a7acee93
ir3: Make ir3_register::name 32-bits
...
It was overflowing with
dEQP-VK.spirv_assembly.instruction.compute.spirv_ids_abuse.lots_ids.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12487 >
2021-08-31 20:33:49 +00:00
Connor Abbott
82c3dc220e
ir3: Make instruction IP 32 bits
...
a6xx supports shaders with more than 64k dwords, or at least the shader
size register has increased in size, and the matching name is gone so
there's no reason to be clever here. This doesn't fix anything at the
moment.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12487 >
2021-08-31 20:33:49 +00:00
Connor Abbott
9fd1616842
ir3: Remove ir3_instr::name
...
Unused since the switch to new RA.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12487 >
2021-08-31 20:33:49 +00:00
Emma Anholt
600bdde2c1
nir_to_tgsi: Use explicit sizes of NIR variables for UBO declarations.
...
This fixes duplicate CB0 declarations, missing interface array
declarations, and too-low sizes of UBOs containing multiple nir_variables.
Closes : #4810
Reviewed-by: Adam Jackson <ajax@redhat.com >
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12175 >
2021-08-31 20:12:16 +00:00
Emma Anholt
33182c555f
nir/nir_lower_uniforms_to_ubo: Set the explicit stride of the UBO 0 uniform.
...
Normal UBOs have explicit strides on them, make our lowered one behave the
same.
Reviewed-by: Adam Jackson <ajax@redhat.com >
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12175 >
2021-08-31 20:12:16 +00:00
Emma Anholt
01759d3fb2
nir: Set .driver_location for GLSL UBO/SSBOs when we lower to block indices.
...
Without this, there's no way to match the UBO nir_variable declarations to
the load_ubo intrinsics referencing their data.
Reviewed-by: Adam Jackson <ajax@redhat.com >
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12175 >
2021-08-31 20:12:16 +00:00
Ian Romanick
f2c69f8306
anv: Enable KHR_shader_integer_dot_product
...
For now, only mark the 4x8BitPacked variants as accelerated.
Applications are unlikely to use the "add with saturate" opcodes from
VK_INTEL_shader_integer_functions2, so, technically, all of the
AccumulatingSaturating variants "[provide] a performance advantage over
user-provided code composed from elementary instructions..." on all
Intel platforms. If we encounter an application that cares, we can do
things differently then. Ditto for the non-packed 8Bit, 4-element
vector variants.
v2: Don't memset props as this also zeros sType and pNext. Noticed by
Georg Lehmann in !12617 .
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12624 >
2021-08-31 19:57:21 +00:00
Mike Blumenkrantz
24b8fc38c3
zink: ci updates
...
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:30 +00:00
Mike Blumenkrantz
88c3904289
docs: mark off ES 3.2 for zink
...
blammo
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:30 +00:00
Mike Blumenkrantz
1bbab34660
zink: enable fbfetch pipe cap
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
3b04a3c797
zink: add a renderpass flag for input attachment layout handling
...
this has special requirements
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
8fb1dff797
zink: update push descriptor set anytime fbfetch changes
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
48676b64a0
zink: add an input attachment to the gfx push set layout to handle fbfetch
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
8529c64fb7
zink: fix lazy descriptor deinit
...
this used to be the right conditional, but it's not anymore
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
08050b7e98
zink: add an input attachment to the gfx push set layout to handle fbfetch
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
052f85ea1b
zink: flag color attachment images as input attachments at creation
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
d31b7dcefd
zink: track fbfetch info on context, update as needed
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
45a1d43439
zink: refactor descriptor layout/template creation a little
...
make the push sets more flexible
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
8fb7875291
zink: add a compiler pass to translate fbfetch -> input attachments
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
c9edf964b0
zink: emit fbfetch variables as ntv input attachments
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
73456393d8
zink: add input attachment thingy for spirv builder
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603 >
2021-08-31 19:45:29 +00:00
Mike Blumenkrantz
25fe797104
zink: move alphaToOne warning to a dynamic warning
...
stop spamming these if they aren't even being used
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12647 >
2021-08-31 19:32:26 +00:00
Emma Anholt
3e94af0629
ci/llvmpipe: Add a fractional ASan run.
...
This reproduces #5254 and seems like a good idea to be checking normally.
I think running some desktop GL would also be useful here, but it turns
out that desktop glcts is pretty leaky/overflowy inside of deqp.
Acked-by: Daniel Stone <daniels@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12493 >
2021-08-31 19:08:40 +00:00
Marek Olšák
dab8bded4d
mesa: add environment variable MESA_NO_SHADER_REPLACEMENT
...
for performance comparisons
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12492 >
2021-08-31 18:25:48 +00:00
Marek Olšák
805c6a37b8
meson: add missing custom target to generate shader_replacement.h
...
for custom shader replacements enabled by -Dcustom-shader-replacement=path.
process_shaders.py should generate shader_replacement.h, which should
contain shaders and their substitutions.
Loosely based on Pierre-Eric's commit.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12492 >
2021-08-31 18:25:48 +00:00
Italo Nicola
dcc89c9165
virgl/ci: enable some traces that were previously crashing
...
Most of these are fixed in recent mesa and virglrenderer versions, but
some might still be flaky. We'll keep an eye on them and if they are
flaky we can disable them.
Signed-off-by: Italo Nicola <italonicola@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12643 >
2021-08-31 17:41:57 +00:00
Italo Nicola
b986b0a79f
virgl/ci: stop overriding GL version when running traces
...
These environment variables make some traces that require higher GLSL
versions crash.
Signed-off-by: Italo Nicola <italonicola@collabora.com >
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12643 >
2021-08-31 17:41:57 +00:00
Tomeu Vizoso
ddee006c1d
ci: Ensure the DRM device is open
...
... before changing the PM settings.
Otherwise, we hit a kernel warning in Qualcomm devices and the device is
left in a non-functional state.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Acked-by: Daniel Stone <daniels@collabora.com >
Acked-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12644 >
2021-08-31 17:16:44 +00:00
Rhys Perry
33ddbd220f
aco: remove DPP when applying constants/literals/sgprs
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12601 >
2021-08-31 16:58:20 +00:00
Rhys Perry
7d95f7510f
aco/tests: test copy propagation with DPP instructions
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12601 >
2021-08-31 16:58:20 +00:00
Rhys Perry
e27946ca11
aco: don't constant propagate to DPP instructions
...
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12601 >
2021-08-31 16:58:20 +00:00
Leo Liu
f4b61e9061
radeon/vcn: add a handling of error for incorrect reference lists
...
Use the first dpb buffer instead of the NULL pointer sent to hardware.
Signed-off-by: Leo Liu <leo.liu@amd.com >
Reviewed-by: James Zhu <James.Zhu@amd.com >
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12610 >
2021-08-31 15:43:21 +00:00
Leo Liu
6a0cadd8ec
radeon/vcn: reuse the dpb buffers when with the same size.
...
To avoid allocate/deallocate frequently.
Signed-off-by: Leo Liu <leo.liu@amd.com >
Reviewed-by: James Zhu <James.Zhu@amd.com >
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12610 >
2021-08-31 15:43:21 +00:00
liuyujun
2bdc0bb324
gallium: fix surface->destroy use-after-free
...
regen surface on every update framebuffer
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Signed-off-by: liuyujun <liuyujun@uniontech.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12520 >
2021-08-31 14:20:07 +00:00
Lionel Landwerlin
838c0e5eef
intel/fs: fix framebuffer reads
...
We're missing some restrictions on those messages.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com >
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5292
Cc: mesa-stable
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12615 >
2021-08-31 11:52:39 +00:00
Filip Gawin
451e97028e
meson: add crocus to default group of drivers for x86/x86_64
...
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12636 >
2021-08-31 11:13:09 +00:00
Samuel Pitoiset
640f15edd7
radv/llvm: fix invalid IR when converting triangle strips to indices
...
Operand 0 of LLVMBuildSelect() should be i1.
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/12616 >
2021-08-31 09:56:27 +02:00
Samuel Pitoiset
72b6b02e09
ac/llvm: fix huge alignment when loading from shared memory
...
LLVM doesn't support huge alignments, also it can optimize the shared
loads, so it's unecessary to emit better (but broken) LLVM IR.
Fixes a bunch of crashes with RADV_DEBUG=llvm,checkir.
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/12616 >
2021-08-31 09:56:27 +02:00
Samuel Pitoiset
e72c2e36e0
ac/llvm: adjust assertion for nir_intrinsic_terminate
...
Fixes dEQP-VK.spirv_assembly.instruction.terminate*.
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/12616 >
2021-08-31 09:56:27 +02:00
Dave Airlie
1ef97ea0ab
meson: fix regression finding shm dep
...
Just copy the dep into both places.
Fixes: b5c390c113 ("vulkan/wsi: add support for detecting mit-shm pixmaps.")
Reviewed-by: Adam Jackson <ajax@redhat.com >
Tested-by: Zoltán Böszörményi <zboszor@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12635 >
2021-08-31 14:18:43 +10:00
Mike Blumenkrantz
213548251b
zink: explicitly end renderpass before running dispatch
...
it's possible that nothing will end the renderpass otherwise
Reviewed-by: Dave Airlie <airlied@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12581 >
2021-08-31 02:17:40 +00:00
Rob Clark
f05270ed7f
freedreno/ci: Bring fd farm back online after move
...
Signed-off-by: Rob Clark <robdclark@chromium.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12608 >
2021-08-30 23:48:57 +00:00