Lines Matching refs:info
68 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette,
71 memcpy(pixel, palette + info->size * index, info->size);
72 return info->size;
80 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette,
86 if (info->palette_size == 16) {
93 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
94 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix);
97 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
104 pix += get_palette_entry(info, palette, ind[i], pix);
112 const struct cpal_format_info *info;
122 info = &formats[internalFormat - GL_PALETTE4_RGB8_OES];
123 assert(info->cpal_format == internalFormat);
125 expect_size = info->palette_size * info->size;
134 if (info->palette_size == 16)
154 const struct cpal_format_info *info;
165 info = &formats[internalFormat - GL_PALETTE4_RGB8_OES];
170 indices = (const GLubyte *) palette + info->palette_size * info->size;
187 if (w * info->size % align) {
194 image = malloc(num_texels * info->size);
195 paletted_to_color(info, palette, indices, num_texels, image);
198 _mesa_TexImage2D(target, lvl, info->format, w, h, 0,
199 info->format, info->type, image);
203 if (info->palette_size == 16)