From: Eric Anholt Date: Sun, 7 Aug 2011 20:38:50 +0000 (-0700) Subject: i965/vs: Enable variable array indexing in the VS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54fa706d6f06955221cb6b452b5b170bfaaceef4;p=mesa.git i965/vs: Enable variable array indexing in the VS. --- diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 2eeeec25cac..2dc32c95610 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -111,12 +111,14 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *prog) brw_do_cubemap_normalize(shader->ir); lower_noise(shader->ir); lower_quadop_vector(shader->ir, false); + + bool input = true; + bool output = stage == MESA_SHADER_FRAGMENT; + bool temp = stage == MESA_SHADER_FRAGMENT; + bool uniform = true; + lower_variable_index_to_cond_assign(shader->ir, - GL_TRUE, /* input */ - GL_TRUE, /* output */ - GL_TRUE, /* temp */ - GL_TRUE /* uniform */ - ); + input, output, temp, uniform); do { progress = false;