[Mesa-dev] [PATCH 1/3] nir: Remove unused has_indirect variable.
Jason Ekstrand
jason at jlekstrand.net
Tue Feb 10 13:07:13 PST 2015
Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
On Feb 10, 2015 11:24 AM, "Matt Turner" <mattst88 at gmail.com> wrote:
> ---
> src/glsl/nir/nir_lower_samplers.cpp | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/src/glsl/nir/nir_lower_samplers.cpp
> b/src/glsl/nir/nir_lower_samplers.cpp
> index dca086d..3015dbd 100644
> --- a/src/glsl/nir/nir_lower_samplers.cpp
> +++ b/src/glsl/nir/nir_lower_samplers.cpp
> @@ -69,7 +69,6 @@ lower_sampler(nir_tex_instr *instr, struct
> gl_shader_program *shader_program,
>
> /* Get the name and the offset */
> instr->sampler_index = 0;
> - bool has_indirect = false;
> char *name = ralloc_strdup(mem_ctx, instr->sampler->var->name);
>
> for (nir_deref *deref = &instr->sampler->deref;
> @@ -82,7 +81,6 @@ lower_sampler(nir_tex_instr *instr, struct
> gl_shader_program *shader_program,
> * thing we have. This should be ok for now as we don't support
> * arrays_of_arrays yet.
> */
> - assert(!has_indirect);
>
> instr->sampler_index *= glsl_get_length(deref->type);
> switch (deref_array->deref_array_type) {
> @@ -92,8 +90,6 @@ lower_sampler(nir_tex_instr *instr, struct
> gl_shader_program *shader_program,
> ralloc_asprintf_append(&name, "[%u]",
> deref_array->base_offset);
> break;
> case nir_deref_array_type_indirect: {
> - assert(!has_indirect);
> -
> instr->src = reralloc(mem_ctx, instr->src, nir_tex_src,
> instr->num_srcs + 1);
> memset(&instr->src[instr->num_srcs], 0, sizeof *instr->src);
> --
> 2.0.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150210/4e51d314/attachment.html>
More information about the mesa-dev
mailing list