Brian Paul
5a1ad575c8
llvmpipe: asst. clean-ups in lp_rast_priv.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
27decb562e
llvmpipe: asst. clean-ups in lp_rast_tri_tmp.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
0230d7a771
llvmpipe: asst. clean-ups in lp_bld_blend_aos.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
10b9958aab
llvmpipe: misc clean-up in lp_rast_tri.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
1e3d8791a6
llvmpipe: minor clean-ups in lp_state_fs_analysis.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
b81b24c67d
llvmpipe: minor whitespace/formatting cleanups in lp_state_setup.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
f5e2c6d86e
llvmpipe: whitespace clean-ups in lp_rast.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
26eeb0a090
llvmpipe: asst. clean-ups in lp_setup_tri.c, lp_setup_rect.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
c9cb9eec05
llvmpipe: asst. clean-ups in lp_state_fs_linear.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
03b256f405
llvmpipe: asst. clean-ups in lp_state_fs_linear_llvm.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
b61f3334d4
llvmpipe: minor clean-ups in lp_jit.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:05 +00:00
Brian Paul
c6bd6140de
llvmpipe: asst. clean-ups in lp_state_fs.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
3717acdc43
gallivm: clean-ups in lp_bld_tgsi.[ch]
...
And move/rename LP_MAX_INSTRUCTIONS.
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
9a4504af59
gallivm: asst. clean-ups in lp_bld_sample_soa.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
f921a55d83
llvmpipe: asst. clean-up in lp_setup_context.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
f18a23d87c
gallivm: clean-up in lp_bld_sample.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
dee76459ca
llvmpipe: asst. clean-up and add comments in lp_state_fs.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
8432e0ee3d
llvmpipe: asst. clean-ups in lp_scene.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
c1ddfa15a4
llvmpipe: asst. clean-ups in lp_linear.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
b3dc37d22d
llvmpipe: asst. clean-ups in lp_rast.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
e060d7747d
llvmpipe: fix comment typo in lp_linear_fastpath.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
d10f61db0d
llvmpipe: asst. clean-ups in lp_rast_linear.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
5622b802e2
llvmpipe: asst. clean-up in lp_state_derived.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
5f671de486
gallivm: add const qualifier in lp_bld_nir_soa.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
3d6192c0b8
gallivm: clean-up in lp_bld_nir.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
aa9bd004a9
gallivm: cleanup lp_bld_arit.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
059afb8a90
gallivm: asst. clean-ups in lp_bld_type.[ch]
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
7111d20832
llvmpipe: asst. clean-ups in lp_state_setup.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
97e8837b44
llvmpipe: asst. clean-ups in lp_setup.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
fe48f5adff
llvmpipe: asst. clean-ups in lp_linear_fastpath.c
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
ff619d9cc5
gallivm: asst. clean-ups in lp_bld_sample.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
f203bfb375
gallivm: whitespace fixes in lp_bld_tgsi.h
...
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Brian Paul
1c2d1ad7ba
gallivm: assorted clean-ups in lp_bld_nir_aos.c
...
Whitespace fixes. Wrap lines to 78 chars. Add const qualifiers, etc.
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16937 >
2022-06-15 12:30:04 +00:00
Erik Faye-Lund
d8fcd699f1
docs/zink: correct requirement for tbos
...
This requirement is for ARB_texture_buffer_object_rgb32, which obviously
needs the UNIFORM_TEXEL_BUFFER bit, not SAMPLED_IMAGE.
Fixes: c3d7de47cd
("docs/zink: add GL 4.0 requirements")
Fixes: 6b38907b7f
("zink: fix feature requirement")
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17024 >
2022-06-15 12:24:43 +00:00
Yonggang Luo
5ac12eeebd
ci: Building spirv-to-dxil on both mingw and debian/x64
...
debian/i386 needs cross compile of `DirectX-Headers`, so just enable spirv-to-dxil on debian/x64
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Yonggang Luo
29baa326b9
microsoft/spirv_to_dxil: Fixes maybe-uninitialized compiling error in dxil_spirv_nir.c
...
Fixes following errors:
../src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
In file included from ../src/compiler/nir/nir_builder.h:365,
from ../src/microsoft/compiler/dxil_nir.h:29,
from ../src/microsoft/spirv_to_dxil/dxil_spirv_nir.c:28:
../src/microsoft/spirv_to_dxil/dxil_spirv_nir.c: In function 'dxil_spirv_nir_passes':
src/compiler/nir/nir_builder_opcodes.h:1321:11: error: 'dyn_yz_flip_mask' may be used uninitialized in this function [-Werror=maybe-uninitialized]
1321 | return nir_build_alu2(build, nir_op_iand, src0, src1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/microsoft/spirv_to_dxil/dxil_spirv_nir.c:290:59: note: 'dyn_yz_flip_mask' was declared here
290 | nir_ssa_def *y_flip_mask = NULL, *z_flip_mask = NULL, *dyn_yz_flip_mask;
| ^~~~~~~~~~~~~~~~
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Yonggang Luo
2e79e4b6d8
microsoft/clc: Add missing void to no-parameter function signature
...
Fixes this warning:
../../src/microsoft/clc/clc_compiler.c:1218:10: error: no previous prototype for 'clc_compiler_get_version' [-Werror=missing-prototypes]
1218 | uint64_t clc_compiler_get_version()
| ^~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Yonggang Luo
484658a74b
microsoft/clc: Delete unused local variables
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Yonggang Luo
a88ac30d38
microsoft/spirv_to_dxil: Delete unused local variable
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Yonggang Luo
beaaa84cea
dxil: Fixes warning about comparing different enum value and enum literal
...
warnings:
../../src/microsoft/spirv_to_dxil/spirv_to_dxil.c: In function 'spirv_to_dxil':
../../src/microsoft/spirv_to_dxil/spirv_to_dxil.c:101:14: warning: comparison between 'dxil_spirv_shader_stage' and 'enum <anonymous>' [-Wenum-compare]
101 | if (stage == MESA_SHADER_NONE || stage == MESA_SHADER_KERNEL)
| ^~
../../src/microsoft/spirv_to_dxil/spirv_to_dxil.c:101:43: warning: comparison between 'dxil_spirv_shader_stage' and 'enum <anonymous>' [-Wenum-compare]
101 | if (stage == MESA_SHADER_NONE || stage == MESA_SHADER_KERNEL)
| ^~
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Yonggang Luo
0d0283f698
dxil: Sync dxil_spirv_shader_stage with gl_shader_stage
...
Add STATIC_ASSERT to guard `dxil_spirv_shader_stage` and `gl_shader_stage`
to be same for each enum value.
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Yonggang Luo
ed7e78b084
dxil: Fixes compiling dxcapi.h with mingw.
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Yonggang Luo
4ae6cf2a74
microsoft/compiler: Fix error from double extern
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Yonggang Luo
2e61138d97
microsoft/compiler: Include stddef.h before using size_t
...
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671 >
2022-06-15 11:38:24 +00:00
Pierre-Eric Pelloux-Prayer
aa58ff191f
Revert "winsys/amdgpu: use AMDGPU_IB_FLAG_PREAMBLE for the CS preamble on gfx10+"
...
This reverts commit 8edafaa25c
.
This fixes hangs on Navi21.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17032 >
2022-06-15 10:38:04 +00:00
Pierre-Eric Pelloux-Prayer
b75ef3815f
radeonsi: use helpers to access si_screen::aux_context
...
This avoids to mistakenly use the context without locking it first.
The aux_context_lock needs to become a recursive one now, since
si_texture_get_handle can call si_reallocate_texture_inplace which
uses resource_create which may use the aux_context too.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6666
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17032 >
2022-06-15 10:38:04 +00:00
Pierre-Eric Pelloux-Prayer
bda1c081bd
radeonsi: add helper to use si_screen::aux_context
...
This context needs to be locked before usage, and flushed after.
If it's forgotten, radeonsi may crash (eg #6666 ).
To avoid this kind of error, introduce 2 helpers.
cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17032 >
2022-06-15 10:38:03 +00:00
Jordan Justen
81d6ae31d6
anv, iris: Enable compute engine with INTEL_COMPUTE_CLASS=1
...
If this environment variable is set, then a detected compute engine
will be used as described in docs/envvars.rst.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14395 >
2022-06-15 08:58:20 +00:00
Jordan Justen
0c90c695f5
anv, iris: Add support for I915_ENGINE_CLASS_COMPUTE
...
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14395 >
2022-06-15 08:58:20 +00:00
Jordan Justen
b27720f2a1
anv: Move STATE_BASE_ADDRESS programming into init_common_queue_state()
...
This is now needed following Ken's 8831cb38aa
.
Ref: 8831cb38aa
("anv: Stop updating STATE_BASE_ADDRESS on XeHP")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14395 >
2022-06-15 08:58:20 +00:00