microsoft/clc: Move inline samplers to the end of the variable list
authorJesse Natalie <jenatali@microsoft.com>
Thu, 18 Feb 2021 19:05:43 +0000 (11:05 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Feb 2021 21:33:54 +0000 (21:33 +0000)
commit3ee8f2ccba93a984f895eeff6d908979e22215b3
treeddf04be98db70bff33d229b2eec65d7517dc0de2
parentd773257012a2fa3d67144263387cff670cccc97a
microsoft/clc: Move inline samplers to the end of the variable list

Since inline samplers are uniforms, just like kernel args, and
nir_lower_vars_to_explicit_types will assign driver_location based
on order in the variable list, move the inline samplers to the end
of the list to prevent them from creating gaps in the kernel arg
offsets.

Fixes: ff05da7f ("microsoft: Add CLC frontend and kernel/compute support to DXIL converter")
Reviewed-By: Bill Kristiansen <billkris@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9138>
src/microsoft/clc/clc_compiler.c