nir: dont lower bindless samplers
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 22 Mar 2018 03:28:22 +0000 (14:28 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 10 Apr 2018 04:43:45 +0000 (14:43 +1000)
commit74b3fc2ce0f854bbe4b1d5e052e59b61a49f62ba
tree26e1f80f32607f2b3583731df1ee61c0e566ef52
parentbd4cc54c8bcad0836b92cf60c4d221e5dda38e9b
nir: dont lower bindless samplers

We neeed to skip the var if its not a uniform here as well as checking
the bindless flag since UBOs can contain bindless samplers.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/nir/nir_lower_samplers_as_deref.c