[Mesa-dev] [PATCH] glsl_to_nir: fix ir_binop_vector_extract handling
Andriy Khulap
andriy.khulap at gmail.com
Tue Apr 17 12:08:12 UTC 2018
Ping
On Tue, Apr 3, 2018 at 3:32 PM, Andriy Khulap <andriy.khulap at gmail.com>
wrote:
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105438
> Signed-off-by: Andriy Khulap <andriy.khulap at globallogic.com>
> Signed-off-by: Vadym Shovkoplias <vadym.shovkoplias at globallogic.com>
> ---
> src/compiler/glsl/glsl_to_nir.cpp | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/compiler/glsl/glsl_to_nir.cpp
> b/src/compiler/glsl/glsl_to_nir.cpp
> index dbb58d82e8..1a0cd822a0 100644
> --- a/src/compiler/glsl/glsl_to_nir.cpp
> +++ b/src/compiler/glsl/glsl_to_nir.cpp
> @@ -1952,6 +1952,9 @@ nir_visitor::visit(ir_expression *ir)
> case ir_quadop_vector:
> result = nir_vec(&b, srcs, ir->type->vector_elements);
> break;
> + case ir_binop_vector_extract:
> + /* Prevent the unreachable trap */
> + break;
>
> default:
> unreachable("not reached");
> --
> 2.16.2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180417/ba8d1069/attachment.html>
More information about the mesa-dev
mailing list