spirv: Replace vtn_constant_value with vtn_constant_uint
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Jan 2019 17:57:48 +0000 (11:57 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 1 Feb 2019 17:34:02 +0000 (17:34 +0000)
commit9b37e93e4256ab1610bff5cdacc1e846467fc19d
treef8d236dffbbf14fee18c71416e34739007c81095
parent5e7f800f32a3d7299b157bd3028fc46455f77e83
spirv: Replace vtn_constant_value with vtn_constant_uint

The uint version is less typing, supports different bit sizes, and is
probably a bit more safe because we're actually verifying that the
SPIR-V value is an integer scalar constant.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_private.h
src/compiler/spirv/vtn_subgroup.c