platform/upstream/mesa.git
16 months agoradeonsi: don't clamp z_samples to fix Unreal Tournament 99
Marek Olšák [Sat, 18 Feb 2023 09:33:38 +0000 (04:33 -0500)]
radeonsi: don't clamp z_samples to fix Unreal Tournament 99

Fixes: a29218b5 - radeonsi/gfx11: always set MSAA_NUM_SAMPLES=0 for DCC_DECOMPRESS
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8261

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoamd: query the per-SIMD VGPR counts from the kernel, don't hardcode them
Marek Olšák [Wed, 25 Jan 2023 01:31:19 +0000 (20:31 -0500)]
amd: query the per-SIMD VGPR counts from the kernel, don't hardcode them

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: rename esgs_itemsize -> esgs_vertex_stride
Marek Olšák [Mon, 20 Feb 2023 05:26:15 +0000 (00:26 -0500)]
radeonsi: rename esgs_itemsize -> esgs_vertex_stride

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: correct and clean up obsolete vs_state_bits comments
Marek Olšák [Mon, 20 Feb 2023 05:25:01 +0000 (00:25 -0500)]
radeonsi: correct and clean up obsolete vs_state_bits comments

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: always add 1 to lshs_vertex_stride now that LS_OUT_PATCH_SIZE is gone
Marek Olšák [Mon, 20 Feb 2023 05:22:48 +0000 (00:22 -0500)]
radeonsi: always add 1 to lshs_vertex_stride now that LS_OUT_PATCH_SIZE is gone

LS_OUT_PATCH_SIZE limited the maximum value.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: remove unused VS_STATE_LS_OUT_PATCH_SIZE
Marek Olšák [Mon, 20 Feb 2023 05:13:35 +0000 (00:13 -0500)]
radeonsi: remove unused VS_STATE_LS_OUT_PATCH_SIZE

This became unused when we switched to nir_lower_hs_inputs_to_mem.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: remove a gfx11 check in si_shader_gs (legacy GS)
Marek Olšák [Mon, 20 Feb 2023 04:46:46 +0000 (23:46 -0500)]
radeonsi: remove a gfx11 check in si_shader_gs (legacy GS)

Gfx11 doesn't support legacy GS.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: reformat emit_cb_render_state, create_blend_state, create_rs_state
Marek Olšák [Sun, 19 Feb 2023 09:38:03 +0000 (04:38 -0500)]
radeonsi: reformat emit_cb_render_state, create_blend_state, create_rs_state

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: remove returns from si_emit_global_shader_pointers
Marek Olšák [Sun, 19 Feb 2023 09:05:02 +0000 (04:05 -0500)]
radeonsi: remove returns from si_emit_global_shader_pointers

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoamd: replace SI_BIG_ENDIAN with UTIL_ARCH_BIG_ENDIAN
Marek Olšák [Sun, 19 Feb 2023 08:51:54 +0000 (03:51 -0500)]
amd: replace SI_BIG_ENDIAN with UTIL_ARCH_BIG_ENDIAN

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoamd/registers: unify VRS combiner definition names between gfx103 and gfx11
Marek Olšák [Fri, 17 Feb 2023 23:44:29 +0000 (18:44 -0500)]
amd/registers: unify VRS combiner definition names between gfx103 and gfx11

use gfx11 names

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoamd,radeonsi: remove unused LLVM functions
Marek Olšák [Sat, 18 Feb 2023 14:58:50 +0000 (09:58 -0500)]
amd,radeonsi: remove unused LLVM functions

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: disable Smart Access Memory because CPU access has large overhead
Marek Olšák [Sat, 18 Feb 2023 09:51:28 +0000 (04:51 -0500)]
radeonsi: disable Smart Access Memory because CPU access has large overhead

It will be remove completely in the next commit.

Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8176

Cc: mesa-stable
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: replace si_screen::has_out_of_order_rast with the radeon_info field
Marek Olšák [Sat, 18 Feb 2023 09:44:28 +0000 (04:44 -0500)]
radeonsi: replace si_screen::has_out_of_order_rast with the radeon_info field

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi/gfx11: ignore alpha_is_on_msb because the hw ignores it
Marek Olšák [Sat, 18 Feb 2023 07:33:32 +0000 (02:33 -0500)]
radeonsi/gfx11: ignore alpha_is_on_msb because the hw ignores it

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: set PA_SU_VTX_CNTL consecutively with PA_CL_GB_VERT_CLIP_ADJ
Marek Olšák [Sat, 18 Feb 2023 05:36:23 +0000 (00:36 -0500)]
radeonsi: set PA_SU_VTX_CNTL consecutively with PA_CL_GB_VERT_CLIP_ADJ

