platform/upstream/mesa.git
14 months agomesa: Move st_prog_to_nir_postprocess out of prog_to_nir.
Emma Anholt [Tue, 16 May 2023 23:44:57 +0000 (16:44 -0700)]
mesa: Move st_prog_to_nir_postprocess out of prog_to_nir.

We called it in the else branch, anyway.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agomesa: Drop remaining unused ARB program instructions.
Emma Anholt [Tue, 16 May 2023 22:18:39 +0000 (15:18 -0700)]
mesa: Drop remaining unused ARB program instructions.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agomesa: Drop unused control flow instructions for ARB programs.
Emma Anholt [Tue, 16 May 2023 22:17:25 +0000 (15:17 -0700)]
mesa: Drop unused control flow instructions for ARB programs.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agomesa: Drop ARB program helper functions that are no longer used.
Emma Anholt [Tue, 16 May 2023 22:12:03 +0000 (15:12 -0700)]
mesa: Drop ARB program helper functions that are no longer used.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agomesa: Move ARB_vp position invariant option handling to NIR.
Emma Anholt [Tue, 16 May 2023 22:03:44 +0000 (15:03 -0700)]
mesa: Move ARB_vp position invariant option handling to NIR.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agomesa/ARB_fp: Use the NIR pass for adding fog code instead of ARB instrs.
Emma Anholt [Tue, 16 May 2023 21:36:20 +0000 (14:36 -0700)]
mesa/ARB_fp: Use the NIR pass for adding fog code instead of ARB instrs.

Tested with
https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/813

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agomesa/ARB_fp: Drop an extra enum for fog mode.
Emma Anholt [Tue, 16 May 2023 21:29:54 +0000 (14:29 -0700)]
mesa/ARB_fp: Drop an extra enum for fog mode.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agomesa: Move ATI_fragment_shader fog code emit to a NIR lowering pass.
Emma Anholt [Tue, 16 May 2023 19:38:57 +0000 (12:38 -0700)]
mesa: Move ATI_fragment_shader fog code emit to a NIR lowering pass.

Now it's implemented as a RMW of the FRAG_RESULT_COLOR output var (or
adjusting the store_output intrinsic's value for lowered i/o), which
should be reusable other places we might want to emit shader code for fog
(ARB_fp, fixed function fragment shaders).

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agonir,mesa: Add helpers for creating uniform state variables.
Emma Anholt [Tue, 16 May 2023 20:37:53 +0000 (13:37 -0700)]
nir,mesa: Add helpers for creating uniform state variables.

It's one of the weirder parts of our shader interface's interactions with
the GL API, so let's try to make it a little cleaner.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agonir: Use find_state_var in lower_atomics_to_ssbo.
Emma Anholt [Tue, 16 May 2023 20:30:18 +0000 (13:30 -0700)]
nir: Use find_state_var in lower_atomics_to_ssbo.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agomesa: Use find_state_var in lower_builtin.
Emma Anholt [Tue, 16 May 2023 19:48:03 +0000 (12:48 -0700)]
mesa: Use find_state_var in lower_builtin.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23111>

14 months agod3d12: Support PIPE_CAP_VS_LAYER_VIEWPORT
Jesse Natalie [Thu, 1 Jun 2023 19:28:35 +0000 (12:28 -0700)]
d3d12: Support PIPE_CAP_VS_LAYER_VIEWPORT

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23377>

14 months agomicrosoft/compiler: Viewport/layer as input to GS/HS needs to set feature bit
Jesse Natalie [Thu, 1 Jun 2023 20:08:11 +0000 (13:08 -0700)]
microsoft/compiler: Viewport/layer as input to GS/HS needs to set feature bit

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23377>

14 months agomicrosoft/compiler: Fix usage of type var in semantic asserts
Jesse Natalie [Thu, 1 Jun 2023 20:06:24 +0000 (13:06 -0700)]
microsoft/compiler: Fix usage of type var in semantic asserts

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23377>

14 months agomicrosoft/compiler: Fix the int->uint pass for arrayed I/O
Jesse Natalie [Thu, 1 Jun 2023 20:05:49 +0000 (13:05 -0700)]
microsoft/compiler: Fix the int->uint pass for arrayed I/O

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23377>

