static void test_32(skiatest::Reporter* reporter) { uint32_t buffer[TOTAL]; for (int count = 0; count < MAX_COUNT; ++count) { for (int alignment = 0; alignment < MAX_ALIGNMENT; ++alignment) { set_zero(buffer, sizeof(buffer)); uint32_t* base = &buffer[PAD + alignment]; sk_memset32(base, VALUE32, count); compare32(buffer, 0, PAD + alignment); compare32(base, VALUE32, count); compare32(base + count, 0, TOTAL - count - PAD - alignment); } } }
unsigned tgsi_compare_instruction_ext_texture( struct tgsi_instruction_ext_texture a, struct tgsi_instruction_ext_texture b ) { a.Padding = b.Padding = 0; a.Extended = b.Extended = 0; return compare32(&a, &b); }
unsigned tgsi_compare_dst_register_ext_modulate( struct tgsi_dst_register_ext_modulate a, struct tgsi_dst_register_ext_modulate b ) { a.Padding = b.Padding = 0; a.Extended = b.Extended = 0; return compare32(&a, &b); }
unsigned tgsi_compare_src_register_ext_mod( struct tgsi_src_register_ext_mod a, struct tgsi_src_register_ext_mod b ) { a.Padding = b.Padding = 0; a.Extended = b.Extended = 0; return compare32(&a, &b); }