st/glsl_to_nir: set paramater value offset as driver location for packed uniforms
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 22 Mar 2018 00:52:19 +0000 (11:52 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 10 Apr 2018 04:43:45 +0000 (14:43 +1000)
commitbd4cc54c8bcad0836b92cf60c4d221e5dda38e9b
treeed44cd6c45139f7c969e2539d9a08dc900bd313a
parent222d862cd332dba3c2bd8b28270c3a0d0aed6ec6
st/glsl_to_nir: set paramater value offset as driver location for packed uniforms

This allows us to simplify the code and will also be useful for supporting
bindless textures.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp
src/mesa/state_tracker/st_nir.h
src/mesa/state_tracker/st_nir_lower_uniforms_to_ubo.c