anv: Set correct binding table entry count
authorSagar Ghuge <sagar.ghuge@intel.com>
Fri, 12 Mar 2021 03:03:17 +0000 (19:03 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Mar 2021 20:11:13 +0000 (20:11 +0000)
commit3a73148f25a1d0942ecd2c422510f5dec8b57a19
tree83647776a398a2768baa072175e9f1d4095430af
parentb6875b0094c3f5fd520bc8e0ac9613d13e6b71a9
anv: Set correct binding table entry count

We can use surface_count as it is to set binding table entry count since
it's already in units.

On Felix's Tigerlake with the GPU at fixed frequency, this patch
improves performance of several games:

   - Shadow of the Tomb Raider: +1.5%
   - Dota2vk: +1%
   - Dark Souls: +1%

v2: (Ken)
- Remove get_binding_table_entry_count() and use surface_count directly.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9548>
src/intel/vulkan/genX_pipeline.c