ir3: Don't calculate num_samp ourselves
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 17 Jun 2020 09:07:26 +0000 (11:07 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Jun 2020 14:36:50 +0000 (14:36 +0000)
commit168c42290f91dd172fb370f476d384188dbf9ca4
tree713e7003bbfa5ce53229b048f605af956be7888e
parent568e06b3a6f08be93ec2b94c5f2a81420b664c40
ir3: Don't calculate num_samp ourselves

In addition to duplicating what core NIR does better, this was wrong for
Vulkan, where it should be 0 as there are no non-bindless samplers.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5519>
src/freedreno/ir3/ir3_compiler_nir.c