Lines Matching refs:palette
67 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette, in get_palette_entry() argument
70 memcpy(pixel, palette + info->size * index, info->size); in get_palette_entry()
79 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette, in paletted_to_color() argument
92 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix); in paletted_to_color()
93 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix); in paletted_to_color()
96 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix); in paletted_to_color()
103 pix += get_palette_entry(info, palette, ind[i], pix); in paletted_to_color()
151 GLsizei imageSize, const void *palette) in _mesa_cpal_compressed_teximage2d() argument
169 indices = (const GLubyte *) palette + info->palette_size * info->size; in _mesa_cpal_compressed_teximage2d()
192 if (palette) { in _mesa_cpal_compressed_teximage2d()
194 paletted_to_color(info, palette, indices, num_texels, image); in _mesa_cpal_compressed_teximage2d()