summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2018-11-29 15:21:12 +0100
committerKarol Herbst <[email protected]>2019-01-21 20:36:41 +0100
commit8bb46de08b310b902f49795be45608293e21255e (patch)
tree228268450a023d42a4418222e77502a31dd83a67 /src/mesa/main
parent2aa78e46e9746174e24a192eefd4e3fee703a357 (diff)
mesa: add MESA_SHADER_KERNEL
used for CL kernels Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/shaderobj.h4
1 files changed, 4 insertions, 0 deletions
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");