mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 07:44:16 +08:00
Change maxNBitValue to a constexpr function
Now maxNBitValue can be used with run time variables. Change-Id: I323071400305e05e6303a33e24e90c521246d73f Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
0ba31a46cb
commit
0193b3ea69
@@ -39,7 +39,7 @@ HWCMDTEST_F(IGFX_GEN8_CORE, EnqueueWriteImageTest, WhenWritingImageThenCommandsA
|
||||
// Compute the SIMD lane mask
|
||||
size_t simd =
|
||||
cmd->getSimdSize() == GPGPU_WALKER::SIMD_SIZE_SIMD32 ? 32 : cmd->getSimdSize() == GPGPU_WALKER::SIMD_SIZE_SIMD16 ? 16 : 8;
|
||||
uint64_t simdMask = (1ull << simd) - 1;
|
||||
uint64_t simdMask = maxNBitValue(simd);
|
||||
|
||||
// Mask off lanes based on the execution masks
|
||||
auto laneMaskRight = cmd->getRightExecutionMask() & simdMask;
|
||||
|
||||
Reference in New Issue
Block a user