anv/cmd_buffer: Pull the undefined layout condition into the if
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 28 Nov 2017 02:06:47 +0000 (18:06 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 9 Feb 2018 00:35:31 +0000 (16:35 -0800)
commit3ef8c4b2f53e00701375597aaaef9fc9617d7b4d
tree98c917687e9e1ac240101612bdb83cad14af646a
parent857b5b5a7f7741b5433c59814c66d0612c05ae7d
anv/cmd_buffer: Pull the undefined layout condition into the if

Now that this isn't a multi-case if and it's just the one case, it's a
bit clearer if the condition is just part of the if instead of being
pulled out into a boolean variable.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/genX_cmd_buffer.c