mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:41:26 +08:00
Enable blitter support for read/write images OpenCL
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ebbd042f1c
commit
38577bed6b
@@ -675,14 +675,13 @@ bool CommandQueue::blitEnqueueAllowed(cl_command_type cmdType) const {
|
||||
}
|
||||
|
||||
bool CommandQueue::blitEnqueueImageAllowed(const size_t *origin, const size_t *region) {
|
||||
auto blitEnqueuImageAllowed = false;
|
||||
auto blitEnqueueImageAllowed = (origin[0] + region[0] <= BlitterConstants::maxBlitWidth) && (origin[1] + region[1] <= BlitterConstants::maxBlitHeight);
|
||||
|
||||
if (DebugManager.flags.EnableBlitterForReadWriteImage.get() != -1) {
|
||||
blitEnqueuImageAllowed = DebugManager.flags.EnableBlitterForReadWriteImage.get();
|
||||
blitEnqueuImageAllowed &= (origin[0] + region[0] <= BlitterConstants::maxBlitWidth) && (origin[1] + region[1] <= BlitterConstants::maxBlitHeight);
|
||||
blitEnqueueImageAllowed = DebugManager.flags.EnableBlitterForReadWriteImage.get();
|
||||
}
|
||||
|
||||
return blitEnqueuImageAllowed;
|
||||
return blitEnqueueImageAllowed;
|
||||
}
|
||||
|
||||
bool CommandQueue::isBlockedCommandStreamRequired(uint32_t commandType, const EventsRequest &eventsRequest, bool blockedQueue) const {
|
||||
|
||||
Reference in New Issue
Block a user