diff --git a/src/amd/common/ac_vcn.h b/src/amd/common/ac_vcn.h index 79527e691ba..afd075fb544 100644 --- a/src/amd/common/ac_vcn.h +++ b/src/amd/common/ac_vcn.h @@ -36,6 +36,10 @@ #define RADEON_VCN_SIGNATURE_SIZE (0x00000010) #define RADEON_VCN_IB_COMMON_OP_WRITEMEMORY (0x33000001) +#define RADEON_VCN_IB_COMMON_OP_RESOLVEINPUTPARAMLAYOUT (0x31000007) + +#define RADEON_VCN_RESOLVE_INPUT_PARAM_LAYOUT_TYPE_QPMAP_INT8 1 +#define RADEON_VCN_RESOLVE_INPUT_PARAM_LAYOUT_TYPE_QPMAP_INT16 2 struct rvcn_sq_var { unsigned int *signature_ib_checksum; @@ -54,4 +58,16 @@ struct rvcn_cmn_engine_op_writememory { unsigned int data; // data to be written }; +struct rvcn_cmn_engine_op_resolveinputparamlayout { + unsigned char map_type; /* Map Type for this input */ + unsigned int map_width; /* Width of Map */ + unsigned int map_height; /* Height of Map */ + unsigned int input_buffer_address_lo; /* Low address of input 2d texture */ + unsigned int input_buffer_address_hi; /* High address of input 2d texture */ + unsigned int input_buffer_pitch; /* Row pitch of input 2d texture */ + unsigned int input_buffer_swizzle_mode; /* Swizzle mode of input 2d texture */ + unsigned int output_buffer_address_lo; /* Low address of output buffer */ + unsigned int output_buffer_address_hi; /* High address of output buffer */ +}; + #endif