Add shifts in RENDER_SURFACE_STATE command for TGLLP

Related-To: NEO-3861
Change-Id: I2726807b5792e378071b6271dbb79a3d3f2a02ad
Signed-off-by: Gibala Krzysztof <krzysztof.gibala@intel.com>
This commit is contained in:
Gibala Krzysztof 2019-11-04 13:22:32 +01:00 committed by sys_ocldev
parent b3fcc28ed9
commit ae5c75c807
1 changed files with 2 additions and 2 deletions

View File

@ -2468,10 +2468,10 @@ typedef struct tagRENDER_SURFACE_STATE {
}
inline void setMemoryObjectControlStateIndexToMocsTables(const uint32_t value) {
UNRECOVERABLE_IF(value > 0x3f);
TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value;
TheStructure.Common.MemoryObjectControlStateIndexToMocsTables = value >> 1;
}
inline uint32_t getMemoryObjectControlStateIndexToMocsTables(void) const {
return TheStructure.Common.MemoryObjectControlStateIndexToMocsTables;
return (TheStructure.Common.MemoryObjectControlStateIndexToMocsTables << 1);
}
inline void setMemoryObjectControlState(const uint32_t value) {
TheStructure.Common.MemoryObjectControlStateReserved_56 = value;