anv: Stop setting BO flags in bo_init_new
The idea behind doing this was to make it easier to set various flags. However, we have enough custom flag settings floating around the driver that this is more of a nuisance than a help. This commit has the following functional changes: 1) The workaround_bo created in anv_CreateDevice loses both flags. This shouldn't matter because it's very small and entirely internal to the driver. 2) The bo created in anv_CreateDmaBufImageINTEL loses the EXEC_OBJECT_ASYNC flag. In retrospect, it never should have gotten EXEC_OBJECT_ASYNC in the first place. Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Cc: "17.1" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
@@ -39,6 +39,7 @@ VkResult genX(CreateQueryPool)(
|
||||
VkQueryPool* pQueryPool)
|
||||
{
|
||||
ANV_FROM_HANDLE(anv_device, device, _device);
|
||||
const struct anv_physical_device *pdevice = &device->instance->physicalDevice;
|
||||
struct anv_query_pool *pool;
|
||||
VkResult result;
|
||||
|
||||
@@ -90,6 +91,12 @@ VkResult genX(CreateQueryPool)(
|
||||
if (result != VK_SUCCESS)
|
||||
goto fail;
|
||||
|
||||
if (pdevice->supports_48bit_addresses)
|
||||
pool->bo.flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
|
||||
|
||||
if (pdevice->has_exec_async)
|
||||
pool->bo.flags |= EXEC_OBJECT_ASYNC;
|
||||
|
||||
/* For query pools, we set the caching mode to I915_CACHING_CACHED. On LLC
|
||||
* platforms, this does nothing. On non-LLC platforms, this means snooping
|
||||
* which comes at a slight cost. However, the buffers aren't big, won't be
|
||||
|
Reference in New Issue
Block a user