intel/blorp: Fix compiler warning about num_layers.
authorEric Anholt <eric@anholt.net>
Sat, 10 Feb 2018 10:29:56 +0000 (10:29 +0000)
committerEric Anholt <eric@anholt.net>
Tue, 20 Mar 2018 21:06:46 +0000 (14:06 -0700)
commit4d8b476fa9a01aef94dc2d83e9306ba7c5adbe7f
tree1d0c8da000acac6f36ac58bdf453e59c789670bc
parentf0211155f14c890e0c771a4fb51663c48eca983c
intel/blorp: Fix compiler warning about num_layers.

The compiler doesn't notice that the condition for num_layers to be
undefined already defined it above (as our assert checked in a debug
build).

v2: Move the pair of assignments to one outside of the block.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/brw_blorp.c