unsigned width = u_minify(tex->width0, level);
unsigned height = u_minify(tex->height0, level);
- if (templ->format != tex->format) {
+ if (tex->target != PIPE_BUFFER && templ->format != tex->format) {
const struct util_format_description *tex_desc
= util_format_description(tex->format);
const struct util_format_description *templ_desc