mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Add hwInfo to sampler setArg and appendSamplerStateParams
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7dad49ccf4
commit
9d0422cf69
@@ -1731,7 +1731,7 @@ cl_int Kernel::setArgSampler(uint32_t argIndex,
|
||||
auto dsh = getDynamicStateHeap(rootDeviceIndex);
|
||||
auto samplerState = ptrOffset(dsh, kernelArgInfo.offsetHeap);
|
||||
|
||||
pSampler->setArg(const_cast<void *>(samplerState));
|
||||
pSampler->setArg(const_cast<void *>(samplerState), getProgram()->getDevices()[0]->getHardwareInfo());
|
||||
|
||||
auto crossThreadData = reinterpret_cast<uint32_t *>(getCrossThreadData(rootDeviceIndex));
|
||||
patch<uint32_t, unsigned int>(pSampler->getSnapWaValue(), crossThreadData, kernelArgInfo.offsetSamplerSnapWa);
|
||||
|
||||
Reference in New Issue
Block a user