because they are all next to each other.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: use SPI_SHADER_USER_DATA_HS_0 definition instead of LS_0
Marek Olšák [Sat, 18 Feb 2023 05:09:00 +0000 (00:09 -0500)]
radeonsi: use SPI_SHADER_USER_DATA_HS_0 definition instead of LS_0

The value is the same, but LS_0 is for gfx9 only, and HS_0 is for everything
except gfx9.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: remove no-op setting of THDS_PER_SUBGRP
Marek Olšák [Sat, 18 Feb 2023 03:22:22 +0000 (22:22 -0500)]
radeonsi: remove no-op setting of THDS_PER_SUBGRP

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: change si_shader::ctx_reg to a nameless union for better readability
Marek Olšák [Sat, 18 Feb 2023 03:20:44 +0000 (22:20 -0500)]
radeonsi: change si_shader::ctx_reg to a nameless union for better readability

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: move a few DB_SHADER_CONTROL states into si_shader_ps
Marek Olšák [Sat, 18 Feb 2023 03:09:34 +0000 (22:09 -0500)]
radeonsi: move a few DB_SHADER_CONTROL states into si_shader_ps

They can be set si_shader_ps.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi/gfx11: set CB_COLORi_INFO.MAX_COMP_FRAG on GFX1103_R2
Marek Olšák [Tue, 24 Jan 2023 08:53:36 +0000 (03:53 -0500)]
radeonsi/gfx11: set CB_COLORi_INFO.MAX_COMP_FRAG on GFX1103_R2

Fixes: caa09f66ae4 - amd: add chip identification for gfx1100-1103

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi/gfx11: don't set non-existent VGT_STRMOUT_BUFFER_CONFIG
Marek Olšák [Wed, 8 Feb 2023 03:48:41 +0000 (22:48 -0500)]
radeonsi/gfx11: don't set non-existent VGT_STRMOUT_BUFFER_CONFIG

Fixes: 9fecac091f3 - radeonsi/gfx11: scattered register deltas

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi/gfx11: fix the CU_EN clear mask for RSRC4_GS
Marek Olšák [Sun, 5 Feb 2023 05:13:50 +0000 (00:13 -0500)]
radeonsi/gfx11: fix the CU_EN clear mask for RSRC4_GS

Fixes: 9fecac091f3 - radeonsi/gfx11: scattered register deltas

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoamd: bump AMD_MAX_SE and change the CU mask type to 16 bits
Marek Olšák [Sat, 18 Feb 2023 08:56:57 +0000 (03:56 -0500)]
amd: bump AMD_MAX_SE and change the CU mask type to 16 bits

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoamd: add missing gfx11 register definitions
Marek Olšák [Tue, 24 Jan 2023 08:49:42 +0000 (03:49 -0500)]
amd: add missing gfx11 register definitions

Fixes: caa09f66ae4 - amd: add chip identification for gfx1100-1103

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoamd: fix LOD_BIAS on gfx6-9 and adjust the lod bias CAP
Marek Olšák [Mon, 6 Feb 2023 22:47:56 +0000 (17:47 -0500)]
amd: fix LOD_BIAS on gfx6-9 and adjust the lod bias CAP

Fixes: e673bb4ae44 - amd,util: fix how lod bias is converted to fixed-point

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoradeonsi: fix COMPAT_MODE on gfx8-9
Marek Olšák [Mon, 6 Feb 2023 05:12:50 +0000 (00:12 -0500)]
radeonsi: fix COMPAT_MODE on gfx8-9

It was set in the wrong dword.

Fixes: e673bb4ae44 ("amd,util: fix how lod bias is converted to fixed-point")

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>

16 months agoRevert "radeonsi/ci: Update stoney test expectations"
Marek Olšák [Fri, 24 Feb 2023 10:16:59 +0000 (05:16 -0500)]
Revert "radeonsi/ci: Update stoney test expectations"

This reverts commit 53cc5092885d5d8dd01a66302e2f762f5b00e045.

This MR fixes it.

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

16 months agospirv: Always emit deref_buffer_array_length intrinsics
Faith Ekstrand [Tue, 21 Feb 2023 14:39:30 +0000 (08:39 -0600)]
spirv: Always emit deref_buffer_array_length intrinsics

