mesa: drop unused nonconst sampler functions.
authorDave Airlie <airlied@gmail.com>
Fri, 5 Feb 2016 03:34:29 +0000 (13:34 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 9 Feb 2016 00:52:08 +0000 (10:52 +1000)
Since we fixed the glsl->tgsi conversion we no longer need
this function.

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/program/sampler.cpp
src/mesa/program/sampler.h

index f118552d64ef922a47ce01ccd85cf4fd76d23b21..994495af2ae2a433e1d451ceb31a151271113433 100644 (file)
@@ -132,13 +132,3 @@ _mesa_get_sampler_uniform_value(class ir_dereference *sampler,
           getname.offset;
 }
 
-
-class ir_rvalue *
-_mesa_get_sampler_array_nonconst_index(class ir_dereference *sampler)
-{
-   ir_dereference_array *deref_arr = sampler->as_dereference_array();
-   if (!deref_arr || deref_arr->array_index->as_constant())
-      return NULL;
-
-   return deref_arr->array_index;
-}
index 61c7f5851e7bd3f312d60bfa687bb9a6fcceca37..397805a224fb9e67cac2098a6be3f80dca462ac9 100644 (file)
@@ -32,8 +32,4 @@ _mesa_get_sampler_uniform_value(class ir_dereference *sampler,
                                struct gl_shader_program *shader_program,
                                const struct gl_program *prog);
 
-class ir_rvalue *
-_mesa_get_sampler_array_nonconst_index(class ir_dereference *sampler);
-
-
 #endif /* SAMPLER_H */