glsl: Add ir_binop_vector_extract in NIR
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 9 May 2018 15:17:59 +0000 (15:17 +0000)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 1 Jun 2018 16:09:22 +0000 (18:09 +0200)
commitcbe4baed1f63db697500db069756750afc9e7609
tree0f8280883a02344faf7799ff0d98801a346dbb02
parent4ad8e2ac82d6dbc78dd39947d6b2914be169d0d9
glsl: Add ir_binop_vector_extract in NIR

Implement ir_binop_vector_extract using NIR operations. Based on SPIR-V
to NIR approach.

This fixes:
dEQP-GLES3.functional.shaders.indexing.moredynamic.with_value_from_indexing_expression_fragment
Piglit's glsl-fs-vec4-indexing-8.shader_test

CC: mesa-stable@lists.freedesktop.org
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Iago Toral <itoral@igalia.com>
src/compiler/glsl/glsl_to_nir.cpp