Dave Airlie
cbaf072971
mesa/st: drop clip plane driver state bits
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:57 +00:00
Dave Airlie
33991f0743
mesa/st: drop scissor/window rect driver state bits
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
42c7570eed
mesa/st: drop ssbo, image and sampler driver state flags bits
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
75255a1d06
mesa: drop unused transform feedback state driver flags
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
6e15cc69ec
mesa/st: drop new uniform driver state bit
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
f35d22b2ee
mesa/st: drop new tess state driver bit
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
562f01fbc7
mesa/st: drop poly stipple driver state bit
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
784ced98f0
mesa/st: drop new depth/stencil state bits
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
14e1f9cb98
mesa/st: drop NewBlend driver state flags
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
4f0316613f
mesa/st: remove the viewport driver state flags
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
c5af853cb9
mesa/st: drop the rasterizer driver flags
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
b2175609ba
mesa/st: drop the new array driver state bit
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
df4f0672d3
mesa/st: merge NewDepthClamp state flag
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
535a9d4203
mesa: drop optional tex/tnl maintains mode.
...
These are always going to be on with gallium
v2: drop call, tidy up switch (kwg)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
1adff0d0db
mesa/st: move default enabled extensions into mesa.
...
This just moves a bunch of true assignments into the core
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
87cc3ee964
mesa/draw: drop the multi draw with indices fallback.
...
Gallium drivers don't need this.
v2: drop some more code
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Dave Airlie
d17f45df1a
mesa: remove StripTextureBorder option.
...
Always make this true.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261 >
2021-12-23 19:06:56 +00:00
Thomas H.P. Andersen
424941f0e4
ci: debian-clang: build more drivers
...
Add gallium drivers: i915 + asahi
Add vulkan drivers: swrast + panfrost
These can now compile with the current no-error list
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14289 >
2021-12-23 17:08:29 +01:00
Thomas H.P. Andersen
08f7d37fb9
panvk: cast negative value to unint8_t
...
The index is a uint8_t but can be assigned a negative 1
value in panvk_pipeline_builder_parse_color_blend()
The comparison to ~0 thus makes sense but clang will complain:
"result of comparison of constant -1 with expression of type
'const uint8_t' (aka 'const unsigned char') is always true
[-Wtautological-constant-out-of-range-compare]"
Fix this by casting to a uint8_t before comparison.
Fixes a warning with clang
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14289 >
2021-12-23 17:08:24 +01:00
Thomas H.P. Andersen
cea1df7d34
panvk: use FALLTHROUGH to stop a warning
...
Fixes a warning with clang
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14289 >
2021-12-23 17:08:01 +01:00
Thomas H.P. Andersen
bc19893f5d
i915g: avoid left shifting a negative number
...
Fixes a warning with clang
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14289 >
2021-12-23 16:22:53 +01:00
Thomas H.P. Andersen
107c63aee8
lavapipe: fix string-plus-int warning
...
Fixes a warning with clang
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14289 >
2021-12-23 16:22:53 +01:00
Alyssa Rosenzweig
944c8907ba
pan/bi: Don't call useless NIR passes
...
Cargo culted from the Midgard compiler.
nir_move_vec_src_uses_to_dest is intended for vec4 backends, which does
not apply to Bifrost. nir_lower_locals_to_regs runs much earlier in the
compiler and is a no-op here.
total instructions in shared programs: 107252 -> 107242 (<.01%)
instructions in affected programs: 2403 -> 2393 (-0.42%)
helped: 10
HURT: 0
helped stats (abs) min: 1.0 max: 1.0 x̄: 1.00 x̃: 1
helped stats (rel) min: 0.33% max: 0.57% x̄: 0.43% x̃: 0.42%
95% mean confidence interval for instructions value: -1.00 -1.00
95% mean confidence interval for instructions %-change: -0.49% -0.37%
Instructions are helped.
total tuples in shared programs: 89664 -> 89664 (0.00%)
tuples in affected programs: 333 -> 333 (0.00%)
helped: 1
HURT: 1
helped stats (abs) min: 1.0 max: 1.0 x̄: 1.00 x̃: 1
helped stats (rel) min: 0.52% max: 0.52% x̄: 0.52% x̃: 0.52%
HURT stats (abs) min: 1.0 max: 1.0 x̄: 1.00 x̃: 1
HURT stats (rel) min: 0.70% max: 0.70% x̄: 0.70% x̃: 0.70%
total cycles in shared programs: 8103.88 -> 8103.79 (<.01%)
cycles in affected programs: 29.42 -> 29.33 (-0.28%)
helped: 3
HURT: 1
helped stats (abs) min: 0.041665999999999315 max: 0.04166700000000034 x̄:
0.04 x̃: 0
helped stats (rel) min: 0.49% max: 0.55% x̄: 0.53% x̃: 0.54%
HURT stats (abs) min: 0.04166700000000034 max: 0.04166700000000034 x̄:
0.04 x̃: 0
HURT stats (rel) min: 0.74% max: 0.74% x̄: 0.74% x̃: 0.74%
95% mean confidence interval for cycles value: -0.09 0.05
95% mean confidence interval for cycles %-change: -1.22% 0.80%
Inconclusive result (value mean confidence interval includes 0).
total arith in shared programs: 3376.42 -> 3376.33 (<.01%)
arith in affected programs: 29.42 -> 29.33 (-0.28%)
helped: 3
HURT: 1
helped stats (abs) min: 0.041665999999999315 max: 0.04166700000000034 x̄:
0.04 x̃: 0
helped stats (rel) min: 0.49% max: 0.55% x̄: 0.53% x̃: 0.54%
HURT stats (abs) min: 0.04166700000000034 max: 0.04166700000000034 x̄:
0.04 x̃: 0
HURT stats (rel) min: 0.74% max: 0.74% x̄: 0.74% x̃: 0.74%
95% mean confidence interval for arith value: -0.09 0.05
95% mean confidence interval for arith %-change: -1.22% 0.80%
Inconclusive result (value mean confidence interval includes 0).
total quadwords in shared programs: 79681 -> 79681 (0.00%)
quadwords in affected programs: 283 -> 283 (0.00%)
helped: 1
HURT: 1
helped stats (abs) min: 1.0 max: 1.0 x̄: 1.00 x̃: 1
helped stats (rel) min: 0.62% max: 0.62% x̄: 0.62% x̃: 0.62%
HURT stats (abs) min: 1.0 max: 1.0 x̄: 1.00 x̃: 1
HURT stats (rel) min: 0.82% max: 0.82% x̄: 0.82% x̃: 0.82%
total threads in shared programs: 2226 -> 2227 (0.04%)
threads in affected programs: 1 -> 2 (100.00%)
helped: 1
HURT: 0
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14293 >
2021-12-23 14:01:48 +00:00
Emma Anholt
f0f6aec545
glcpp: Disable the valgrind tests.
...
We have the glcpp unit tests covered with ASan and MSan in CI, no need to
make everyone doing a "meson test" suffer through valgrind slowly churning
through these.
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14236 >
2021-12-23 09:10:11 +00:00
Emma Anholt
059b71b58d
ci: Enable a build with MSan.
...
This will catch uninitialized data usage (such as 37855fd59d ("glcpp:
Fully initialize struct gl_context")) much faster than valgrind does.
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14236 >
2021-12-23 09:10:11 +00:00
Vinson Lee
6e6e16b317
isaspec: Sort field names to generate deterministic output.
...
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Acked-by: Rob Clark <robclark@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14259 >
2021-12-22 23:08:12 -08:00
Thomas H.P. Andersen
e0ec818cfd
microsoft/compiler: dxil_nir_opt_alu_deref_srcs: return progress
...
dxil_nir_opt_alu_deref_srcs will always return false because
the progress variable is declared both for the function and also
inside the loop.
Spotted by a unused-but-set-variable warning from clang
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14290 >
2021-12-23 01:52:13 +00:00
Alyssa Rosenzweig
f5161f6cec
pan/va: Generalize LD_VAR_IMM_* to support flat varyings
...
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14292 >
2021-12-22 22:01:20 +00:00
Alyssa Rosenzweig
8df1b42eb0
pan/va: Add .signed bit to right shift instructions
...
This makes the RSHIFT_* family of instructions act like ARSHIFT.* on
Bifrost.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14292 >
2021-12-22 22:01:20 +00:00
Alyssa Rosenzweig
73d7a046ff
pan/va: Rename LEA_ATTR to LEA_VARY
...
This more accurately reflects the function of the instruction. Unlike
earlier Malis, there don't seem to be attribute records for varyings.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14292 >
2021-12-22 22:01:20 +00:00
Alyssa Rosenzweig
1e5a20a33b
pan/va: Remove extra LD_VAR_IMM_F32 source
...
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14292 >
2021-12-22 22:01:20 +00:00
Dave Airlie
4392c24844
intel/compiler: drop unused decleration
...
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14202 >
2021-12-22 21:37:55 +00:00
Dave Airlie
2692a5f8db
intel/compiler: don't lower swizzles in backend.
...
These are lowered by crocus in the frontend, the key
entries are still used.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14202 >
2021-12-22 21:37:55 +00:00
Dave Airlie
e12b0d0d60
intel/compiler: remove gfx6 gather wa from backend.
...
Crocus lowers this in the frontend, they key member is still used
but reset prior to backend.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14202 >
2021-12-22 21:37:55 +00:00
Dave Airlie
ebaba7a2fd
mesa/dd: drop unused InvalidateBufferSubData entry.
...
I already removed the users of this, but forgot the entry.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14286 >
2021-12-22 20:59:23 +00:00
Dave Airlie
57a730f4ad
mesa: drop unused _mesa_new_program.
...
This isn't used since classic removal.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14286 >
2021-12-22 20:59:23 +00:00
Dave Airlie
3c9bbe2fa1
mesa: drop unused new renderbuffer code.
...
This isn't used anywhere currently
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14286 >
2021-12-22 20:59:23 +00:00
Dave Airlie
be277ace89
mesa/st: use has_stencil_export instead of querying screen cap.
...
We already query at context setup, just use that value.
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14286 >
2021-12-22 20:59:23 +00:00
Dave Airlie
37190ad932
mesa: drop texformat code this isn't used.
...
v2: dropped comment (Tapani)
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14286 >
2021-12-22 20:59:23 +00:00
Timur Kristóf
739bf4d0be
spirv: Allow VRS with mesh shaders.
...
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14291 >
2021-12-22 21:29:22 +01:00
Thomas H.P. Andersen
c8c00fc6c3
draw: drop unused function
...
Introduced in 381e9fe6 . Never used.
Fixes a compile warning with clang
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252 >
2021-12-22 17:02:00 +00:00
Thomas H.P. Andersen
a7c5645dd3
gallium/tgsi_exec: drop unused function
...
Introduced in 9ca6cf0f and last usage
dropped in 31369987
Fixes a compile warning with clang
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252 >
2021-12-22 17:02:00 +00:00
Thomas H.P. Andersen
887b838632
gallium/u_threaded: drop unused function
...
tc_drop_sampler_view_reference is unused. It was introduced
in 340703e0 and its last usage was dropped in bb89cf4bf3
Fixes a compile warning with clang
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252 >
2021-12-22 17:02:00 +00:00
Thomas H.P. Andersen
2a5b867594
glx: remove a set but not used variable
...
total_sent was never used. It was introduced in
fdb07636f2
Fixes a warning in clang
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252 >
2021-12-22 17:02:00 +00:00
Thomas H.P. Andersen
46a0f6384e
r600: remove a set but not used variable
...
grid_size was never used. Not even when introduced
in 6a829a1b72
Fixes a warning on clang
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252 >
2021-12-22 17:02:00 +00:00
Thomas H.P. Andersen
ea33eceb32
r300: remove a set but not used variable
...
The use of phase_refmask was removed 12 years ago
in b7cf887ca7
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252 >
2021-12-22 17:02:00 +00:00
Thomas H.P. Andersen
202ebf9969
i915g: fix implicit-fallthrough warning
...
Fixes a warning on clang.
Uses FALLTHROUGH like the surrounding code.
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252 >
2021-12-22 17:02:00 +00:00
Thomas H.P. Andersen
57f6ef69b9
lavapipe: fix implicit-fallthrough warning
...
Fixes a warning on clang
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252 >
2021-12-22 17:02:00 +00:00
Marcin Ślusarz
a48f1d51e2
intel/compiler: disable workaround not applicable to gfx >= 11
...
There's nothing in bspec that would suggest this is still needed.
It only affected gfx 9 and 10.
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14280 >
2021-12-22 10:13:25 +00:00
Guido Günther
7440fbd596
etnaviv: Use mesa_log*
...
Makes it consistent with the DRM bits
Signed-off-by: Guido Günther <guido.gunther@puri.sm>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10546 >
2021-12-22 09:16:07 +01:00