summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_tiling.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-01-25 13:46:58 -0800
committerEric Anholt <[email protected]>2019-01-27 08:30:03 -0800
commitfcdbd441a249028703e8b752c72dfcd8692843ab (patch)
tree66779d14049ca6d1370f8c1cdc2d8e9074e0c985 /src/gallium/drivers/v3d/v3d_tiling.c
parentedb1fcd9637a3a590d7eb436349855d009e62a98 (diff)
v3d: Fix release-build warning about utile_h.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_tiling.c')
-rw-r--r--src/gallium/drivers/v3d/v3d_tiling.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/v3d/v3d_tiling.c b/src/gallium/drivers/v3d/v3d_tiling.c
index 9fd801c3e95..95cd0dff60f 100644
--- a/src/gallium/drivers/v3d/v3d_tiling.c
+++ b/src/gallium/drivers/v3d/v3d_tiling.c
@@ -79,9 +79,8 @@ static inline uint32_t
v3d_get_utile_pixel_offset(uint32_t cpp, uint32_t x, uint32_t y)
{
uint32_t utile_w = v3d_utile_width(cpp);
- uint32_t utile_h = v3d_utile_height(cpp);
- assert(x < utile_w && y < utile_h);
+ assert(x < utile_w && y < v3d_utile_height(cpp));
return x * cpp + y * utile_w * cpp;
}