From 501bedffa650c7d340d8f716736f6333c1317b34 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 10 Apr 2016 21:28:37 -0700 Subject: i965: Make a few tessellation related functions non-static. Also, move them to brw_shader.cpp so they're in a location for code used by both the vec4 and fs worlds. Signed-off-by: Kenneth Graunke Reviewed-by: Eduardo Lima Mitev --- src/mesa/drivers/dri/i965/brw_shader.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_shader.h') diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h index 15bed78cb7c..fc228f66d81 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.h +++ b/src/mesa/drivers/dri/i965/brw_shader.h @@ -292,6 +292,10 @@ int type_size_scalar(const struct glsl_type *type); int type_size_vec4(const struct glsl_type *type); int type_size_vec4_times_4(const struct glsl_type *type); +unsigned tesslevel_outer_components(GLenum tes_primitive_mode); +unsigned tesslevel_inner_components(GLenum tes_primitive_mode); +unsigned writemask_for_backwards_vector(unsigned mask); + #ifdef __cplusplus } #endif -- cgit v1.2.3