From 8bb46de08b310b902f49795be45608293e21255e Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 29 Nov 2018 15:21:12 +0100 Subject: mesa: add MESA_SHADER_KERNEL used for CL kernels Signed-off-by: Karol Herbst Reviewed-by: Jason Ekstrand Reviewed-by: Bas Nieuwenhuizen --- src/mesa/main/shaderobj.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/main') diff --git a/src/mesa/main/shaderobj.h b/src/mesa/main/shaderobj.h index c7ccc54afe4..0d512550de4 100644 --- a/src/mesa/main/shaderobj.h +++ b/src/mesa/main/shaderobj.h @@ -225,6 +225,9 @@ _mesa_shader_stage_to_subroutine(gl_shader_stage stage) return GL_TESS_EVALUATION_SUBROUTINE; case MESA_SHADER_NONE: break; + case MESA_SHADER_KERNEL: + unreachable("not reached"); + break; } unreachable("not reached"); } @@ -246,6 +249,7 @@ _mesa_shader_stage_to_subroutine_uniform(gl_shader_stage stage) case MESA_SHADER_TESS_EVAL: return GL_TESS_EVALUATION_SUBROUTINE_UNIFORM; case MESA_SHADER_NONE: + case MESA_SHADER_KERNEL: break; } unreachable("not reached"); -- cgit v1.2.3