All the drivers have been converted to setting this option now except
imagination and they don't support SSBOs yet.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3993
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>

16 months agov3dv: Set spirv_options::use_deref_buffer_array_length
Faith Ekstrand [Tue, 21 Feb 2023 14:37:19 +0000 (08:37 -0600)]
v3dv: Set spirv_options::use_deref_buffer_array_length

It'll get lowered to get_ssbo_size by nir_lower_explicit_io() so the
driver should never notice this change.

Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>

16 months agolavapipe: Set spirv_options::use_deref_buffer_array_length
Faith Ekstrand [Tue, 21 Feb 2023 13:50:56 +0000 (07:50 -0600)]
lavapipe: Set spirv_options::use_deref_buffer_array_length

It'll get lowered to get_ssbo_size by nir_lower_explicit_io() so the
driver should never notice this change.

Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>

16 months agoturnip: Set spirv_options::use_deref_buffer_array_length
Faith Ekstrand [Tue, 21 Feb 2023 13:49:58 +0000 (07:49 -0600)]
turnip: Set spirv_options::use_deref_buffer_array_length

It'll get lowered to get_ssbo_size by nir_lower_explicit_io() so the
driver should never notice this change.

Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>

16 months agopanvk: Drop our manual SSBO size handling
Faith Ekstrand [Tue, 21 Feb 2023 13:42:30 +0000 (07:42 -0600)]
panvk: Drop our manual SSBO size handling

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>

16 months agohasvk: Drop our manual SSBO size handling
Faith Ekstrand [Tue, 21 Feb 2023 13:41:34 +0000 (07:41 -0600)]
hasvk: Drop our manual SSBO size handling

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>

16 months agoanv: Drop our manual SSBO size handling
Faith Ekstrand [Tue, 21 Feb 2023 13:41:01 +0000 (07:41 -0600)]
anv: Drop our manual SSBO size handling

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>

16 months agonir/lower_io: Handle buffer_array_length for more address modes
Faith Ekstrand [Tue, 21 Feb 2023 13:37:28 +0000 (07:37 -0600)]
nir/lower_io: Handle buffer_array_length for more address modes

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>

16 months agofrontend/va: Remove duplicate code in format support checking/reporting.
Sil Vilerino [Wed, 22 Feb 2023 13:44:26 +0000 (08:44 -0500)]
frontend/va: Remove duplicate code in format support checking/reporting.

In config.c there are multiple copies of the code checking for VA_FORMAT_RT_*, this can lead
to confusion and is hard to maintain without knowing to change the code in all the places.

This commit extracts out the duplicated code into a function that checks format support
for a given profile and entrypoint, then this function is called from several places that
had the copies of this code in vlVaCreateConfig/vlVaGetConfigAttributes.

Please also note that after this change, all entrypoints/profiles will be checked for all
formats in the pipe_screen: YUV420/YUV420_10/YUV422/RGB32/YUV400/YUV444

Acked-by: Ruijing Dong <ruijing.dong@amd.com>
Tested-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21466>

16 months agofrontend/va: Add format support checks for VA_RT_FORMAT_* in VaCreateConfig/VaGetConf...
Sil Vilerino [Wed, 22 Feb 2023 03:40:56 +0000 (22:40 -0500)]
frontend/va: Add format support checks for VA_RT_FORMAT_* in VaCreateConfig/VaGetConfigAttributes

Before this change some formats like YUV420, YUV422 and RGB32 are hardcoded as supported
in VaCreateConfig/VaGetConfigAttributes. This is not always the case, different gallium
drivers and hardware will support different formats. The frontend should delegate the support
check call by using the is_video_format_supported(...) function from pipe_screen.

Acked-by: Ruijing Dong <ruijing.dong@amd.com>
Tested-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21466>

16 months agolavapipe, nir: Fix wrong array index scaling in nir_collect_src_uniforms
Roland Scheidegger [Thu, 23 Feb 2023 22:08:10 +0000 (23:08 +0100)]
lavapipe, nir: Fix wrong array index scaling in nir_collect_src_uniforms

The scaling needs to be ubo * MAX_INLINABLE_UNIFORMS, not
ubo * PIPE_MAX_CONSTANT_BUFFERS, otherwise accesses beyond buffer size
will result for ubo >= 4 (and we'd also access the wrong values later
for other non-zero ubo indices).

