Re: [Mesa-dev] [PATCH] intel/blorp: Fix compiler warning about num_layers.

2018-03-20 Thread Lionel Landwerlin
On 16/03/18 22:20, Eric Anholt wrote: 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. Cc: Jason Ekstrand Cc: Lionel Landwerlin Revie

[Mesa-dev] [PATCH] intel/blorp: Fix compiler warning about num_layers.

2018-03-16 Thread Eric Anholt
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. Cc: Jason Ekstrand Cc: Lionel Landwerlin --- src/mesa/drivers/dri/i965/brw_blorp.c | 2