summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-04-06 08:25:50 +0200
committerKenneth Graunke <kenneth@whitecape.org>2017-04-10 14:33:17 -0700
commit439edaa4b516b90d781428703988a200beaf138b (patch)
tree143c920a2313e54b0ee1340af1a4d18b7ceed446
parent6308121475d4718c9c543d1f7a95d832ff55c2d7 (diff)
i965/bufmgr: Delete set_tiling
Entirely unused, and really shouldn't be used. The alloc functions already take care of this. And even in a future where we're not going to h/v-align tiled buffers in the bufmgr, but only in isl, I think we still want to adjust the tiling mode in the bufmgr, since that ties in closely to mmaps and stuff like that. get_tiling is still needed for the import paths (until we have modifiers everywhere). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r--src/mesa/drivers/dri/i965/brw_bufmgr.c17
-rw-r--r--src/mesa/drivers/dri/i965/brw_bufmgr.h8
2 files changed, 0 insertions, 25 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c
index 01cccf6ffd9..54206293de4 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.c
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c
@@ -1129,23 +1129,6 @@ bo_set_tiling_internal(struct brw_bo *bo, uint32_t tiling_mode,
}
int
-brw_bo_set_tiling(struct brw_bo *bo, uint32_t *tiling_mode, uint32_t stride)
-{
- int ret;
-
- /* Linear buffers have no stride. By ensuring that we only ever use
- * stride 0 with linear buffers, we simplify our code.
- */
- if (*tiling_mode == I915_TILING_NONE)
- stride = 0;
-
- ret = bo_set_tiling_internal(bo, *tiling_mode, stride);
-
- *tiling_mode = bo->tiling_mode;
- return ret;
-}
-
-int
brw_bo_get_tiling(struct brw_bo *bo, uint32_t *tiling_mode,
uint32_t *swizzle_mode)
{
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h b/src/mesa/drivers/dri/i965/brw_bufmgr.h
index fb1059c1732..53d51f2a59d 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.h
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.h
@@ -209,14 +209,6 @@ void brw_bo_wait_rendering(struct brw_bo *bo);
void brw_bufmgr_destroy(struct brw_bufmgr *bufmgr);
/**
- * Ask that the buffer be placed in tiling mode
- *
- * \param buf Buffer to set tiling mode for
- * \param tiling_mode desired, and returned tiling mode
- */
-int brw_bo_set_tiling(struct brw_bo *bo, uint32_t *tiling_mode,
- uint32_t stride);
-/**
* Get the current tiling (and resulting swizzling) mode for the bo.
*
* \param buf Buffer to get tiling mode for