[Mesa-dev] [PATCH] glsl_to_nir: fix ir_binop_vector_extract handling

Andriy Khulap andriy.khulap at gmail.com
Tue Apr 3 12:32:15 UTC 2018


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



More information about the mesa-dev mailing list