diff options
author | Eric Anholt <[email protected]> | 2015-07-10 17:00:34 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-07-14 11:39:28 -0700 |
commit | cd7dd45bfec9ad68719c5e4e04b66ea4bcc1a2c1 (patch) | |
tree | 4f36da58f8ce43869330dd5b4759070d90482fe7 /src/gallium/drivers/vc4/vc4_tiling.c | |
parent | 1e80c9fab98d7de216937a47f8e231f3beb78403 (diff) |
vc4: Fix compiler warnings on release builds.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_tiling.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_tiling.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gallium/drivers/vc4/vc4_tiling.c b/src/gallium/drivers/vc4/vc4_tiling.c index f9801c9cefd..cf86eb0fa31 100644 --- a/src/gallium/drivers/vc4/vc4_tiling.c +++ b/src/gallium/drivers/vc4/vc4_tiling.c @@ -127,13 +127,10 @@ vc4_store_utile(void *dst, void *src, uint32_t src_stride, uint32_t cpp) static void check_box_utile_alignment(const struct pipe_box *box, int cpp) { - uint32_t utile_w = vc4_utile_width(cpp); - uint32_t utile_h = vc4_utile_height(cpp); - - assert(!(box->x & (utile_w - 1))); - assert(!(box->y & (utile_h - 1))); - assert(!(box->width & (utile_w - 1))); - assert(!(box->height & (utile_h - 1))); + assert(!(box->x & (vc4_utile_width(cpp) - 1))); + assert(!(box->y & (vc4_utile_height(cpp) - 1))); + assert(!(box->width & (vc4_utile_width(cpp) - 1))); + assert(!(box->height & (vc4_utile_height(cpp) - 1))); } static void |