freedreno/blitter: remove dead code
authorRob Clark <robdclark@chromium.org>
Wed, 12 Jun 2019 18:24:55 +0000 (11:24 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 13 Jun 2019 15:56:27 +0000 (08:56 -0700)
The src/dst format is overriden from the pipe_blit_info, so this just
logic just serves to confuse the reader.

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/freedreno_blitter.c

index 2687d1e426b5f5b271ac65c253830e59a7729523..5938a88ae061bb02b154f6a7bacc0c7c17f54edf 100644 (file)
@@ -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;