i965/bufmgr: Delete alloc_for_render
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Apr 2017 06:23:28 +0000 (08:23 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Apr 2017 21:33:14 +0000 (14:33 -0700)
Entirely unused, mesa instead used the BO_ALLOC_FOR_RENDER flag.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_bufmgr.c
src/mesa/drivers/dri/i965/brw_bufmgr.h

index b12cd3acfc386028267bb795fd9a9b02c600345c..01cccf6ffd99314cb3862e4c6e8fd945fa07360f 100644 (file)
@@ -375,15 +375,6 @@ err:
    return NULL;
 }
 
-struct brw_bo *
-brw_bo_alloc_for_render(struct brw_bufmgr *bufmgr,
-                        const char *name,
-                        unsigned long size, unsigned int alignment)
-{
-   return bo_alloc_internal(bufmgr, name, size, BO_ALLOC_FOR_RENDER,
-                            I915_TILING_NONE, 0, alignment);
-}
-
 struct brw_bo *
 brw_bo_alloc(struct brw_bufmgr *bufmgr,
              const char *name, unsigned long size, unsigned int alignment)
index 974f7d9e20c4b0af1defa25d35c842f916232425..fb1059c1732076386848a404dc8b053076085d3d 100644 (file)
@@ -141,16 +141,6 @@ struct brw_bo {
  */
 struct brw_bo *brw_bo_alloc(struct brw_bufmgr *bufmgr, const char *name,
                             unsigned long size, unsigned int alignment);
-/**
- * Allocate a buffer object, hinting that it will be used as a
- * render target.
- *
- * This is otherwise the same as bo_alloc.
- */
-struct brw_bo *brw_bo_alloc_for_render(struct brw_bufmgr *bufmgr,
-                                       const char *name,
-                                       unsigned long size,
-                                       unsigned int alignment);
 
 /**
  * Allocate a tiled buffer object.