mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Update HW commands programming of MOCS setting
Change-Id: Ib54a2c8d5024e39251bec35ee443ea8a507d2d3f
This commit is contained in:
committed by
sys_ocldev
parent
fff8be32f4
commit
eaa241fd6a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2018 Intel Corporation
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -269,10 +269,10 @@ typedef struct tagMEDIA_SURFACE_STATE {
|
||||
return (TheStructure.Common.SurfaceMemoryObjectControlState_Reserved);
|
||||
}
|
||||
inline void setSurfaceMemoryObjectControlStateIndexToMocsTables(const uint32_t value) {
|
||||
TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables = value;
|
||||
TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables = value >> 1;
|
||||
}
|
||||
inline uint32_t getSurfaceMemoryObjectControlStateIndexToMocsTables(void) const {
|
||||
return (TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables);
|
||||
return (TheStructure.Common.SurfaceMemoryObjectControlState_IndexToMocsTables << 1);
|
||||
}
|
||||
inline void setTiledResourceMode(const TILED_RESOURCE_MODE value) {
|
||||
TheStructure.Common.TiledResourceMode = value;
|
||||
|
||||
Reference in New Issue
Block a user