mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: Minor code changes
Remove needless checks for module and cmdList. Add explicit check for surfaceState in setArgImageWithMipLevel. Explicitly initialize WddmResidencyController::csr. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
deb0fd8f6e
commit
beaddb55e0
@@ -1713,6 +1713,7 @@ cl_int Kernel::setArgImageWithMipLevel(uint32_t argIndex,
|
||||
}
|
||||
|
||||
// Sets SS structure
|
||||
UNRECOVERABLE_IF(surfaceState == nullptr);
|
||||
if (arg.getExtendedTypeInfo().isMediaImage) {
|
||||
DEBUG_BREAK_IF(!kernelInfo.kernelDescriptor.kernelAttributes.flags.usesVme);
|
||||
pImage->setMediaImageArg(surfaceState, rootDeviceIndex);
|
||||
|
||||
Reference in New Issue
Block a user