freedreno/a5xx+a6xx: remove unused fs/vs pvt mem
authorRob Clark <robdclark@gmail.com>
Fri, 30 Nov 2018 13:26:56 +0000 (08:26 -0500)
committerRob Clark <robdclark@gmail.com>
Fri, 7 Dec 2018 18:49:21 +0000 (13:49 -0500)
copy/pasta from older gens

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_context.c
src/gallium/drivers/freedreno/a5xx/fd5_context.h
src/gallium/drivers/freedreno/a6xx/fd6_context.c
src/gallium/drivers/freedreno/a6xx/fd6_context.h

index e6af5d265a6af37b0581cac92adbd5e7986dc846..985face47ab2784ab1f8f762d1579c3b0f4abb19 100644 (file)
@@ -48,8 +48,6 @@ fd5_context_destroy(struct pipe_context *pctx)
 
        fd_context_destroy(pctx);
 
-       fd_bo_del(fd5_ctx->vs_pvt_mem);
-       fd_bo_del(fd5_ctx->fs_pvt_mem);
        fd_bo_del(fd5_ctx->vsc_size_mem);
        fd_bo_del(fd5_ctx->blit_mem);
 
@@ -105,12 +103,6 @@ fd5_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
 
        util_blitter_set_texture_multisample(fd5_ctx->base.blitter, true);
 
-       fd5_ctx->vs_pvt_mem = fd_bo_new(screen->dev, 0x2000,
-                       DRM_FREEDRENO_GEM_TYPE_KMEM);
-
-       fd5_ctx->fs_pvt_mem = fd_bo_new(screen->dev, 0x2000,
-                       DRM_FREEDRENO_GEM_TYPE_KMEM);
-
        fd5_ctx->vsc_size_mem = fd_bo_new(screen->dev, 0x1000,
                        DRM_FREEDRENO_GEM_TYPE_KMEM);
 
index 324878b4348626775c40723dc4a98f591d9f2258..a8e5953b390994e5fafa6c30869f0cb52085fbdb 100644 (file)
@@ -36,8 +36,6 @@
 struct fd5_context {
        struct fd_context base;
 
-       struct fd_bo *vs_pvt_mem, *fs_pvt_mem;
-
        /* This only needs to be 4 * num_of_pipes bytes (ie. 32 bytes).  We
         * could combine it with another allocation.
         */
index 35fd03c3d99a23ecf7e1ad9f21f47a5c3274a8da..083180826258fc6af739a653af45ab83657f2935 100644 (file)
@@ -48,8 +48,6 @@ fd6_context_destroy(struct pipe_context *pctx)
 
        fd_context_destroy(pctx);
 
-       fd_bo_del(fd6_ctx->vs_pvt_mem);
-       fd_bo_del(fd6_ctx->fs_pvt_mem);
        fd_bo_del(fd6_ctx->vsc_data);
        fd_bo_del(fd6_ctx->vsc_data2);
        fd_bo_del(fd6_ctx->blit_mem);
@@ -111,12 +109,6 @@ fd6_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
        pctx->delete_rasterizer_state = fd6_rasterizer_state_delete;
        pctx->delete_depth_stencil_alpha_state = fd6_depth_stencil_alpha_state_delete;
 
-       fd6_ctx->vs_pvt_mem = fd_bo_new(screen->dev, 0x2000,
-                       DRM_FREEDRENO_GEM_TYPE_KMEM);
-
-       fd6_ctx->fs_pvt_mem = fd_bo_new(screen->dev, 0x2000,
-                       DRM_FREEDRENO_GEM_TYPE_KMEM);
-
        fd6_ctx->vsc_data = fd_bo_new(screen->dev,
                        (A6XX_VSC_DATA_PITCH * 32) + 0x100,
                        DRM_FREEDRENO_GEM_TYPE_KMEM);
index 2493813fe1aceb04995aa68ec7e00201ed4bece8..9c957322a53d6a2833ce6363506bb8aa24f8515f 100644 (file)
@@ -39,8 +39,6 @@
 struct fd6_context {
        struct fd_context base;
 
-       struct fd_bo *vs_pvt_mem, *fs_pvt_mem;
-
        /* Two buffers related to hw binning / visibility stream (VSC).
         * Compared to previous generations
         *   (1) we cannot specify individual buffers per VSC, instead