glsl: make use of glsl_type::is_double()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
@@ -772,7 +772,7 @@ private:
|
||||
|
||||
if (type->without_array()->is_matrix()) {
|
||||
const glsl_type *matrix = type->without_array();
|
||||
const unsigned N = matrix->base_type == GLSL_TYPE_DOUBLE ? 8 : 4;
|
||||
const unsigned N = matrix->is_double() ? 8 : 4;
|
||||
const unsigned items =
|
||||
row_major ? matrix->matrix_columns : matrix->vector_elements;
|
||||
|
||||
|
Reference in New Issue
Block a user