mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 14:33:04 +08:00
performance: enable staging for reads from image
Related-To: NEO-14026 Also, provide performance hint if ptr from user does not meet restrictions. Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
68a0aa0525
commit
be2ac667fc
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
bool isL3Capable(void *ptr, size_t size) {
|
||||
bool isL3Capable(const void *ptr, size_t size) {
|
||||
return isAligned<MemoryConstants::cacheLineSize>(ptr) &&
|
||||
isAligned<MemoryConstants::cacheLineSize>(size);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -15,7 +15,7 @@ namespace NEO {
|
||||
class GraphicsAllocation;
|
||||
class ProductHelper;
|
||||
|
||||
bool isL3Capable(void *ptr, size_t size);
|
||||
bool isL3Capable(const void *ptr, size_t size);
|
||||
bool isL3Capable(const GraphicsAllocation &graphicsAllocation);
|
||||
|
||||
template <PRODUCT_FAMILY gfxProduct>
|
||||
|
||||
Reference in New Issue
Block a user