Browse Source

Remove unused _mesa_glsl_get_vector_type

This function has been completely replaced by glsl_type::get_instance.
tags/mesa-7.9-rc1
Ian Romanick 15 years ago
parent
commit
532edd9bc4
2 changed files with 0 additions and 53 deletions
  1. 0
    50
      glsl_types.cpp
  2. 0
    3
      glsl_types.h

+ 0
- 50
glsl_types.cpp View File

@@ -94,56 +94,6 @@ _mesa_glsl_initialize_types(struct _mesa_glsl_parse_state *state)
}


const struct glsl_type *
_mesa_glsl_get_vector_type(unsigned base_type, unsigned vector_length)
{
switch (base_type) {
case GLSL_TYPE_UINT:
switch (vector_length) {
case 1:
case 2:
case 3:
case 4:
return glsl_uint_type + (vector_length - 1);
default:
return glsl_error_type;
}
case GLSL_TYPE_INT:
switch (vector_length) {
case 1:
case 2:
case 3:
case 4:
return glsl_int_type + (vector_length - 1);
default:
return glsl_error_type;
}
case GLSL_TYPE_FLOAT:
switch (vector_length) {
case 1:
case 2:
case 3:
case 4:
return glsl_float_type + (vector_length - 1);
default:
return glsl_error_type;
}
case GLSL_TYPE_BOOL:
switch (vector_length) {
case 1:
case 2:
case 3:
case 4:
return glsl_bool_type + (vector_length - 1);
default:
return glsl_error_type;
}
default:
return glsl_error_type;
}
}


const glsl_type *glsl_type::get_base_type() const
{
switch (base_type) {

+ 0
- 3
glsl_types.h View File

@@ -254,9 +254,6 @@ extern "C" {
extern void
_mesa_glsl_initialize_types(struct _mesa_glsl_parse_state *state);

extern const struct glsl_type *
_mesa_glsl_get_vector_type(unsigned base_type, unsigned vector_length);

extern const struct glsl_type *const glsl_error_type;
extern const struct glsl_type *const glsl_int_type;
extern const struct glsl_type *const glsl_uint_type;

Loading…
Cancel
Save