Fixes: a7696a4d98bc ("lavapipe: Fix bad array index scale factor in lvp_inline_uniforms pass")
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21506>

16 months agor600/sfn: Fix readport cylce map
Gert Wollny [Fri, 24 Feb 2023 09:25:06 +0000 (10:25 +0100)]
r600/sfn: Fix readport cylce map

This is currently of no consequence, because the bank swizzle
codes are only used to check legal ALU group configuration
and the bank swizzles are not yet allocated to the instruictions
here.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21516>

16 months agor600/sfn: be more conservative with channel use in multi-slot ops
Gert Wollny [Fri, 24 Feb 2023 09:14:01 +0000 (10:14 +0100)]
r600/sfn: be more conservative with channel use in multi-slot ops

The current approach to check the bank swizzle doesn't allow to
re-evaluate bank-swizzle for instructions that where emitted
earlier, so we might end up with impossile constellations when we
allow three uses of the same channel

Fixes: edabd5cd8425
  r600/sfn: check used channels when evaluating allowed mask

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

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21516>

16 months agoradv: Use indirect header filling for compact builds
Konstantin Seurer [Fri, 20 Jan 2023 20:52:06 +0000 (21:52 +0100)]
radv: Use indirect header filling for compact builds

Sets the accel struct size fields to the correct values which should
allow for more compaction.

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

16 months agoradv/bvh: Add a shader for filling the header
Konstantin Seurer [Fri, 20 Jan 2023 20:51:32 +0000 (21:51 +0100)]
radv/bvh: Add a shader for filling the header

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

16 months agoradv/bvh: Move the size header field up
Konstantin Seurer [Fri, 20 Jan 2023 18:55:30 +0000 (19:55 +0100)]
radv/bvh: Move the size header field up

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

16 months agoradv: Move the geometry infos before the BVH
Konstantin Seurer [Fri, 20 Jan 2023 18:40:25 +0000 (19:40 +0100)]
radv: Move the geometry infos before the BVH

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

16 months agoradv: Use compact encoding
Konstantin Seurer [Fri, 20 Jan 2023 18:30:20 +0000 (19:30 +0100)]
radv: Use compact encoding

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

16 months agoradv/bvh: Implement compact encoding
Konstantin Seurer [Fri, 20 Jan 2023 18:29:05 +0000 (19:29 +0100)]
radv/bvh: Implement compact encoding

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

16 months agoradv: Add a build config for compact builds
Konstantin Seurer [Thu, 19 Jan 2023 21:16:59 +0000 (22:16 +0100)]
radv: Add a build config for compact builds

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

16 months agoradv/bvh/encoder: Move dst_node initialization into the loop
Konstantin Seurer [Thu, 19 Jan 2023 21:10:24 +0000 (22:10 +0100)]
radv/bvh/encoder: Move dst_node initialization into the loop

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

16 months agoradv/bvh/encode: Introduce is_root_node
Konstantin Seurer [Thu, 19 Jan 2023 21:02:22 +0000 (22:02 +0100)]
radv/bvh/encode: Introduce is_root_node

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

16 months agoradv/bvh/encode: Move bvh_offset NULL check to the top of the loop
Konstantin Seurer [Thu, 19 Jan 2023 20:56:25 +0000 (21:56 +0100)]
radv/bvh/encode: Move bvh_offset NULL check to the top of the loop

NULL nodes don't have to be encoded and they also don't carry over any
information to their children.

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

16 months agoradv/bvh: Replace is_final_tree with bvh_offset
Konstantin Seurer [Thu, 19 Jan 2023 20:39:59 +0000 (21:39 +0100)]
radv/bvh: Replace is_final_tree with bvh_offset

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

16 months agoradv/bvh/encode: Use the node type for identifying internal nodes
Konstantin Seurer [Thu, 19 Jan 2023 19:55:06 +0000 (20:55 +0100)]
radv/bvh/encode: Use the node type for identifying internal nodes

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

16 months agofreedreno: Add A2xx REG_A2XX_RBBM_PM_OVERRIDE2 bitfields
Konrad Dybcio [Thu, 23 Feb 2023 10:36:58 +0000 (11:36 +0100)]
freedreno: Add A2xx REG_A2XX_RBBM_PM_OVERRIDE2 bitfields

Required for good-looking kernel code

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21480>

16 months agofreedreno: Add A2xx perf counter reg values
Konrad Dybcio [Thu, 23 Feb 2023 01:03:36 +0000 (02:03 +0100)]
freedreno: Add A2xx perf counter reg values

