~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/radeonsi/radeon_vcn.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright © 2022 Advanced Micro Devices, Inc.
3
3
 *
4
 
 * Permission is hereby granted, free of charge, to any person obtaining
5
 
 * a copy of this software and associated documentation files (the
6
 
 * "Software"), to deal in the Software without restriction, including
7
 
 * without limitation the rights to use, copy, modify, merge, publish,
8
 
 * distribute, sub license, and/or sell copies of the Software, and to
9
 
 * permit persons to whom the Software is furnished to do so, subject to
10
 
 * the following conditions:
11
 
 *
12
 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13
 
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
14
 
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15
 
 * NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS, AUTHORS
16
 
 * AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
 
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18
 
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
19
 
 * USE OR OTHER DEALINGS IN THE SOFTWARE.
20
 
 *
21
 
 * The above copyright notice and this permission notice (including the
22
 
 * next paragraph) shall be included in all copies or substantial portions
23
 
 * of the Software.
 
4
 * SPDX-License-Identifier: MIT
24
5
 */
25
6
 
26
7
#ifndef RADEON_VCN_H
28
9
 
29
10
#include "radeon_video.h"
30
11
 
31
 
#define RADEON_VCN_ENGINE_INFO                                        (0x30000001)
32
 
#define RADEON_VCN_SIGNATURE                                          (0x30000002)
33
 
#define RADEON_VCN_ENGINE_TYPE_ENCODE                                 (0x00000002)
34
 
#define RADEON_VCN_ENGINE_TYPE_DECODE                                 (0x00000003)
35
 
 
36
 
#define RADEON_VCN_ENGINE_INFO_SIZE                                   (0x00000010)
37
 
#define RADEON_VCN_SIGNATURE_SIZE                                     (0x00000010)
38
 
 
39
 
struct rvcn_sq_var {
40
 
   unsigned int *ib_total_size_in_dw;
41
 
   unsigned int *ib_checksum;
42
 
};
 
12
#include "ac_vcn.h"
43
13
 
44
14
void rvcn_sq_header(struct radeon_cmdbuf *cs,
45
15
                    struct rvcn_sq_var *sq,