14 months agodzn: Don't lower away mediump
Jesse Natalie [Wed, 31 May 2023 20:18:01 +0000 (13:18 -0700)]
dzn: Don't lower away mediump

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23344>

14 months agospirv2dxil: Enable mediump
Jesse Natalie [Wed, 31 May 2023 20:17:47 +0000 (13:17 -0700)]
spirv2dxil: Enable mediump

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23344>

14 months agomicrosoft/compiler: Handle mediump
Jesse Natalie [Wed, 31 May 2023 20:14:58 +0000 (13:14 -0700)]
microsoft/compiler: Handle mediump

Instead of treating all 16-bit values as "native 16-bit types,"
differentiate between concrete casts and mediump casts, where the
former requires native 16-bit types, and the latter only requires
DXIL min-precision. Additionally, UBO/SSBO loads/stores require
native 16-bit types.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23344>

14 months agomicrosoft/compiler: Always set support_16bit_alu
Jesse Natalie [Wed, 31 May 2023 20:13:54 +0000 (13:13 -0700)]
microsoft/compiler: Always set support_16bit_alu

This just affects some nir opts. If we're lowering 16bit ops anyway,
the optimization doesn't matter.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23344>

14 months agonir: Add preserve_mediump as a shader compiler option
Jesse Natalie [Wed, 31 May 2023 20:10:47 +0000 (13:10 -0700)]
nir: Add preserve_mediump as a shader compiler option

The DXIL backend would like to distinguish between casts to 16-bit
that must cast, vs those that may. If a shader only ever produces
16-bit types from mediump casts and ALU ops on those values, then
the resulting shader can be annotated with DXIL's min-precision
qualifier, basically telling the driver to use 16-bit precision if
it's faster for them. If it uses concrete 16-bit casts, or loads/
stores to externally-visible memory, then it must use the "native"
16-bit flag, which is not supported on all hardware.

Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23344>

14 months agozink: Use PIPE_CAP_FS_POINT_IS_SYSVAL.
Emma Anholt [Mon, 8 May 2023 20:52:44 +0000 (13:52 -0700)]
zink: Use PIPE_CAP_FS_POINT_IS_SYSVAL.

This better matches up to how spirv treats the value.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22950>

14 months agonir/lower_texcoord_replace: Flag SYSTEM_VALUE_POINT_COORD read when we load it.
Emma Anholt [Mon, 8 May 2023 20:56:17 +0000 (13:56 -0700)]
nir/lower_texcoord_replace: Flag SYSTEM_VALUE_POINT_COORD read when we load it.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22950>

14 months agoglsl: Allow invariant flags on sysvals, such as gl_PointCoord.
Emma Anholt [Wed, 10 May 2023 18:11:58 +0000 (11:11 -0700)]
glsl: Allow invariant flags on sysvals, such as gl_PointCoord.

When you set PIPE_CAP_FS_POINT_IS_SYSVAL, we'd fall out of
is_allowed_invariant(), despite it being allowed on special builtins.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22950>

14 months agogallium/nir/tgsi: add various support for task/mesh bits
Dave Airlie [Mon, 29 May 2023 03:38:00 +0000 (13:38 +1000)]
gallium/nir/tgsi: add various support for task/mesh bits

these translators are used by llvmpipe so need to be updated

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agogallium/cso: add task/mesh shaders to the cso cache
Dave Airlie [Mon, 29 May 2023 03:37:44 +0000 (13:37 +1000)]
gallium/cso: add task/mesh shaders to the cso cache

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agod3d12: don't report mesh/task limits
Dave Airlie [Wed, 31 May 2023 20:40:25 +0000 (06:40 +1000)]
d3d12: don't report mesh/task limits

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agosvga: don't report mesh/task shader limits
Dave Airlie [Wed, 31 May 2023 20:38:51 +0000 (06:38 +1000)]
svga: don't report mesh/task shader limits

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agoradeonsi: don't report shader params for task/mesh
Dave Airlie [Wed, 31 May 2023 20:33:40 +0000 (06:33 +1000)]
radeonsi: don't report shader params for task/mesh

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agocrocus: don't report mesh/task limits
Dave Airlie [Wed, 31 May 2023 20:38:34 +0000 (06:38 +1000)]
crocus: don't report mesh/task limits

Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agoiris: don't return shader params for task/mesh.
Dave Airlie [Wed, 31 May 2023 20:33:22 +0000 (06:33 +1000)]
iris: don't return shader params for task/mesh.