Required for good-looking kernel code

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
[rob: fixup CI expectations]

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

16 months agopvr: Remove component_alignment
Karmjit Mahil [Mon, 23 Jan 2023 23:54:06 +0000 (23:54 +0000)]
pvr: Remove component_alignment

We don't support output register subdivision so no need to keep
track of how many bytes have been allocated within the output regs.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21386>

16 months agopvr: Remove unused msaa_mode field
Karmjit Mahil [Mon, 9 Jan 2023 15:55:20 +0000 (15:55 +0000)]
pvr: Remove unused msaa_mode field

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21386>

16 months agopvr: Setup SPM EOT state
Karmjit Mahil [Mon, 9 Jan 2023 16:04:16 +0000 (16:04 +0000)]
pvr: Setup SPM EOT state

On entering SPM we need to store the tile data for the current
render into the scratch buffer so we need to setup an EOT program
to do so.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21386>

16 months agopvr: Move PBE START_POS into csb enum helpers header
Karmjit Mahil [Mon, 9 Jan 2023 16:03:53 +0000 (16:03 +0000)]
pvr: Move PBE START_POS into csb enum helpers header

This commit adds 'pvr_pbestate_source_pos()' and moves
`enum pvr_pbe_source_start_pos` into pvr_csb_enum_helpers.h .
The enum will be needed in other files in the commits following.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21386>

16 months agoradv: advertise VK_EXT_image_sliced_view_of_3d on GFX10+
Samuel Pitoiset [Tue, 8 Nov 2022 16:43:18 +0000 (17:43 +0100)]
radv: advertise VK_EXT_image_sliced_view_of_3d on GFX10+

Pass dEQP-VK.pipeline.monolithic.sliced_view_of_3d_image.* on NAVI21.

Looks like older generations can't support it.

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

16 months agoradv: implement VK_EXT_image_sliced_view_of_3d on GFX10+
Samuel Pitoiset [Mon, 20 Feb 2023 08:06:00 +0000 (09:06 +0100)]
radv: implement VK_EXT_image_sliced_view_of_3d on GFX10+

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

16 months agoac/nir: add resinfo lowering for sliced storage 3D views
Samuel Pitoiset [Mon, 20 Feb 2023 08:05:55 +0000 (09:05 +0100)]
ac/nir: add resinfo lowering for sliced storage 3D views

The first layer isn't necessarily 0 and depth shouldn't be minified.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21359>

16 months agopvr: Add support for blend constants.
Karmjit Mahil [Tue, 13 Dec 2022 17:03:36 +0000 (17:03 +0000)]
pvr: Add support for blend constants.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21388>

16 months agoutil/process_test: make the error variable static
David Heidelberg [Fri, 24 Feb 2023 00:00:19 +0000 (01:00 +0100)]
util/process_test: make the error variable static

Make the `error` variable static to prevent a clash with
the glibc error() function when LTO is used.

Fixes the LTO build.
Otherwise, it'll fail in the linking phase with a conflict:
```
[411/2321] Linking target src/util/process_test
FAILED: src/util/process_test
c++  -o src/util/process_test src/util/process_test.p/tests_process_test.c.o -flto -Wl,--as-needed -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--start-group src/util/libmesa_util.a src/util/format/libmesa_format.a src/util/libmesa_util_sse41.a src/c11/impl/libmesa_util_c11.a subprojects/perfetto/libperfetto.a /usr/lib/x86_64-linux-gnu/libz.so -pthread -lm -ldl /usr/lib/x86_64-linux-gnu/libunwind.so -Wl,--end-group
mold: error: symbol type mismatch: error
>>> defined in /tmp/process_test.SLc9I6.ltrans0.ltrans.o as STT_OBJECT
>>> defined in /lib/x86_64-linux-gnu/libc.so.6 as STT_FUNC
```

Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21511>

