Alyssa Rosenzweig
32da749edb
docs/systems: Update Panfrost link
...
There's not much on the standalone site anymore (it dates back from
before Panfrost was upstreamed), let's just keep everything in Mesa.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8148 >
2020-12-19 14:29:44 +00:00
Alyssa Rosenzweig
59b7228a68
docs: Update Panfrost in the source tree
...
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8148 >
2020-12-19 14:29:44 +00:00
Alyssa Rosenzweig
496ca466fd
docs/panfrost: Fix comment about Lima
...
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Suggested-by: Vasily Khoruzhick <anarsoul@gmail.com >
Reviewed-by: Adam Jackson <ajax@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8148 >
2020-12-19 14:29:44 +00:00
Vinson Lee
b9fccafed6
vc4: Fix typos.
...
Signed-off-by: Vinson Lee <vlee@freedesktop.org >
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8120 >
2020-12-18 13:23:18 -08:00
Samuel Pitoiset
19e96d4566
radv: remove useless push constants data when resolving ds attachments
...
Depth/stencil resolves are only allowed inside a subpass, which means
the offset is always 0 and the draw/dispatch covers the whole image.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8127 >
2020-12-18 17:58:54 +00:00
Caio Marcelo de Oliveira Filho
c4c9c780b1
spirv: Remove more dead variables
...
SPIR-V modules can have multiple shaders (including of the same
stage), but the global variables are all declared for the whole
module. This can result in variables with same Binding but
incompatible types, so those need to be removed before we use.
Previously, a similar issue but with a narrower scope was fixed by
6775665e5e ("spirv: Eliminate dead input/output variables after
translation.").
This patch depends on the previous patch that prevents variables used
only in pointer initializers to be considered dead.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3686
Fixes: 3a266a18 ("nir/spirv: Add support for declaring variables")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8133 >
2020-12-18 17:41:02 +00:00
Caio Marcelo de Oliveira Filho
acce4ce04e
nir: Consider pointer initializers in nir_remove_dead_variables
...
Between the creation of a shader (from GLSL or SPIRV frontends) and
nir_lower_variable_initializers is called, variables may refer to
other variables for initialization. Those referred variables need to
be kept alive, so consider that in the pass.
Fixes: 7acc81056f ("compiler/nir: Add support for variable initialization from a pointer")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8133 >
2020-12-18 17:41:02 +00:00
Caio Marcelo de Oliveira Filho
577bfba959
nir: Remove unused parameter in remove_dead_var_writes
...
And destroy the live set earlier in nir_remove_dead_variables.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8133 >
2020-12-18 17:41:02 +00:00
Caio Marcelo de Oliveira Filho
617d8d3788
nir: Fix outdated name in comment
...
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8133 >
2020-12-18 17:41:02 +00:00
Caio Marcelo de Oliveira Filho
f65750d221
spirv: Implement OpArrayLength for OpenGL
...
Uses same NIR intrinsic as glsl_to_nir. Make it an option so it is
easy later to move Vulkan drivers incrementally to use it.
Fixes piglit test spec/arb_gl_spirv/execution/ssbo/unsized-array-length.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3691
Fixes: 15e43907 ("iris: Enable ARB_gl_spirv and ARB_spirv_extensions")
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com >
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8136 >
2020-12-18 17:13:46 +00:00
Mike Blumenkrantz
e9ab35ad4f
zink: fix gl_SampleMaskIn handling
...
this is an array[1], so we need to do some extra legwork here even though
probably it'd work fine even without it
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7490 >
2020-12-18 16:52:44 +00:00
Mike Blumenkrantz
354b2f7f75
zink: fix rp hash table
...
hash table keys for inserted items have to be valid memory ranges for the
lifetime of the corresponding entry, so using a stack-allocated key like this
is broken and doesn't accurately return the correct renderpass
Fixes a872f46369 : ("zink: cache render-passes")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8011 >
2020-12-18 16:45:52 +00:00
Mike Blumenkrantz
ec34b3f117
zink: move rp hash functions further up in file
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8011 >
2020-12-18 16:45:52 +00:00
Mike Blumenkrantz
f9a8d51f46
zink: handle nir_op_find_lsb and nir_op_ifind_msb in ntv
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8153 >
2020-12-18 16:34:33 +00:00
Mike Blumenkrantz
a83002ceda
zink: handle nir_op_ibitfield_extract: in ntv
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8153 >
2020-12-18 16:34:33 +00:00
Mike Blumenkrantz
99d890f599
zink: add nir_op_bit_count to ntv
...
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8153 >
2020-12-18 16:34:33 +00:00
Mike Blumenkrantz
c768c5297a
zink: force stencil format for stencil-only samplers and swizzle the right component
...
packed buffers will still return the full format when we're using only the
stencil aspect, so we need to explicitly set the format here
also due to 7ca72f1726 we can't use the provided
swizzle for this case and have to force y -> x component swizzle
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7491 >
2020-12-18 16:23:01 +00:00
Mike Blumenkrantz
ad0037fcfe
mesa/st: set lower_point_size for tes/gs during program update
...
these may not reach the other callsite in st_precompile_shader_variant(),
so we need to ensure that we get psiz if we need it
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5885 >
2020-12-18 16:06:05 +00:00
Mike Blumenkrantz
6669d6ff0a
mesa/st: flag ST_NEW_CONSTANTS upon running nir_lower_point_size_mov
...
this reduces to a load_ubo after optimization, so we need to ensure that
the constant data is put in a buffer instead of relying on it happening
coincidentally
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5885 >
2020-12-18 16:06:05 +00:00
Mike Blumenkrantz
7eb5fd98fd
mesa/st: handle running nir lower passes for ucp and psiz in tess stage
...
if tess is the last shader program to run then we need to perform these
lowering passes at that time rather than during the vs
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5885 >
2020-12-18 16:06:05 +00:00
Mike Blumenkrantz
db165e9db3
mesa/st: tabs -> spaces in st_program
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5885 >
2020-12-18 16:06:05 +00:00
Mike Blumenkrantz
7c302c2def
mesa/st: do not run lower_psiz_mov on vertex shader if geometry shader is present
...
this only needs to be changed on the last stage between the two
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5885 >
2020-12-18 16:06:05 +00:00
Mike Blumenkrantz
6a87b61e63
mesa/st: run nir_lower_point_size_mov on geometry shaders based on cap
...
geometry shaders need to output this variable as well, and the variable
added using the pass on the vertex shader won't be passed through here
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5885 >
2020-12-18 16:06:05 +00:00
Samuel Pitoiset
30852b5b49
radv: fix maxFragmentShadingRateRasterizationSamples
...
It's not a bitfield. This limit is purely informational.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8100 >
2020-12-18 14:15:28 +01:00
Samuel Pitoiset
c9e1264ec7
radv: adjust the maximum number of coverage samples for VRS
...
It should actually be 4 because the maximum fragment size supported
by the hardware is 2x2.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8100 >
2020-12-18 14:15:25 +01:00
jzielins
2c9bc0d20e
swr: Fix crashes on Windows
...
SWR is missing implementation of pipe_context::flush_resource
function, which is now in the execution path on Windows.
This change adds an empty implementation (flush_resource
is NOOP in SWR) to prevent crashes
Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8159 >
2020-12-18 11:25:45 +00:00
Erik Faye-Lund
9860b19086
docs/features: update list of zink features
...
There's a few GL4 features that zink already supports.
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8158 >
2020-12-18 11:09:33 +00:00
Rhys Perry
271dd1837a
ac/llvm: insert phis before demote kill
...
LLVM (like NIR) requires phi instructions to be before any other
instructions in the block. ac_branch_exited() can insert non-phi
instructions before visit_block() adds phis, so visit_block() should add
phi instructions before the non-phi instructions ac_branch_exited()
inserts.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Fixes: aa757f4f8c ("ac/llvm: fix demote inside conditional branches")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8054 >
2020-12-18 09:56:43 +00:00
Juan A. Suarez Romero
3a63e43071
doc/features: add VC4 driver
...
Include this Broadcom driver in the feature matrix, together with the
implemented extensions.
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com >
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8137 >
2020-12-18 08:51:27 +00:00
Tony Wasserka
4ec78999b0
gitlab: add RADV bug report template
...
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com >
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7551 >
2020-12-18 08:03:04 +00:00
Samuel Pitoiset
81a6ee7a9b
radv: enable TC-compat HTILE for D32_SFLOAT+MSAA on GFX10+
...
This was disabled due to some depth/stencil resolve CTS failures
which are now fixed.
I figured that disabling TC-compat HTILE for D32_SFLOAT+MSAA reduced
performance in Control by -11% on Vega10. In fact, the game only uses
D32_SFLOAT for depth rendering.
This gives a huge boost in Control on Navi10 (eg. +17% in MSAA4x).
Note that the game is still slower than PRO without MSAA on Navi10,
but as fast (or even a bit faster) on Vega10.
I think TC-compat HILE could also be enabled for D32_SFLOAT_S8_UINT
but it needs more testing first.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8143 >
2020-12-18 07:57:03 +01:00
Samuel Iglesias Gonsálvez
84136d78e6
turnip: fix cube map array image size calculation
...
imageSize() expects the last component of the return value to be the
number of layers in the texture array. In the case of cube map array,
it will return a ivec3, with the third component being the number of
layer-faces.
Fixes: dEQP-VK.image.image_size.cube_array.*
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8087 >
2020-12-18 06:43:07 +01:00
Marek Olšák
8c5c133741
mesa: call Driver.TexParameter in glPopAttrib to fix r100, r200, old nouveau
...
The glPopAttrib optimizations incorrectly removed it.
Use GL_ALL_ATTRIB_BITS to mean "all texture parameters have changed" to
make it more efficient.
Fixes: d0e18550e2 - mesa: optimize saving/restoring bound textures for glPush/PopAttrib
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8046 >
2020-12-18 04:53:44 +00:00
Marek Olšák
a6164ab48c
mesa: don't restore texture state into unbound textures in glPopAttrib
...
It was a typo, or thinko, sort of.
Fixes: d0e18550e2 - mesa: optimize saving/restoring bound textures for glPush/PopAttrib
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8046 >
2020-12-18 04:53:44 +00:00
Marek Olšák
593dac8028
mesa: overallocate program parameter values
...
See the comment. This is something I spotted in the code. There is
no known bug caused by this.
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8046 >
2020-12-18 04:53:44 +00:00
Marek Olšák
884e84035e
mesa: remove unused LastUniformIndex
...
This is now dead code.
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8046 >
2020-12-18 04:53:44 +00:00
Marek Olšák
23dc21b9d6
mesa: fix assertion paramList->LastUniformIndex < paramList->FirstStateVarIndex
...
This changes the code so that program parameters no longer have to be
sorted (meaning uniforms and constants are before state variables).
Instead of checking if the parameter is a state variable for every element,
teach all functions to handle non-state parameters safely. This is better
for the most common case where parameters are sorted or semi-sorted.
The new enum STATE_NOT_STATE_VAR identifes that a parameter is not
a state variable.
Fixes: 63f7d7dd - mesa: take advantage of sorted parameters in _mesa_load_state_parameters
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3914
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8046 >
2020-12-18 04:53:44 +00:00
Marek Olšák
2c92df435d
draw: fix incorrect NIR support code
...
"state" contains NIR, while "vs->base.state" contains TGSI generated
from NIR. It was a typo.
This fixes the arb_vp subtest of: DRAW_USE_LLVM=1 piglit/bin/rasterpos
Fixes: df11ceaaaf - draw: add NIR support to draw_create_vertex_shader
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8046 >
2020-12-18 04:53:44 +00:00
Marek Olšák
311064419d
nir_to_tgsi: fix NIR options instead of asserting
...
Drivers can return any NIR options, but nir_to_tgsi doesn't support
any options because it was written to assume certain options are set.
This fixes a regression caused when st/mesa switched to NIR for passing
shaders to the draw module.
Fixes: 44b7e1497f - st/mesa: don't generate TGSI for the draw VS because it now supports NIR too
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3949
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3965
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8046 >
2020-12-18 04:53:44 +00:00
Eric Anholt
e4cdbeab81
freedreno/a6xx: Flush depth at the end of bypass rendering, too.
...
We apparently don't have anything else making sure that it's flushed in
between use as a render target and use as a texture source, so bypass-mode
depth texture sampling could get stale data.
Fixes consistent (as far as I could see) failures in FD_MESA_DEBUG=nogmem
on:
dEQP-GLES31.functional.texture.multisample.samples_*.use_texture_depth_2d
dEQP-GLES31.functional.stencil_texturing.render.depth24_stencil8_draw
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8146 >
2020-12-18 02:22:45 +00:00
Eric Anholt
f740af2796
mesa/st: Finalize the texture before BlitFramebuffer from it.
...
If the texture hasn't yet been validated, the current tex image contents
may have been ignored in favor of the texture's main miptree. Fixes test
failure on softpipe and intermittent failures on radeonsi in:
https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/428
Cc: mesa-stable
Tested-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Chia-I Wu <olvaffe@gmail.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8091 >
2020-12-18 02:05:40 +00:00
Marcin Ślusarz
5f2166525f
util/list: use helper function in list_is_singular
...
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110 >
2020-12-18 01:46:00 +00:00
Marcin Ślusarz
a9bcb10ec4
omx: use list_is_linked
...
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110 >
2020-12-18 01:46:00 +00:00
Marcin Ślusarz
240322fad2
r600: use list_is_linked
...
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110 >
2020-12-18 01:46:00 +00:00
Marcin Ślusarz
1d2077c3d6
iris: use list_is_linked
...
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110 >
2020-12-18 01:46:00 +00:00
Marcin Ślusarz
aa7b497d9a
gallium: use list_is_linked
...
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110 >
2020-12-18 01:46:00 +00:00
Marcin Ślusarz
c5ecb59d97
nine: use list_is_linked
...
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110 >
2020-12-18 01:46:00 +00:00
Marcin Ślusarz
55a072cb16
util/list: add list_is_linked
...
v2: verify node is valid in list_is_linked (Timothy)
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110 >
2020-12-18 01:46:00 +00:00
Marcin Ślusarz
8f438f646c
iris: remove redundant check
...
list_del dereferences both next and prev, so if only one of them could
be NULL we would get crashes already.
Should fix "Dereference after null check" reported by Coverity.
Code was added in: 64b73b770b ("iris: Fix bad external BO hash table and zombie list interactions")
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110 >
2020-12-18 01:46:00 +00:00
Marcin Ślusarz
bec3463977
svga: remove duplicated code
...
list_del unconditionally sets "next" and "prev" to NULL.
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com >
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110 >
2020-12-18 01:46:00 +00:00