• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Copyright (c) 2015-2017, Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 */
22 //!
23 //! \file      vphal_renderhal_common.h
24 //! \brief         Shared common utilities between VPHAL and RenderHal
25 //!
26 //!
27 //! \file     vphal_renderhal_common.h
28 //! \brief    The file of common utilities definitions shared between VPHAL and RenderHal
29 //! \details  Common utilities for writing sync tag between VPHal and RenderHal
30 //!
31 #ifndef __VPHAL_RENDERHAL_COMMON_H__
32 #define __VPHAL_RENDERHAL_COMMON_H__
33 
34 //!
35 //! \brief    Write Sync Tag to VP and RenderHal GSH at the same time
36 //! \details  Write Sync Tag to VP and RenderHal GSH at the same time
37 //! \param    uint32_t *pdwVpSyncTag
38 //!           [in] Pointer to legacy VPHal pHwInterface GSH sync tag(last sync tag completed)
39 //! \param    uint32_t *pdwRenderHalSyncTag
40 //!           [in] Pointer to RenderHal GSH sync tag(last sync tag completed)
41 //! \param    uint32_t dwSyncTag
42 //!           [in] Value of Sync tag to be updated
43 //! \return   MOS_STATUS
44 //!           Return MOS_STATUS_SUCCESS if successful, otherwise failed
45 //!
46 MOS_STATUS RenderCommon_WriteSyncTag(
47                                         uint32_t *pdwVpSyncTag,
48                                         uint32_t *pdwRenderHalSyncTag,
49                                         uint32_t dwSyncTag);
50 
51 //!
52 //! \brief    Write Next Sync Tag to VP and RenderHal GSH at the same time
53 //! \details  Write Next Sync Tag to VP and RenderHal GSH at the same time
54 //! \param    uint32_t *pdwVpNextSyncTag
55 //!           [in] Pointer to legacy VPHal pHwInterface GSH next sync tag(Next sync tag value to use)
56 //! \param    uint32_t *pdwRenderHalNextSyncTag
57 //!           [in] Pointer to RenderHal GSH next sync tag(Next sync tag value to use)
58 //! \param    uint32_t dwSyncTag
59 //!           [in] Value of Sync tag to be updated
60 //! \return   MOS_STATUS
61 //!           Return MOS_STATUS_SUCCESS if successful, otherwise failed
62 //!
63 MOS_STATUS RenderCommon_WriteNextSyncTag(
64                                         uint32_t *pdwVpNextSyncTag,
65                                         uint32_t *pdwRenderHalNextSyncTag,
66                                         uint32_t dwNextSyncTag);
67 
68 #endif // __VPHAL_RENDERHAL_COMMON_H__
69