mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
nir/opt_dead_cf: fix indentation
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
6935726197
commit
21424e019d
1 changed files with 4 additions and 4 deletions
|
|
@ -221,11 +221,11 @@ dead_cf_block(nir_block *block)
|
||||||
{
|
{
|
||||||
nir_if *following_if = nir_block_get_following_if(block);
|
nir_if *following_if = nir_block_get_following_if(block);
|
||||||
if (following_if) {
|
if (following_if) {
|
||||||
nir_const_value *const_value =
|
nir_const_value *const_value =
|
||||||
nir_src_as_const_value(following_if->condition);
|
nir_src_as_const_value(following_if->condition);
|
||||||
|
|
||||||
if (!const_value)
|
if (!const_value)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
opt_constant_if(following_if, const_value->u32[0] != 0);
|
opt_constant_if(following_if, const_value->u32[0] != 0);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue