diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_blitter.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_blitter.c b/src/gallium/drivers/freedreno/freedreno_blitter.c index 2687d1e426b..5938a88ae06 100644 --- a/src/gallium/drivers/freedreno/freedreno_blitter.c +++ b/src/gallium/drivers/freedreno/freedreno_blitter.c @@ -41,10 +41,6 @@ default_dst_texture(struct pipe_surface *dst_templ, struct pipe_resource *dst, 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; @@ -67,9 +63,6 @@ default_src_texture(struct pipe_sampler_view *src_templ, 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; |