Lines Matching refs:type_a

169    const glsl_type *type_a = value_a->type;
178 if (!type_a->is_numeric() || !type_b->is_numeric()) {
189 if (!apply_implicit_conversion(type_a, value_b, state)
196 type_a = value_a->type;
208 if (type_a->base_type != type_b->base_type) {
222 if (type_a->is_scalar() && type_b->is_scalar())
223 return type_a;
230 if (type_a->is_scalar()) {
234 return type_a;
241 assert(!type_a->is_scalar());
248 if (type_a->is_vector() && type_b->is_vector()) {
249 if (type_a == type_b) {
250 return type_a;
264 assert(type_a->is_matrix() || type_b->is_matrix());
265 assert(type_a->base_type == GLSL_TYPE_FLOAT);
284 if (type_a == type_b)
285 return type_a;
287 if (type_a->is_matrix() && type_b->is_matrix()) {
293 if (type_a->row_type() == type_b->column_type()) {
300 glsl_type::get_instance(type_a->base_type,
301 type_a->column_type()->vector_elements,
307 } else if (type_a->is_matrix()) {
313 if (type_a->row_type() == type_b) {
317 glsl_type::get_instance(type_a->base_type,
318 type_a->column_type()->vector_elements,
332 if (type_a == type_b->column_type()) {
336 glsl_type::get_instance(type_a->base_type,
384 * \param type_a Type of LHS of bit-logic op
388 bit_logic_result_type(const struct glsl_type *type_a,
404 if (!type_a->is_integer()) {
418 if (type_a->base_type != type_b->base_type) {
425 if (type_a->is_vector() &&
427 type_a->vector_elements != type_b->vector_elements) {
438 if (type_a->is_scalar())
441 return type_a;
445 modulus_result_type(const struct glsl_type *type_a,
461 if (!type_a->is_integer()) {
469 if (type_a->base_type != type_b->base_type) {
480 if (type_a->is_vector()) {
482 || (type_a->vector_elements == type_b->vector_elements))
483 return type_a;
499 const glsl_type *type_a = value_a->type;
507 if (!type_a->is_numeric()
509 || !type_a->is_scalar()
521 if (!apply_implicit_conversion(type_a, value_b, state)
528 type_a = value_a->type;
531 if (type_a->base_type != type_b->base_type) {
547 * \param type_a Type of LHS of bit-shift op
551 shift_result_type(const struct glsl_type *type_a,
567 if (!type_a->is_integer()) {
582 if (type_a->is_scalar() && !type_b->is_scalar()) {
592 if (type_a->is_vector() &&
594 type_a->vector_elements != type_b->vector_elements) {
604 return type_a;