unsigned dstlevel, unsigned dstz)
{
memset(dst_templ, 0, sizeof(*dst_templ));
- if (dst->target == PIPE_BUFFER)
- dst_templ->format = PIPE_FORMAT_R8_UINT;
- else
- dst_templ->format = util_format_linear(dst->format);
dst_templ->u.tex.level = dstlevel;
dst_templ->u.tex.first_layer = dstz;
dst_templ->u.tex.last_layer = dstz;
if (src->target == PIPE_BUFFER) {
src_templ->target = PIPE_TEXTURE_1D;
- src_templ->format = PIPE_FORMAT_R8_UINT;
- } else {
- src_templ->format = util_format_linear(src->format);
}
src_templ->u.tex.first_level = srclevel;
src_templ->u.tex.last_level = srclevel;