anv: Mark max_push_range UNUSED and simplify the code
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 11 Feb 2020 13:52:17 +0000 (07:52 -0600)
committerMarge Bot <eric+marge@anholt.net>
Sat, 7 Mar 2020 04:51:28 +0000 (04:51 +0000)
commitff5de35127d788584be56b047cb609effca5c80b
tree971c50cec36d28073d09259e8c894a18f9bba216
parent35ca2ad22e20ad3bc3301ee1e9157b8c351d959e
anv: Mark max_push_range UNUSED and simplify the code

The compiler should be smart enough to figure out that it's unused on
Gen11 and earlier and delete the code which calculates.  Us adding an
`if (GEN_GEN >= 12)` check is unnecessary and just dirties the code.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3777>
src/intel/vulkan/genX_cmd_buffer.c