These should be reported as 0 for cso

Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agogallium: add task/mesh shader entrypoints in context
Dave Airlie [Mon, 29 May 2023 03:37:30 +0000 (13:37 +1000)]
gallium: add task/mesh shader entrypoints in context

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agofreedreno: don't report task/mesh.
Dave Airlie [Wed, 31 May 2023 20:43:52 +0000 (06:43 +1000)]
freedreno: don't report task/mesh.

Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agogallium: add a new PIPE_SHADER_MESH_TYPES
Dave Airlie [Mon, 29 May 2023 03:36:45 +0000 (13:36 +1000)]
gallium: add a new PIPE_SHADER_MESH_TYPES

This adds a new limit, changing PIPE_SHADER_TYPES seems frought
with danger and very tricky. Currently only lava/llvmpipe plan to
offer task/mesh in GL land, so let's limit the fallout for now.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agogallium: expand pipe_grid_info to handle task/mesh.
Dave Airlie [Mon, 29 May 2023 03:27:29 +0000 (13:27 +1000)]
gallium: expand pipe_grid_info to handle task/mesh.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agogallium: add task/mesh shader query types to stats interface.
Dave Airlie [Mon, 29 May 2023 03:27:02 +0000 (13:27 +1000)]
gallium: add task/mesh shader query types to stats interface.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23291>

14 months agorusticl/device: limit MAX_PARAMETER_SIZE to 32k
Karol Herbst [Thu, 1 Jun 2023 19:37:49 +0000 (21:37 +0200)]
rusticl/device: limit MAX_PARAMETER_SIZE to 32k

There is no good reason of having it too big and radeonsi returns an
absurd high value through PIPE_SHADER_CAP_MAX_CONST_BUFFER0_SIZE.

This speeds up the CTS testing this device limit.

Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23378>

14 months agointel/compiler: Fix a fallthrough in components_read() for atomics
Kenneth Graunke [Wed, 31 May 2023 19:15:02 +0000 (12:15 -0700)]
intel/compiler: Fix a fallthrough in components_read() for atomics

In commit 284f0c9a57e17b14c044c04c7cf9ae77d6694492 I refactored the
handling of the data source to just call a helper rather than special
casing opcodes with 0 or 2 sources.  Unfortunately, I also dropped the
"else return 1", creating a fallthrough for all sources other than
SURFACE_LOGICAL_SRC_ADDRESS and SURFACE_LOGICAL_SRC_DATA.

The case below happened to return the correct value for all cases except
SURFACE_LOGICAL_SRC_SURFACE, which has been returning 2 instead of 1
since that commit.

Restore the else case.  Thanks to Marcin Ślusarz for catching this.

Fixes: 284f0c9a57e1 ("intel/compiler: Add an lsc_op_num_data_values() helper")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23347>

14 months agofreedreno/a6xx: Enable gl46
Rob Clark [Sun, 28 May 2023 19:08:28 +0000 (12:08 -0700)]
freedreno/a6xx: Enable gl46

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno/a6xx: GL_ARB_pipeline_statistics_query
Rob Clark [Sun, 28 May 2023 19:03:51 +0000 (12:03 -0700)]
freedreno/a6xx: GL_ARB_pipeline_statistics_query

Handle the other pipeline stats counters in order to implement
GL_ARB_pipeline_statistics_query.  Note that this does away with
collecting *all* the counters if DEBUG_COUNTERS is enabled, other-
wise it was getting over-complicated.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno: Handle compute queries
Rob Clark [Mon, 29 May 2023 15:20:16 +0000 (08:20 -0700)]
freedreno: Handle compute queries

Compute stage can have queries too.  We need to handle that.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno/a6xx: Handle nested pipeline stats queries
Rob Clark [Sun, 28 May 2023 18:15:26 +0000 (11:15 -0700)]
freedreno/a6xx: Handle nested pipeline stats queries

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno/a6xx: Split primitives and pipeline-stats queries
Rob Clark [Sun, 28 May 2023 18:08:53 +0000 (11:08 -0700)]
freedreno/a6xx: Split primitives and pipeline-stats queries

