aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <[email protected]>2020-05-20 15:34:12 +0200
committerPierre-Eric Pelloux-Prayer <[email protected]>2020-05-22 09:12:18 +0200
commite75effc629fbae477284ef80bb25a9646cd32cdd (patch)
tree83d4441d22da8b29b842b76e3f37620e1e66d57f /src
parent004ac58509d601c4be5c7905ccd9ce0f647df05e (diff)
radeonsi/sdma: remove useless compare
clang warning: result of comparison of constant 65536 with expression of type 'uint16_t' (aka 'unsigned short') is always true Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5119>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/cik_sdma.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/cik_sdma.c b/src/gallium/drivers/radeonsi/cik_sdma.c
index de0759ea387..d9ba9ad88b8 100644
--- a/src/gallium/drivers/radeonsi/cik_sdma.c
+++ b/src/gallium/drivers/radeonsi/cik_sdma.c
@@ -160,10 +160,9 @@ static bool si_sdma_v4_copy_texture(struct si_context *sctx, struct pipe_resourc
/* Check if everything fits into the bitfields */
if (!(tiled_x <= (1 << 14) && tiled_y <= (1 << 14) && tiled_z <= (1 << 11) &&
tiled_width <= (1 << 14) && tiled_height <= (1 << 14) && tiled_depth <= (1 << 11) &&
- tiled->surface.u.gfx9.surf.epitch <= (1 << 16) && linear_x <= (1 << 14) &&
- linear_y <= (1 << 14) && linear_z <= (1 << 11) && linear_pitch <= (1 << 14) &&
- linear_slice_pitch <= (1 << 28) && copy_width <= (1 << 14) &&
- copy_height <= (1 << 14) && copy_depth <= (1 << 11)))
+ linear_x <= (1 << 14) && linear_y <= (1 << 14) && linear_z <= (1 << 11) &&
+ linear_pitch <= (1 << 14) && linear_slice_pitch <= (1 << 28) &&
+ copy_width <= (1 << 14) && copy_height <= (1 << 14) && copy_depth <= (1 << 11)))
return false;
/* Check alignments */