| /* |
| * Copyright (c) 2018, Intel Corporation |
| * |
| * Permission is hereby granted, free of charge, to any person obtaining a |
| * copy of this software and associated documentation files (the "Software"), |
| * to deal in the Software without restriction, including without limitation |
| * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| * and/or sell copies of the Software, and to permit persons to whom the |
| * Software is furnished to do so, subject to the following conditions: |
| * |
| * The above copyright notice and this permission notice shall be included |
| * in all copies or substantial portions of the Software. |
| * |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| * OTHER DEALINGS IN THE SOFTWARE. |
| */ |
| #include "gpu_cmd_mfx_pipe_buf_addr.h" |
| |
| void GpuCmdMfxPipeBufAddrG9Bxt::InitCachePolicy() |
| { |
| m_pCmd->DW3.Value |= 2; |
| m_pCmd->DW6.Value |= 2; |
| m_pCmd->DW9.Value |= 2; |
| m_pCmd->DW12.Value |= 2; |
| m_pCmd->DW15.Value |= 2; |
| m_pCmd->DW18.Value |= 2; |
| m_pCmd->DW51.Value |= 2; |
| m_pCmd->DW57.Value |= 2; |
| m_pCmd->DW60.Value |= 2; |
| m_pCmd->DW64.Value |= 4; |
| } |
| |
| void GpuCmdMfxPipeBufAddrG9Skl::InitCachePolicy() |
| { |
| m_pCmd->DW3.Value |= 10; |
| m_pCmd->DW6.Value |= 10; |
| m_pCmd->DW9.Value |= 10; |
| m_pCmd->DW12.Value |= 10; |
| m_pCmd->DW15.Value |= 8; |
| m_pCmd->DW18.Value |= 8; |
| m_pCmd->DW51.Value |= 12; |
| m_pCmd->DW57.Value |= 0; |
| m_pCmd->DW60.Value |= 0; |
| m_pCmd->DW64.Value |= 4; |
| } |
| |
| void GpuCmdMfxPipeBufAddrG10::InitCachePolicy() |
| { |
| m_pCmd->DW3.Value |= 8; |
| m_pCmd->DW6.Value |= 8; |
| m_pCmd->DW9.Value |= 8; |
| m_pCmd->DW12.Value |= 8; |
| m_pCmd->DW15.Value |= 6; |
| m_pCmd->DW18.Value |= 6; |
| m_pCmd->DW51.Value |= 6; |
| m_pCmd->DW57.Value |= 8; |
| m_pCmd->DW60.Value |= 8; |
| m_pCmd->DW64.Value |= 4; |
| m_pCmd->DW67.Value |= 8; |
| } |