James Park
6a189c89f8
util/xmlconfig: Disable for Windows like Android
...
The code does not compile on Windows, so just disable for now. There is
already a pattern to do this for Android.
Stop including expat dependency if building Windows.
Disable WITH_XMLCONFIG if _WIN32 is defined.
Tuck _WIN32 incompatible includes inside WITH_XMLCONFIG.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7249 >
2020-10-25 03:04:09 +00:00
Dave Airlie
fb56fb02a1
gallivm: add load/store scratch support.
...
Scratch space is per-thread space, so allocate the scratch size
* vector width, and add a per-thread base offset to each
load/store.
This is needed for OpenCL private memory space
Reviewed-by: Roland Scheidegger <sroland@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7304 >
2020-10-25 08:02:06 +10:00
Bas Nieuwenhuizen
9c1f6ed804
frontends/va: Initialize drm modifier on import.
...
On import we don't get a modifier so the modifier in the Gallium
handle should be set to DRM_FORMAT_MOD_INVALID instead of LINEAR.
Otherwise things like screen capture break if the driver actually
starts supporting modifiers.
Acked-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7302 >
2020-10-24 16:15:33 +00:00
SureshGuttula
bef6007c3a
gallium: update abs_delta segementation parameter
...
This patch updates segmentation_abs_or_delta_update value based on
VP9 bitstream header info.
Netflix videos are showing corrupted output when codec is HW vp9
and segemantion enabled.This change will fix the corruption issue.
Signed-off-by: SureshGuttula <suresh.guttula@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7290 >
2020-10-24 14:34:53 +00:00
Ruijing Dong
9c67f3d723
frontends/omx/enc: fix omx h264 encoding force-keyframe-period issue.
...
poc was not set to 0 in IDR frames except the first one.
Signed-off-by: Ruijing Dong <Ruijing.Dong@amd.com >
Reviewed-by: Leo Liu <leo.liu@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7293 >
2020-10-24 14:16:28 +00:00
Ian Romanick
390887ff58
mesa: Remove the key parameter from the _mesa_HashDeleteAll callback
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7171 >
2020-10-24 01:15:20 +00:00
Ian Romanick
cc6dcc6ab4
mesa: Remove the key parameter from the _mesa_HashWalk callback
...
_mesa_HashWalkLocked too. After the previous couple commits, there are
no users. This eliminates a lot of unused parameter warnings.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7171 >
2020-10-24 01:15:20 +00:00
Ian Romanick
ca752b08c9
i965: Get the gl_perf_query_object Id from the object
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7171 >
2020-10-24 01:15:20 +00:00
Ian Romanick
f71488d1d1
mesa: Store the atlas Id in the gl_bitmap_atlas structure
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7171 >
2020-10-24 01:15:20 +00:00
Ian Romanick
0e17bb509e
mesa: Open-code hash walk in _mesa_HashPrint
...
Previously the deleted key data would get printed at the beginning and
the end. I don't think that was intentional, so I changed it.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7171 >
2020-10-24 01:15:20 +00:00
Marek Olšák
3c2489d2e4
amd: print NUM_PKRS with AMD_DEBUG=info on gfx10.3
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7264 >
2020-10-23 20:51:25 -04:00
Marek Olšák
989cc76f0c
amd: replace 0x028848 with the register definition
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7264 >
2020-10-23 20:51:22 -04:00
Marek Olšák
e72b76b94b
amd: update gfx10-rsrc.json for gfx10.3
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7264 >
2020-10-23 20:51:20 -04:00
Marek Olšák
e477255271
amd: correct typos in gfx10-rsrc.json
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7264 >
2020-10-23 20:51:18 -04:00
Marek Olšák
19e32793b6
amd: regenerate gfx103.json from kernel headers
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7264 >
2020-10-23 20:51:14 -04:00
Vinson Lee
9d3b802c6a
scons/windows: Support build with LLVM 11.
...
Added LLVMFrontendOpenMP.
Removed LLVMX86Utils.
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Reviewed-by: Jose Fonseca <jfonseca@vmware.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7242 >
2020-10-23 17:17:01 -07:00
Marijn Suijten
f21dd3bc5a
scons: gallium/auxiliary: Unconditionally compile NIR regardless of LLVM
...
NIR sources are not depending on LLVM (anymore?) as can be seen in the
equivalent unconditional inclusion of nir/ source files in meson.build.
Symbols in these files are necessary to compile softpipe:
Linking build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1.5 ...
/usr/bin/ld: build/linux-x86_64-debug/gallium/drivers/softpipe/libsoftpipe.a(sp_state_shader.os): in function `softpipe_create_shader_state':
src/gallium/drivers/softpipe/sp_state_shader.c:146: undefined reference to `nir_to_tgsi'
/usr/bin/ld: build/linux-x86_64-debug/gallium/drivers/softpipe/libsoftpipe.a(sp_state_shader.os): in function `softpipe_create_compute_state':
src/gallium/drivers/softpipe/sp_state_shader.c:435: undefined reference to `nir_to_tgsi'
Fixes: fa483d8cd1
("android: gallium/auxiliary: Deduplicate nir_to_tgsi.c inclusion")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3669
Tested-by: Vinson Lee <vlee@freedesktop.org >
Acked-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7250 >
2020-10-23 17:34:31 +00:00
Jason Ekstrand
3ba786f624
spirv: Fix OpCopyMemorySized
...
I have no idea how we are passing CTS tests with that bug in there. I
guess by luck?
Fixes: 8323c03bbf
"spirv: Add support for OpCopyMemorySized"
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7294 >
2020-10-23 16:46:52 +00:00
Leo Liu
a071590b1d
frontends/omx/h265: Check the pps set before the scaling data
...
Certain clip has no scaling list data in the pps set
Signed-off-by: Leo Liu <leo.liu@amd.com >
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7240 >
2020-10-23 14:59:03 +00:00
Leo Liu
08762d5171
frontends/omx/dec: Use the known codec profile when allocating buffers
...
We should use it since the profile has been known already,
otherwise it will get incorrect buffers in some cases.
Signed-off-by: Leo Liu <leo.liu@amd.com >
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7240 >
2020-10-23 14:59:03 +00:00
Alyssa Rosenzweig
56f90a6ac1
pan/bi: Account for bool32 ld_ubo reads
...
Fixes crash in sway.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
3cdca1514f
panfrost: Don't advertise MSAA on Bifrost
...
Not yet supported and rather broken.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
f0e65805cb
panfrost: Drop PIPE_CAP_GLSL_FEATURE_LEVEL for Bifrost
...
We don't want derivative instructions sneaking in from desktop GL before
we support them.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
b9a136cdd1
panfrost: Implement BGRA textures
...
Stopgap before the full format rework.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
048e431542
panfrost: Fix component order XML
...
For v7. This should be complete and correct now.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Fixes: 8389976b7c
("panfrost: XML-ify the blend descriptors")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
25b66e61f7
panfrost: Calculate thread count on Bifrost
...
Since the register is missing in practice we need to apply the
per-architecture default.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
fb32406e56
panfrost: Don't export queries
...
They should be cached onto the device anyway.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
f4ecc432bf
panfrost: Record architecture major version
...
This tends to be easier to work with than the raw GPU ID and needs some
special casing for Midgard vs Bifrost/Valhall.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
81b28ebcb5
pan/bi: Use nir_undef_to_zero
...
We don't handle undefs explicitly in NIR->BIR which means if they aren't
optimized out they won't be RA'd to anything and then backend RA will
crash (as occurs in a glamor shader seen in MATE).
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
86b2b4eb76
panfrost: Move nir_undef_to_zero to common util/
...
Will use for Bifrost as well.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
f0421099ef
pan/bi: Pipe through tls_size
...
So we have stack memory allocated.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
b43b1535e2
pan/bi: Implement spilling
...
Now that all the helpers are in place, we can wire it up.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
e33b2976f3
pan/bi: Pack LOAD/STORE
...
LOAD is the same as LOAD_UNIFORM (same instruction, I need to
deduplicate the IR), STORE is basically the same as LOAD.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
74be83d876
pan/bi: Add bi_foreach_clause_in_block_safe helper
...
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
2ff54cacf0
pan/bi: Factor out singleton construction from scheduler
...
We'll reuse the logic in spilling.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
2d0f46a181
pan/bi: Implement bi_spill_register
...
Given a node to spill, insert the appropriate loads and stores to spill
it.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
82dbc4ea78
pan/bi: Add helpers for working with singletons
...
Clauses with exactly one instruction (not canonical terminology to my
knowledge, but the notation is suggestive). Since these are isomorphic
to the instructions themselves, we want helpers to go between the forms.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
1db83fc75d
pan/bi: Add bi_rewrite_index_src_single helper
...
Ported from Midgard.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
9e915fd5f7
pan/bi: Add bi_fill
...
Likewise generates LOAD from tls.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
486a820bc6
pan/bi: Add bi_spill helper
...
Generates STORE to TLS.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
171bf19917
pan/bi: Add spills/fills parameters
...
For future shader-db integration.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
7246dd88cd
pan/bi: Implement bi_choose_spill_node
...
Simplified from Midgard.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
ab9abc9052
pan/bi: Add no_spill flag to IR
...
Will be used to prevent double spills.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
ad8a8499c9
pan/bi: Stub spilling
...
Like Midgard.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
8477678cfe
pan/bi: Fix handling of small constants in bi_lookup_constant
...
Streamline the logic and the bug goes away.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
82a62a6f33
pan/bi: Drop 64-bit constant support
...
We don't support 64-bit clauses and don't intend to (v6 only, v7 doesn't
support them) so this is irrelevant.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
d2bfcba54d
pan/mdg: Cleanup mir_rewrite_index_src_single
...
Use idiomatic iterator.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
b19d9c86a8
panfrost: Drop panfrost_vt_emit_shared_memory
...
Let's reuse the same routines across Midgard/Bifrost so we get proper
handling of spilling.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Alyssa Rosenzweig
e6152091ca
panfrost: Use canonical characterization of tls_size
...
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00
Boris Brezillon
a33827d3d3
panfrost: Get rid of the non-native wallpering bits
...
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206 >
2020-10-23 14:48:23 +00:00