Fix setting mediaSamplerRequired dispatch flag

Change-Id: Ie5d1100c34183ca970c99a5f46ce7866a7108ebc
This commit is contained in:
hjnapiat
2018-05-09 14:21:01 +02:00
committed by sys_ocldev
parent f64f9c7c99
commit 562ededffe
2 changed files with 69 additions and 0 deletions

View File

@ -223,6 +223,7 @@ CompletionStamp &CommandComputeKernel::submit(uint32_t taskLevel, bool terminate
dispatchFlags.lowPriority = commandQueue.getPriority() == QueuePriority::LOW;
dispatchFlags.throttle = commandQueue.getThrottle();
dispatchFlags.preemptionMode = preemptionMode;
dispatchFlags.mediaSamplerRequired = (kernel != nullptr) ? kernel->isVmeKernel() : false;
DEBUG_BREAK_IF(taskLevel >= Event::eventNotReady);