16 months agopvr: Add encodings for index registers
Simon Perretta [Wed, 22 Feb 2023 14:00:51 +0000 (14:00 +0000)]
pvr: Add encodings for index registers

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Amend definitions for ST and IDF
Simon Perretta [Wed, 22 Feb 2023 14:00:11 +0000 (14:00 +0000)]
pvr: Amend definitions for ST and IDF

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add late op lowering pass and conditional execution
Simon Perretta [Fri, 17 Feb 2023 17:29:08 +0000 (17:29 +0000)]
pvr: Add late op lowering pass and conditional execution

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for MOVC
Simon Perretta [Fri, 17 Feb 2023 16:29:22 +0000 (16:29 +0000)]
pvr: Add support for MOVC

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add basic support for manual instruction grouping
Simon Perretta [Fri, 17 Feb 2023 14:59:47 +0000 (14:59 +0000)]
pvr: Add basic support for manual instruction grouping

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for TST
Simon Perretta [Thu, 16 Feb 2023 16:40:50 +0000 (16:40 +0000)]
pvr: Add support for TST

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add branch support
Simon Perretta [Thu, 16 Feb 2023 15:33:00 +0000 (15:33 +0000)]
pvr: Add branch support

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for ST
Simon Perretta [Wed, 15 Feb 2023 22:26:29 +0000 (22:26 +0000)]
pvr: Add support for ST

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for IDF
Simon Perretta [Tue, 14 Feb 2023 01:12:20 +0000 (01:12 +0000)]
pvr: Add support for IDF

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for generating NOP program
Simon Perretta [Tue, 14 Feb 2023 00:48:57 +0000 (00:48 +0000)]
pvr: Add support for generating NOP program

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for generating per-job EOT program
Simon Perretta [Tue, 14 Feb 2023 00:45:01 +0000 (00:45 +0000)]
pvr: Add support for generating per-job EOT program

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Fix descriptor set address calculation
Simon Perretta [Wed, 15 Feb 2023 18:19:59 +0000 (18:19 +0000)]
pvr: Fix descriptor set address calculation

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Register allocation improvements
Simon Perretta [Wed, 15 Feb 2023 16:57:24 +0000 (16:57 +0000)]
pvr: Register allocation improvements

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for WOP
Simon Perretta [Mon, 13 Feb 2023 22:09:58 +0000 (22:09 +0000)]
pvr: Add support for WOP

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for emitpix
Simon Perretta [Mon, 13 Feb 2023 22:05:21 +0000 (22:05 +0000)]
pvr: Add support for emitpix

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for validating modifier combos
Simon Perretta [Sun, 12 Feb 2023 15:26:06 +0000 (15:26 +0000)]
pvr: Add support for validating modifier combos

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for sample instructions
Simon Perretta [Sun, 12 Feb 2023 14:22:27 +0000 (14:22 +0000)]
pvr: Add support for sample instructions

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add support for fitr.pixel
Simon Perretta [Sat, 11 Feb 2023 22:44:56 +0000 (22:44 +0000)]
pvr: Add support for fitr.pixel

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Amend subarray ownership code
Simon Perretta [Mon, 13 Feb 2023 14:17:01 +0000 (14:17 +0000)]
pvr: Amend subarray ownership code

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agopvr: Add NIR pass to lower vars to SSA
Simon Perretta [Fri, 4 Nov 2022 16:51:44 +0000 (16:51 +0000)]
pvr: Add NIR pass to lower vars to SSA

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21474>

16 months agoanv: Move WA MEDIA_VFE_STATE after stalling PIPE_CONTROL
Sviatoslav Peleshko [Wed, 22 Feb 2023 02:24:09 +0000 (04:24 +0200)]
anv: Move WA MEDIA_VFE_STATE after stalling PIPE_CONTROL

Fixes: bc612536 ("anv: Emit a dummy MEDIA_VFE_STATE before switching from GPGPU to 3D")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6172
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21472>

16 months agomesa: Report GL_SHADER_BINARY_FORMAT_SPIR_V as supported
Friedrich Vock [Sun, 6 Nov 2022 16:36:39 +0000 (17:36 +0100)]
mesa: Report GL_SHADER_BINARY_FORMAT_SPIR_V as supported

GL_ARB_gl_spirv introduced it, but its corresponding format was never listed in GL_SHADER_BINARY_FORMATS.

Fixes: 5bc03d25 ("mesa: implement SPIR-V loading in glShaderBinary")
Closes: #7644
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19559>

16 months agoradeonsi: fix incorrect vgpr indices in the ps_prolog
Pierre-Eric Pelloux-Prayer [Thu, 23 Feb 2023 09:52:26 +0000 (10:52 +0100)]
radeonsi: fix incorrect vgpr indices in the ps_prolog

In monolithic PS shaders, we need to account for PERSP_PULL_MODEL even
if we don't use it; si_get_ps_prolog_key already does the same thing
to determine color_interp_vgpr_index.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8280
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21483>

