Mesa (main): anv: remove dead code
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 30 22:44:59 UTC 2021
Module: Mesa
Branch: main
Commit: 85de6302737d8ee126a38a97ea3947248f5059a4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=85de6302737d8ee126a38a97ea3947248f5059a4
Author: Thomas H.P. Andersen <phomes at gmail.com>
Date: Tue Jun 29 22:31:06 2021 +0200
anv: remove dead code
The unused bo_flags here is a leftover from the past. A similar
setup of bo_flags is now performed within anv_device_alloc_bo
via a call to anv_bo_alloc_flags_to_bo_flags.
Reviewed-by: Marcin Ślusarz <marcin.slusarz at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11645>
---
src/intel/vulkan/genX_query.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c
index a0c0a8813ff..8978f5843a9 100644
--- a/src/intel/vulkan/genX_query.c
+++ b/src/intel/vulkan/genX_query.c
@@ -194,16 +194,6 @@ VkResult genX(CreateQueryPool)(
}
#endif
- uint32_t bo_flags = 0;
- if (pdevice->supports_48bit_addresses)
- bo_flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
-
- if (anv_use_softpin(pdevice))
- bo_flags |= EXEC_OBJECT_PINNED;
-
- if (pdevice->has_exec_async)
- bo_flags |= EXEC_OBJECT_ASYNC;
-
uint64_t size = pool->slots * (uint64_t)pool->stride;
result = anv_device_alloc_bo(device, "query-pool", size,
ANV_BO_ALLOC_MAPPED |
More information about the mesa-commit
mailing list