aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-02-12 14:02:09 -0600
committerJason Ekstrand <[email protected]>2019-03-05 10:06:50 -0600
commitcab064bc10c06eb9fe92e4038d39e7c686fd1ba2 (patch)
tree319d3e5ec44d93529175d3997cd154cc8ee9fd8d /src/intel
parent49cf61c6aa562dba298291c10c365bd2623c2c00 (diff)
anv: drop add_var_binding from anv_nir_apply_pipeline_layout.c
It has exactly one caller. Just inline it. Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_nir_apply_pipeline_layout.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c
index c528132d9ca..89f4bb7899c 100644
--- a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c
+++ b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c
@@ -53,16 +53,11 @@ add_binding(struct apply_pipeline_layout_state *state,
}
static void
-add_var_binding(struct apply_pipeline_layout_state *state, nir_variable *var)
-{
- add_binding(state, var->data.descriptor_set, var->data.binding);
-}
-
-static void
add_deref_src_binding(struct apply_pipeline_layout_state *state, nir_src src)
{
nir_deref_instr *deref = nir_src_as_deref(src);
- add_var_binding(state, nir_deref_instr_get_variable(deref));
+ nir_variable *var = nir_deref_instr_get_variable(deref);
+ add_binding(state, var->data.descriptor_set, var->data.binding);
}
static void