16 months agor300: simplify KILL transformation
Pavel Ondračka [Wed, 22 Feb 2023 19:32:33 +0000 (20:32 +0100)]
r300: simplify KILL transformation

We had some special cases before when we could actually get some IFs on
R300 with VDPAU. Now that VDPAU is gone and everything goes through
ntt, we don't have to worry anymore. Remove the complicated logic and
just always transform KILL into KIL none.-1

No shader-db change on RV530 or RV370.

Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21503>

16 months agoci/zink: Add a glx flake on anv
Emma Anholt [Wed, 22 Feb 2023 22:08:46 +0000 (14:08 -0800)]
ci/zink: Add a glx flake on anv

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21366>

16 months agoci: Fix stage of etnaviv manual runs.
Emma Anholt [Wed, 22 Feb 2023 22:01:43 +0000 (14:01 -0800)]
ci: Fix stage of etnaviv manual runs.

Fixes: f6c06ef2f66a ("ci: Add manual rules variations to disable irrelevant driver jobs.")
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21366>

16 months agoci/hasvk: Add a synchronization flake.
Emma Anholt [Wed, 22 Feb 2023 22:00:46 +0000 (14:00 -0800)]
ci/hasvk: Add a synchronization flake.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21366>

16 months agoci/zink+turnip: Disable flaky minetest trace.
Emma Anholt [Thu, 16 Feb 2023 17:40:04 +0000 (09:40 -0800)]
ci/zink+turnip: Disable flaky minetest trace.

random 1-pixel changes sometimes.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21366>

16 months agoci/turnip: Drop the #8219 xfail.
Emma Anholt [Thu, 16 Feb 2023 17:32:50 +0000 (09:32 -0800)]
ci/turnip: Drop the #8219 xfail.

It hasn't showed up in the last couple runs, the other test is no longer
showing up in the caselist so the fail isn't triggered.  Bug is still
there, though.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21366>

16 months agoci/freedreno: Drop a530 piglit_gl coverage.
Emma Anholt [Thu, 16 Feb 2023 17:19:49 +0000 (09:19 -0800)]
ci/freedreno: Drop a530 piglit_gl coverage.

It hasn't worked in a long time -- the board gets wedged 20 minutes in and
then we reboot it and try again until failure.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21366>

16 months agoci/etnaviv: Drop one more gc7000 xfail.
Emma Anholt [Thu, 16 Feb 2023 17:16:05 +0000 (09:16 -0800)]
ci/etnaviv: Drop one more gc7000 xfail.

Looks like I missed it in the last full-run update.

Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21366>

16 months agoanv: Handle all fields in VkAccelerationStructureBuildRangeInfoKHR
Sviatoslav Peleshko [Wed, 15 Feb 2023 15:15:42 +0000 (17:15 +0200)]
anv: Handle all fields in VkAccelerationStructureBuildRangeInfoKHR

Add handling of primitiveOffset and firstVertex.

Fixes: f3ddfd81 ("anv: Build BVHs on the GPU with GRL")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8296
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21342>

16 months agospirv: Implement SPV_KHR_subgroup_rotate
Caio Oliveira [Thu, 17 Nov 2022 04:41:28 +0000 (20:41 -0800)]
spirv: Implement SPV_KHR_subgroup_rotate

Map SpvOpGroupNonUniformRotateKHR to nir_intrinsic_rotate.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19797>

16 months agonir/lower_subgroups: Add option lower_rotate_to_shuffle
Caio Oliveira [Thu, 17 Nov 2022 07:58:27 +0000 (23:58 -0800)]
nir/lower_subgroups: Add option lower_rotate_to_shuffle

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19797>

16 months agonir: Add nir_intrinsic_rotate
Caio Oliveira [Thu, 17 Nov 2022 07:54:21 +0000 (23:54 -0800)]
nir: Add nir_intrinsic_rotate

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19797>

16 months agor300: drop VDPAU support
Pavel Ondračka [Wed, 4 Jan 2023 16:27:14 +0000 (17:27 +0100)]
r300: drop VDPAU support

There is no UVD and the mpeg2 shader-based decoding is broken and doesn't
lead to CPU savings anyway. VDPAU output works, but there is no real
benefit so just disable VDPAU altogether so we can clean the backend a
bit and also open a way to potentially drop the mpeg2 deconding altogether
from the fronted.

Acked-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20524>