SWDEV-360706 - Fix WriteAqlArgAt() crash in X86

In X86 on Windows, sizeof(size_t)=4, but size=8, for
amd::KernelParameterDescriptor::HiddenGlobalOffsetX/Y/Z items.
Loose the condition to prevent crash.

Change-Id: I2216f71f4d4fd6dd3766023b1c821cb3d35d7848
Tá an tiomantas seo le fáil i:
Tao Sang údaraithe agus Tao Sang tiomanta 2022-10-20 18:04:49 -04:00
1 tuismitheoir b2665ccc4b
tiomantas 3d281114fb
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -228,7 +228,7 @@ inline void WriteAqlArgAt(unsigned char* dst, //!< The write pointer to the buff
uint size, //!< The size in bytes to copy
size_t offset //!< The alignment to follow while writing to the buffer
) {
assert(sizeof(T) == size && "Argument's size mismatches ABI!");
assert(sizeof(T) <= size && "Argument's size mismatches ABI!");
*(reinterpret_cast<T*>(dst + offset)) = src;
}