Home
last modified time | relevance | path

Searched refs:va_bit_idx (Results 1 – 2 of 2) sorted by relevance

/external/mesa3d/src/gallium/drivers/lima/
Dlima_texture.c54 unsigned va_bit_idx = VA_BIT_OFFSET + (VA_BIT_SIZE * idx); in lima_texture_desc_set_va() local
55 unsigned va_idx = va_bit_idx / 32; in lima_texture_desc_set_va()
56 va_bit_idx %= 32; in lima_texture_desc_set_va()
60 desc->va[va_idx] |= va << va_bit_idx; in lima_texture_desc_set_va()
61 if (va_bit_idx <= 6) in lima_texture_desc_set_va()
63 desc->va[va_idx + 1] |= va >> (32 - va_bit_idx); in lima_texture_desc_set_va()
Dlima_parser.c744 unsigned va_bit_idx; in parse_texture() local
754 va_bit_idx = VA_BIT_OFFSET + (VA_BIT_SIZE * j); in parse_texture()
755 va_idx = va_bit_idx / 32; in parse_texture()
756 va_bit_idx %= 32; in parse_texture()
759 va_1 |= (*(&data[i + offset + va_idx - 1]) >> va_bit_idx); in parse_texture()
762 if (va_bit_idx > 6) { in parse_texture()
764 va_2 |= (*(&data[i + offset + va_idx]) << (2 * 32 - VA_BIT_SIZE - va_bit_idx)); in parse_texture()
765 va_2 >>= ((2 * 32 - VA_BIT_SIZE - va_bit_idx) - (32 - va_bit_idx)); in parse_texture()