Handle PATCH_TOKEN_MEDIA_VFE_STATE_SLOT1 patch token

Related-To: NEO-3190

Change-Id: I3e357f7e21a58e5bd2aa8cb8005b720c690664f2
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2019-06-27 14:06:19 +02:00
committed by sys_ocldev
parent 9f03864f37
commit 223b998d92
6 changed files with 59 additions and 0 deletions

View File

@@ -206,6 +206,10 @@ class Kernel : public BaseObject<_cl_kernel> {
return kernelInfo.patchInfo.mediavfestate ? kernelInfo.patchInfo.mediavfestate->PerThreadScratchSpace : 0;
}
uint32_t getPrivateScratchSize() {
return kernelInfo.patchInfo.mediaVfeStateSlot1 ? kernelInfo.patchInfo.mediaVfeStateSlot1->PerThreadScratchSpace : 0;
}
void createReflectionSurface();
template <bool mockable = false>
void patchReflectionSurface(DeviceQueue *devQueue, PrintfHandler *printfHandler);