They are really two completely different things.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno/a6xx: GL_ARB_transform_feedback_overflow_query
Rob Clark [Sat, 27 May 2023 18:03:45 +0000 (11:03 -0700)]
freedreno/a6xx: GL_ARB_transform_feedback_overflow_query

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno/a6xx: Remove primitives_relocw()
Rob Clark [Sun, 28 May 2023 17:41:31 +0000 (10:41 -0700)]
freedreno/a6xx: Remove primitives_relocw()

These days we don't track read vs write relocs, so it is the same thing
as primitives_reloc()

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno/a6xx: Fix xfb stream configuration
Rob Clark [Sun, 28 May 2023 15:12:50 +0000 (08:12 -0700)]
freedreno/a6xx: Fix xfb stream configuration

Also, only emit PC_SO_STREAM_CNTL for tess shaders, to align with how
turnip does it.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno/a6xx: Add missing cap
Rob Clark [Sat, 27 May 2023 19:05:57 +0000 (12:05 -0700)]
freedreno/a6xx: Add missing cap

Fixes wrong value reported for GL_MAX_VERTEX_STREAMS.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno/a6xx: Stop using fd_wfi()
Rob Clark [Sat, 27 May 2023 16:27:58 +0000 (09:27 -0700)]
freedreno/a6xx: Stop using fd_wfi()

