mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-13 13:10:34 +01:00
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>
This commit is contained in:
parent
f0211155f1
commit
4d8b476fa9
1 changed files with 1 additions and 1 deletions
|
|
@ -1426,8 +1426,8 @@ brw_blorp_clear_depth_stencil(struct brw_context *brw,
|
|||
} else {
|
||||
level = irb->mt_level;
|
||||
start_layer = irb->mt_layer;
|
||||
num_layers = fb->MaxNumLayers ? irb->layer_count : 1;
|
||||
}
|
||||
num_layers = fb->MaxNumLayers ? irb->layer_count : 1;
|
||||
|
||||
stencil_mask = ctx->Stencil.WriteMask[0] & 0xff;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue