- 30 Oct, 2020 1 commit
-
-
maurossi authored
(v2) Remove include from Android.common.mk Avoid adding libsync shared dependency in Android.common.mk Add libsync shared dependency where needed, for easier tracking (v1) Fixes the following building errors: In file included from external/mesa/src/gallium/drivers/freedreno/a3xx/fd3_query.c:27: In file included from external/mesa/src/gallium/drivers/freedreno/freedreno_query_hw.h:33: In file included from external/mesa/src/gallium/drivers/freedreno/freedreno_context.h:33: external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found ^~~~~~~~~~~~~~~~ 1 error generated. In file included from external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:41: external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found ^~~~~~~~~~~~~~~~ 1 error generated. In file included from external/mesa/src/gallium/auxiliary/util/u_tests.c:513: external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found ^~~~~~~~~~~~~~~~ 1 error generated. FAILED: out/target/product/x86_64/obj_x86/SHARED_LIBRARIES/i965_dri_intermediates/LINKED/i965_dri.so ... external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:223: error: undefined reference to 'sync_wait' external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:287: error: undefined reference to 'sync_wait' FAILED: out/target/product/x86_64/obj_x86/SHARED_LIBRARIES/gallium_dri_intermediates/LINKED/gallium_dri.so ... external/mesa/src/util/libsync.h:142: error: undefined reference to 'sync_merge' external/mesa/src/gallium/drivers/freedreno/freedreno_fence.c:94: error: undefined reference to 'sync_wait' external/mesa/src/gallium/auxiliary/util/u_tests.c:575: error: undefined reference to 'sync_wait' Fixes: 27b88879 ("android: Add pre-4.7 Android kernel compatibility to our libsync header.") Signed-off-by:
Mauro Rossi <issor.oruam@gmail.com> Acked-by:
Rob Clark <robdclark@chromium.org> Acked-by:
Eric Anholt <eric@anholt.net> Acked-by:
Tapani Pälli <tapani.palli@intel.com> Part-of: <mesa/mesa!7306>
-
- 29 Oct, 2020 20 commits
-
-
Timothy Arceri authored
The CTS now tests to make sure these are not allowed. However, previously drivers (including Mesa) would allow them to exist and just issue a warning. Some old applications such as Champions of Regnum seem to depend on this. Closes: mesa/mesa#422 Fixes: 43047384 ("glsl/glcpp: Promote "extra token at end of directive" from warning to error") Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!7361>
-
Caio Marcelo de Oliveira Filho authored
Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Part-of: <mesa/mesa!7340>
-
Alejandro Piñeiro authored
R11G11B10_FLOAT and R9G9B9E5_FLOAT are three-component formats, so we shouldn't use 1 for the alpha component. We don't know about any test/app getting fixed with this change, but it is the equivalent to v3dv commit e07c5467. Vulkan CTS has some tests that used that format and failed if not using XYZ1. Reviewed-by:
Iago Toral Quiroga <itoral@igalia.com> Reviewed-by:
Jose Maria Casanova Crespo <jmcasanova@igalia.com> Part-of: <mesa/mesa!7365>
-
Dave Airlie authored
Due to flow control we can end up with random values in here having side effects. This fixes a crash in gtk4-demo. Fixes: 44a6b010 ("gallivm: add nir->llvm translation (v2)") Reviewed-by:
Roland Scheidegger <sroland@vmware.com> Part-of: <mesa/mesa!7327>
-
Rhys Perry authored
Apply SGPRs/modifiers when possible and try not to break when SDWA instructions are encountered. No shader-db changes. Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7349>
-
Rhys Perry authored
It doesn't make sense to do this. Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7349>
-
Rhys Perry authored
fossil-db (Navi): Totals from 16 (0.01% of 137413) affected shaders: CodeSize: 6788 -> 6724 (-0.94%) Instrs: 1250 -> 1234 (-1.28%) Cycles: 4984 -> 4920 (-1.28%) fossil-db (Polaris): Totals from 16 (0.01% of 138881) affected shaders: CodeSize: 7024 -> 6960 (-0.91%) Instrs: 1337 -> 1321 (-1.20%) Cycles: 5332 -> 5268 (-1.20%) Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7349>
-
Rhys Perry authored
Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7349>
-
Rhys Perry authored
Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7349>
-
Rhys Perry authored
This seems to give no measurable benefit to Strange Brigade or Shadow of Mordor, but it's simple to do, helps in theory and all other compilers do it. Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Timur Kristóf <timur.kristof@gmail.com> Part-of: <mesa/mesa!5919>
-
Daniel Schürmann authored
This fixes a couple of issues on GFX67 and has no negative impact on newer hardware Reviewed-by:
Rhys Perry <pendingchaos02@gmail.com> Part-of: <mesa/mesa!7105>
-
Marcin Ślusarz authored
Quiets 16 Coverity warnings like: CID 1403401: Identical code for different branches (IDENTICAL_BRANCHES) Signed-off-by:
Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <mesa/mesa!7351>
-
Marcin Ślusarz authored
$2 is exp2, exp2 is defined to be llint and llint is defined to be unsigned long long int. Fixes error reported by Coverity: CID 1451141: Invalid type in argument to printf format specifier (PRINTF_ARGS) Fixes: 70308a5a ("intel/tools: New i965 instruction assembler tool") Signed-off-by:
Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <mesa/mesa!7351>
-
Philipp Zabel authored
Fix the gbm_dri_bo_get_handle_for_plane use case by allowing plane > 0 in dri2_from_planar for images with multiple planes in separate chained texture resources. Not all multiplanar resources are chained, though. The iris aux buffer is a separate plane in the same resource. Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by:
Lucas Stach <l.stach@pengutronix.de> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!7028>
-
Philipp Zabel authored
Images with multiple planes in separate chained texture resources should report the correct number of planes. Signed-off-by:
Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by:
Eric Anholt <eric@anholt.net> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!7028>
-
Lucas Stach authored
Unconditionally requesting both bindings can lead to premature failure to create a valid image. Signed-off-by:
Lucas Stach <l.stach@pengutronix.de> Reviewed-by:
Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Part-of: <mesa/mesa!7028>
-
Karol Herbst authored
This is a C++20 feature... Fixes: 8850a631 ("radv/aco,nir/lower_subgroups: don't lower elect") Closes: mesa/mesa#3693Signed-off-by:
Karol Herbst <kherbst@redhat.com> Tested-by:
Andrew Randrianasulu <randrianasulu@gmail.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Part-of: <mesa/mesa!7338>
-
Alejandro Piñeiro authored
So far for the formats E5B9G9R9_UFLOAT_PACK32 and B10G11R11_UFLOAT_PACK32 we were using a XYZW swizzle. But from Vulkan spec those are three-component, without alpha, formats. So we should use XYZ1 instead, as we were already doing for other three-component formats. Curiously the only case where this raised a problem were when using clamp to border with transparent black. This change allows us to remove the code that handled only that specific case. Reviewed-by:
Iago Toral Quiroga <itoral@igalia.com> Part-of: <mesa/mesa!7355>
-
Tomeu Vizoso authored
Probably a copy-paste error. Signed-off-by:
Tomeu Vizoso <tomeu.vizoso@collabora.com> Fixes: cd31f46f ("virgl/drm: add resource create blob function") Reviewed-by:
Gurchetan Singh <gurchetansingh@chromium.org> Part-of: <mesa/mesa!7332>
-
Vinson Lee authored
Fix defect reported by Coverity Scan. Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member continue_from_then is not initialized in this constructor nor in any functions that it calls. Suggested-by:
Timothy Arceri <tarceri@itsqueeze.com> Signed-off-by:
Vinson Lee <vlee@freedesktop.org> Reviewed-by:
Timothy Arceri <tarceri@itsqueeze.com> Part-of: <mesa/mesa!7283>
-
- 28 Oct, 2020 19 commits
-
-
Timur Kristóf authored
If the workgroup_size variable is lower than the actual workgroup size, that means it's possible that ACO won't emit some s_barrier instructions when in fact it should. This can possibly cause a GPU hang. This is just for the sake of general correctness, currently this can't cause a real problem because the maximum vertex count is always greater than (or equal to) the primitive count in GS, and already takes into account the number of GS invocations. Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Rhys Perry <pendingchaos02@gmail.com> Part-of: <mesa/mesa!7232>
-
Timur Kristóf authored
This is a workaround for a bug in Navi 1x NGG HW. Very rarely, the Navi 1x PA can hang when an NGG workgroup exports 0 total primitives. According to AMD, we always need this workaround when it is possible that the number of primitives is 0. Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Rhys Perry <pendingchaos02@gmail.com> Part-of: <mesa/mesa!7232>
-
Timur Kristóf authored
This is to make sure we don't compile a shader which doesn't fit the available LDS space. Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Rhys Perry <pendingchaos02@gmail.com> Part-of: <mesa/mesa!7232>
-
Timur Kristóf authored
Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Rhys Perry <pendingchaos02@gmail.com> Part-of: <mesa/mesa!7232>
-
Timur Kristóf authored
Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Rhys Perry <pendingchaos02@gmail.com> Part-of: <mesa/mesa!7232>
-
Timur Kristóf authored
The p_reduce instruction only works if this operand is in a VGPR, and otherwise gets lowered to incorrect code. Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Rhys Perry <pendingchaos02@gmail.com> Part-of: <mesa/mesa!7232>
-
Timur Kristóf authored
Example: It is possible for some NGG GS waves to have 0 ES and/or GS invocations, and in that case having an s_barrier inside divergent control flow can very possibly hang the GPU. Signed-off-by:
Timur Kristóf <timur.kristof@gmail.com> Reviewed-by:
Rhys Perry <pendingchaos02@gmail.com> Part-of: <mesa/mesa!7232>
-
Christian Gmeiner authored
It fills the serial log with unimportant messages. Signed-off-by:
Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by:
Eric Anholt <eric@anholt.net> Part-of: <mesa/mesa!7347>
-
Rhys Perry authored
Streams are really stateful and (IMO) difficult to read for non-trivial usage. This is also more consistent with NIR and the rest of ACO. Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7166>
-
Rhys Perry authored
This seems simpler to me. It should also work correctly when repeated instructions cross blocks. Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7166>
-
Rhys Perry authored
Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7166>
-
Adam Jackson authored
The following are all supported: - GL_ARB_shader_atomic_counters - GL_ARB_shader_image_load_store - GL_ARB_shader_image_size - GL_ARB_texture_multisample - GL_KHR_texture_compression_astc_ldr - GL_KHR_texture_compression_astc_sliced_3d - GL_OES_texture_float - GL_OES_texture_float_linear - GL_OES_texture_half_float - GL_OES_texture_half_float_linear Reviewed-by:
Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <mesa/mesa!7281>
-
Adam Jackson authored
GLES 3.1 is supported, as are: - GL_KHR_texture_compression_astc_ldr - GL_KHR_texture_compression_astc_sliced_3d - GL_EXT_render_snorm - GL_EXT_texture_norm16 Reviewed-by:
Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <!7281>
-
Rhys Perry authored
Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Timur Kristóf <timur.kristof@gmail.com> Part-of: <mesa/mesa!6103>
-
Rhys Perry authored
Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Timur Kristóf <timur.kristof@gmail.com> Part-of: <mesa/mesa!6103>
-
Rhys Perry authored
Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7276>
-
Rhys Perry authored
For non-arithmetic opcodes such as buffer_load_dword and buffer_load_short, default to a definition size of 32. Signed-off-by:
Rhys Perry <pendingchaos02@gmail.com> Reviewed-by:
Daniel Schürmann <daniel@schuermann.dev> Part-of: <mesa/mesa!7276>
-
Erik Faye-Lund authored
Reviewed-by:
Daniel Stone <daniels@collabora.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Part-of: <!7060>
-
Erik Faye-Lund authored
Reviewed-by:
Daniel Stone <daniels@collabora.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Part-of: <!7060>
-