diff options
author | Tapani Pälli <[email protected]> | 2019-08-28 14:46:16 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2019-08-29 09:33:52 +0300 |
commit | 6dc4ddc5f81f7a3041eb61370dbb7edf90a92a6a (patch) | |
tree | 45229e30822beced3e8cb940a13f736ab9e49b43 /src/gallium/drivers/iris/iris_screen.c | |
parent | b65de51dcf7d5e6d1a6ccdb5121c385f5360de00 (diff) |
iris: use driconf for 'bo_reuse' parameter
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/iris/iris_screen.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_screen.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index fa528a0d67a..5fbc214da65 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -630,7 +630,17 @@ iris_screen_create(int fd, const struct pipe_screen_config *config) if (getenv("INTEL_NO_HW") != NULL) screen->no_hw = true; - screen->bufmgr = iris_bufmgr_init(&screen->devinfo, fd); + bool bo_reuse = false; + int bo_reuse_mode = driQueryOptioni(config->options, "bo_reuse"); + switch (bo_reuse_mode) { + case DRI_CONF_BO_REUSE_DISABLED: + break; + case DRI_CONF_BO_REUSE_ALL: + bo_reuse = true; + break; + } + + screen->bufmgr = iris_bufmgr_init(&screen->devinfo, fd, bo_reuse); if (!screen->bufmgr) return NULL; |