This was originally intended for earlier gens where certain draw-time
state needed a WFI (because it wasn't banked, etc).  This isn't the case
on a6xx.  So just directly emit WFIs where they are needed.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agofreedreno/a6xx: Clean up open coded flushes
Rob Clark [Sat, 27 May 2023 15:45:28 +0000 (08:45 -0700)]
freedreno/a6xx: Clean up open coded flushes

Migrate more code to fd6_emit_flushes().

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23301>

14 months agoaco: p_start_linear_vgpr doesn't always need exec mask
Georg Lehmann [Mon, 29 May 2023 14:39:39 +0000 (16:39 +0200)]
aco: p_start_linear_vgpr doesn't always need exec mask

Foz-DB Navi21:
Totals from 1605 (1.21% of 132657) affected shaders:
CodeSize: 14023700 -> 14020320 (-0.02%)
Instrs: 2589881 -> 2589052 (-0.03%)
Latency: 22478420 -> 22473359 (-0.02%)
InvThroughput: 3851237 -> 3851092 (-0.00%)
Copies: 215316 -> 215438 (+0.06%); split: -0.39%, +0.44%

Allows more vcmpx usage.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23302>

14 months agointel/fs: fix a couple of descriptor mistakes
Lionel Landwerlin [Thu, 1 Jun 2023 06:30:37 +0000 (09:30 +0300)]
intel/fs: fix a couple of descriptor mistakes

I found those issues while testing DOOM eternal and Ian also ran into
it with other shaders.

We write the desc register in SIMD1 exec_all, so all the data is in
the first component. We need to make sure to pass that component in
the lower SEND instructions.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23354>

14 months agoradv: allow wave32 for geometry shaders
Rhys Perry [Wed, 31 May 2023 14:01:10 +0000 (15:01 +0100)]
radv: allow wave32 for geometry shaders

Because is_ngg wasn't set early enough, radv_get_wave_size() would always
return 64.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23336>

14 months agoac/surface: relax custom pitch requirements to any multiple of 256B on gfx10.3+
Marek Olšák [Mon, 15 May 2023 05:29:44 +0000 (01:29 -0400)]
ac/surface: relax custom pitch requirements to any multiple of 256B 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/23015>

14 months agoradv: implement setting a custom pitch to any multiple of 256B on gfx10.3+
Marek Olšák [Mon, 15 May 2023 06:53:18 +0000 (02:53 -0400)]
radv: implement setting a custom pitch to any multiple of 256B 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/23015>

14 months agoradeonsi: implement setting a custom pitch to any multiple of 256B on gfx10.3+
Marek Olšák [Mon, 15 May 2023 05:28:15 +0000 (01:28 -0400)]
radeonsi: implement setting a custom pitch to any multiple of 256B 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/23015>

14 months agoac/nir: handle DEPTH as PITCH in ac_nir_lower_resinfo
Marek Olšák [Thu, 1 Jun 2023 11:10:27 +0000 (07:10 -0400)]
ac/nir: handle DEPTH as PITCH in ac_nir_lower_resinfo

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23015>

14 months agoac/surface: fix is_linear for stencil-only surfaces
Marek Olšák [Thu, 18 May 2023 20:41:36 +0000 (16:41 -0400)]
ac/surface: fix is_linear for stencil-only surfaces

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/23015>

14 months agoamd/addrlib: add ADDR_FMT_BG_RG_16_16_16_16
Marek Olšák [Wed, 31 May 2023 16:21:40 +0000 (12:21 -0400)]
amd/addrlib: add ADDR_FMT_BG_RG_16_16_16_16

Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23339>

14 months agoamd/addrlib: switch the license to the SPDX identifier MIT
Marek Olšák [Wed, 31 May 2023 16:20:59 +0000 (12:20 -0400)]
amd/addrlib: switch the license to the SPDX identifier MIT

Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23339>

14 months agoci/b2c: also detect non-soft GPU hangs with AMDGPU
Eric Engestrom [Thu, 1 Jun 2023 09:04:03 +0000 (10:04 +0100)]
ci/b2c: also detect non-soft GPU hangs with AMDGPU

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23358>

14 months agomesa: Fallthrough GL_SRB_DECODE_ARB pname
Mykhailo Skorokhodov [Thu, 1 Jun 2023 10:56:52 +0000 (13:56 +0300)]
mesa: Fallthrough GL_SRB_DECODE_ARB pname

GL_SRGB_DECODE_ARB should fall through into the (!query2) test.

Related-to: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21682
Signed-off-by: Mykhailo Skorokhodov <mykhailo.skorokhodov@globallogic.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23363>

14 months agoegl: fix comments alignment
Italo Nicola [Thu, 1 Jun 2023 10:23:49 +0000 (07:23 -0300)]
egl: fix comments alignment

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20387>

14 months agoegl: disable partial redraw when gallium hud is active
Italo Nicola [Wed, 14 Dec 2022 23:29:14 +0000 (20:29 -0300)]
egl: disable partial redraw when gallium hud is active

We draw the gallium hud directly to the rendered buffer, meaning that if
the buffer age is queried and then a partial redraw is done, we get a
ghosting effect from the hud drawn in previous frames.

Since we need to draw the hud with updated values every frame anyway,
there's no harm in disabling the buffer age and partial redraw.

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Tested-by: Chris Healy <cphealy@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20387>

14 months agoutil: Use the gcc_struct attribute for packed structures in mingw
Corentin Noël [Wed, 31 May 2023 15:48:36 +0000 (17:48 +0200)]
util: Use the gcc_struct attribute for packed structures in mingw

Actually set the packing behavior as the intended one when using this attribute,
even on mingw.

Otherwise, the default behavior is to use the ms_struct which makes the structures
use more space in some situations.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23338>

14 months agoci/zink+anv: fix flakes definition
Eric Engestrom [Wed, 31 May 2023 13:30:49 +0000 (14:30 +0100)]
ci/zink+anv: fix flakes definition

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23364>

14 months agoci/crocus: fix flakes definition
Eric Engestrom [Wed, 31 May 2023 13:30:41 +0000 (14:30 +0100)]
ci/crocus: fix flakes definition

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23364>

14 months agoci/radv: fix flakes definition
Eric Engestrom [Wed, 31 May 2023 13:30:31 +0000 (14:30 +0100)]
ci/radv: fix flakes definition

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23364>

14 months agoci/ccache: recent ccache changed a output a bit, adapt script
David Heidelberg [Thu, 1 Jun 2023 11:13:02 +0000 (13:13 +0200)]
ci/ccache: recent ccache changed a output a bit, adapt script

Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23359>

14 months agoci: bump Alpine to 3.18
David Heidelberg [Thu, 1 Jun 2023 08:47:43 +0000 (10:47 +0200)]
ci: bump Alpine to 3.18

Update LLVM to 16.

Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23359>

14 months agoradv: merge all FS user SGPRs into one using packed arguments
Samuel Pitoiset [Wed, 31 May 2023 12:23:35 +0000 (14:23 +0200)]
radv: merge all FS user SGPRs into one using packed arguments

Much cleaner and this will allow us to add more arguments easily.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23333>

14 months agoradv: regroup fragment shader user SGPRs emission
Samuel Pitoiset [Wed, 31 May 2023 11:51:42 +0000 (13:51 +0200)]
radv: regroup fragment shader user SGPRs emission

In preparation to use a packed user SGPR.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23333>

14 months agoradv: introduce SHIFT/MASK for unpacking shader input args
Samuel Pitoiset [Wed, 31 May 2023 11:29:53 +0000 (13:29 +0200)]
radv: introduce SHIFT/MASK for unpacking shader input args

Loosely based on RadeonSI, looks cleaner and safer to me. I will also
use that to pack fragment shader arguments.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23333>

14 months agoradv/nir: use ac_nir_unpack_arg() for packed shader input user SGPRS
Samuel Pitoiset [Wed, 31 May 2023 11:12:32 +0000 (13:12 +0200)]
radv/nir: use ac_nir_unpack_arg() for packed shader input user SGPRS

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23333>

14 months agoradv/ci: removed expected failures that are skipped now
Samuel Pitoiset [Thu, 1 Jun 2023 06:22:09 +0000 (08:22 +0200)]
radv/ci: removed expected failures that are skipped now

These tests were failing because CTS wasn't checking a feature bit.
Now that CTS is fixed, these tests are skipped and can't fail at all.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23355>

14 months agofreedreno/a6xx: Fix memory leak on error path.
Vinson Lee [Mon, 29 May 2023 03:20:09 +0000 (20:20 -0700)]
freedreno/a6xx: Fix memory leak on error path.

Fix defect reported by Coverity Scan.

Resource leak (RESOURCE_LEAK)
leaked_storage: Variable fd6_ctx going out of scope leaks the storage it points to.

Fixes: de3b34df973 ("freedreno: Add a6xx backend")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Rob Clark <robclark@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23289>

14 months agopanfrost: Use util_pipe_image_to_sampler_view
Alyssa Rosenzweig [Thu, 25 May 2023 21:05:51 +0000 (17:05 -0400)]
panfrost: Use util_pipe_image_to_sampler_view

The common helper is based on what we had locally, with some more cases handled.
Let's use it instead of vendoring.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23273>

14 months agogallium: Add util_image_to_sampler_view helper
Alyssa Rosenzweig [Thu, 25 May 2023 21:04:56 +0000 (17:04 -0400)]
gallium: Add util_image_to_sampler_view helper

This helper is useful to implement images. This implementation is based on the
one in Panfrost and extended to handle all pipe_image_views (notably including
tex2d_from_buf which did not exist when the panfrost version was written). It
will be used in both Panfrost and Asahi.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23273>

14 months agodrm-shim: Avoid assertion fail if someone does close(-1).
Emma Anholt [Thu, 18 May 2023 23:21:44 +0000 (16:21 -0700)]
drm-shim: Avoid assertion fail if someone does close(-1).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23116>

14 months agoci: uprev VVL to 1.3.251
Mike Blumenkrantz [Wed, 31 May 2023 18:31:31 +0000 (14:31 -0400)]
ci: uprev VVL to 1.3.251

Reviewed-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23343>

14 months agogitlab: prefill MR template with first multiline commit message
David Heidelberg [Wed, 31 May 2023 21:09:17 +0000 (23:09 +0200)]
gitlab: prefill MR template with first multiline commit message

Resolve situation for one commit MR, with description inside.

Acked-By: Mike Blumenkrantz <michae
l.blumenkrantz@gmail.com>

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23346>

14 months agonir_opt_algebraic: Don't shrink 64-bit bitwise ops if pack_split is going to be lowered
Jesse Natalie [Tue, 23 May 2023 20:22:42 +0000 (13:22 -0700)]
nir_opt_algebraic: Don't shrink 64-bit bitwise ops if pack_split is going to be lowered

Otherwise this can cause optimizations to fight resulting in infinite
optimization loops with opt_algebraic, constant_folding, and copy_prop.

Fixes: 368be872 ("nir/algebraic: shrink 64-bit bitwise operations with 0/-1 constant half")
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23192>

14 months agomesa/st: fix buffer overflow related to set_program_string()
Patrick Lerda [Thu, 25 May 2023 14:20:09 +0000 (16:20 +0200)]
mesa/st: fix buffer overflow related to set_program_string()

For instance, this is triggered with "piglit/bin/ext_direct_state_access-named-program -auto -fbo":
==5695==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x606000050031 at pc 0x7f78dfca8d46 bp 0x7ffd9043b4a0 sp 0x7ffd9043ac50
READ of size 50 at 0x606000050031 thread T0
    #0 0x7f78dfca8d45  (/usr/lib64/libasan.so.6+0x3fd45)
    #1 0x7f78d450b18f in set_program_string ../src/mesa/main/arbprogram.c:385
    #2 0x7f78d3fdbd3e in execute_list ../src/mesa/main/dlist.c:13025
    #3 0x7f78d40c2564 in _mesa_CallList ../src/mesa/main/dlist.c:13451
    #4 0x7f78d42f380a in _mesa_unmarshal_CallList ../src/mesa/main/glthread_list.c:43
    #5 0x7f78d38e85c5 in glthread_unmarshal_batch ../src/mesa/main/glthread.c:122
    #6 0x7f78d38ea20d in _mesa_glthread_finish ../src/mesa/main/glthread.c:382
    #7 0x7f78d38ea20d in _mesa_glthread_finish ../src/mesa/main/glthread.c:347
    #8 0x7f78d3d73f69 in _mesa_marshal_IsProgramARB src/mapi/glapi/gen/marshal_generated2.c:4256

Fixes: 0b196b40a3ae ("mesa: don't compute the same SHA1 twice in glShaderSource")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23295>

14 months agodocs: increase contrast in dark-theme
Erik Faye-Lund [Thu, 25 May 2023 10:39:10 +0000 (12:39 +0200)]
docs: increase contrast in dark-theme

The contrast-ratio between the foreground and background colors aren't
quite ideal in dark mode. This improves the situation a bit, by making
the body-text a bit brighter.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9043
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23236>

14 months agov3d/ci: update traces
Juan A. Suarez Romero [Tue, 30 May 2023 09:33:12 +0000 (11:33 +0200)]
v3d/ci: update traces

Add new traces, remove old ones, and add more information for the
unsupported/crashes.

Reviewed-by: David Heidelberg <david.heidelberg@collabora.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23319>

14 months agospirv: Assert sampler_dim is valid when building nir_tex_instr
Caio Oliveira [Tue, 21 Sep 2021 20:31:10 +0000 (13:31 -0700)]
spirv: Assert sampler_dim is valid when building nir_tex_instr

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14244>

14 months agospirv: Validate Dim of OpTypeSampledImage and OpSampledImage
Caio Oliveira [Tue, 21 Sep 2021 20:10:05 +0000 (13:10 -0700)]
spirv: Validate Dim of OpTypeSampledImage and OpSampledImage

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14244>

14 months agointel: Fix support of kernel versions without DRM_I915_QUERY_ENGINE_INFO
José Roberto de Souza [Fri, 26 May 2023 14:12:40 +0000 (07:12 -0700)]
intel: Fix support of kernel versions without DRM_I915_QUERY_ENGINE_INFO

As Matt Turner pointed out, the commit here fixed breaks in Iris and
ANV in kernel versions without support for DRM_I915_QUERY_ENGINE_INFO.
As compute engines are only present in gfx12 and newer, and support
for DRM_I915_QUERY_ENGINE_INFO was added before any gfx12 platform,
we can check for gfx version before trying to get engine info.

For ANV, this is done by checking if engine_info is not NULL, like in
other places in the ANV source code.

Fixes: a364f23a6cfa ("intel: Make gen12 URB space reservation dependent on compute engine presence")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9099
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Tested-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23257>

14 months agodriconf: set vk_x11_strict_image_count for Wolfenstein II
Blisto [Tue, 30 May 2023 17:34:31 +0000 (17:34 +0000)]
driconf: set vk_x11_strict_image_count for Wolfenstein II

Prevents crash with vsync turned off on xwayland.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9070

Cc: mesa-stable
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23326>

14 months agohasvk: enable single texel alignment
Rohan Garg [Tue, 30 May 2023 16:26:01 +0000 (18:26 +0200)]
hasvk: enable single texel alignment

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23321>

14 months agoanv: fix incorrect asserts when combining CPS and per sample interpolation
Rohan Garg [Tue, 30 May 2023 16:10:53 +0000 (18:10 +0200)]
anv: fix incorrect asserts when combining CPS and per sample interpolation

CPS is dynamically turned off when per sample interpolation is active.
Update the asserts to reflect this.

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 5644011f06 ("intel/compiler: Convert wm_prog_key::persample_interp to a tri-state")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23103>

14 months agomesa/st: fix refcnt imbalance related to st_feedback_draw_vbo()
Patrick Lerda [Fri, 28 Apr 2023 10:52:08 +0000 (12:52 +0200)]
mesa/st: fix refcnt imbalance related to st_feedback_draw_vbo()

This issue is happening on radeonsi. The reference was allocated
via _mesa_get_bufferobj_reference() with setup_arrays().
The same reference was never freed.

For instance, this issue is triggered on radeonsi with
"piglit/bin/gl-1.0-rendermode-feedback -auto -fbo"
while setting GALLIUM_REFCNT_LOG=refcnt.log.

Fixes: ff8c2a1748b9 ("mesa/bufferobj: rename bufferobj functions to be more consistent.")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22921>

14 months agoci/windows: Update WARP to 1.0.7.1
Jesse Natalie [Tue, 30 May 2023 23:23:28 +0000 (16:23 -0700)]
ci/windows: Update WARP to 1.0.7.1

Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23330>

14 months agoc11: Remove _MTX_INITIALIZER_NP as it's not used anymore
Yonggang Luo [Fri, 10 Feb 2023 11:09:18 +0000 (19:09 +0800)]
c11: Remove _MTX_INITIALIZER_NP as it's not used anymore

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>

14 months agovdpau: Replace usage of mtx_t with simple_mtx_t in htab.c
Yonggang Luo [Fri, 10 Feb 2023 11:07:13 +0000 (19:07 +0800)]
vdpau: Replace usage of mtx_t with simple_mtx_t in htab.c

This is a prepare for removing _MTX_INITIALIZER_NP.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>

14 months agoomx: Replace usage of mtx_t with simple_mtx_t in vid_omx_common.c
Yonggang Luo [Fri, 10 Feb 2023 11:02:55 +0000 (19:02 +0800)]
omx: Replace usage of mtx_t with simple_mtx_t in vid_omx_common.c

This is a prepare for removing _MTX_INITIALIZER_NP.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>

14 months agonine: Replace usage of mtx_t with simple_mtx_t in nine_lock.c
Yonggang Luo [Fri, 10 Feb 2023 11:01:07 +0000 (19:01 +0800)]
nine: Replace usage of mtx_t with simple_mtx_t in nine_lock.c

This is a prepare for removing _MTX_INITIALIZER_NP.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>

14 months agortasm: Replace usage of mtx_t with simple_mtx_t in rtasm_execmem.c
Yonggang Luo [Fri, 10 Feb 2023 10:50:17 +0000 (18:50 +0800)]
rtasm: Replace usage of mtx_t with simple_mtx_t in rtasm_execmem.c

This is a prepare for removing _MTX_INITIALIZER_NP.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>

14 months agortasm: Trim trailing spaces and replace tab with 3 space
Yonggang Luo [Fri, 10 Feb 2023 10:46:29 +0000 (18:46 +0800)]
rtasm: Trim trailing spaces and replace tab with 3 space

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>

14 months agoxlib: Replace usage of mtx_t with simple_mtx_t in xm_api.c
Yonggang Luo [Fri, 10 Feb 2023 10:52:27 +0000 (18:52 +0800)]
xlib: Replace usage of mtx_t with simple_mtx_t in xm_api.c

This is a prepare for removing _MTX_INITIALIZER_NP.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>

14 months agohud: Replace usage of mtx_t with simple_mtx_t in hud_sensors_temp.c
Yonggang Luo [Fri, 10 Feb 2023 10:40:47 +0000 (18:40 +0800)]
hud: Replace usage of mtx_t with simple_mtx_t in hud_sensors_temp.c

This is a prepare for removing _MTX_INITIALIZER_NP.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>

14 months agohud: Replace usage of mtx_t with simple_mtx_t in hud_nic.c
Yonggang Luo [Fri, 10 Feb 2023 10:38:58 +0000 (18:38 +0800)]
hud: Replace usage of mtx_t with simple_mtx_t in hud_nic.c

This is a prepare for removing _MTX_INITIALIZER_NP.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21284>