summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/radeon_vce.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r600/radeon_vce.h')
-rw-r--r--src/gallium/drivers/r600/radeon_vce.h40
1 files changed, 7 insertions, 33 deletions
diff --git a/src/gallium/drivers/r600/radeon_vce.h b/src/gallium/drivers/r600/radeon_vce.h
index a437336bcce..6d66854ee58 100644
--- a/src/gallium/drivers/r600/radeon_vce.h
+++ b/src/gallium/drivers/r600/radeon_vce.h
@@ -1,34 +1,8 @@
-/**************************************************************************
- *
- * Copyright 2013 Advanced Micro Devices, Inc.
- * All Rights Reserved.
- *
- * 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, sub license, 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 (including the
- * next paragraph) 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 NON-INFRINGEMENT.
- * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) OR AUTHOR(S) 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.
- *
- **************************************************************************/
-
/*
+ * Copyright 2013 Advanced Micro Devices, Inc.
* Authors:
* Christian König <christian.koenig@amd.com>
- *
+ * SPDX-License-Identifier: MIT
*/
#ifndef RADEON_VCE_H
@@ -52,7 +26,7 @@ struct r600_common_screen;
/* driver dependent callback */
typedef void (*rvce_get_buffer)(struct pipe_resource *resource,
- struct pb_buffer **handle,
+ struct pb_buffer_lean **handle,
struct radeon_surf **surface);
/* Coded picture buffer slot */
@@ -391,11 +365,11 @@ struct rvce_encoder {
rvce_get_buffer get_buffer;
- struct pb_buffer* handle;
+ struct pb_buffer_lean* handle;
struct radeon_surf* luma;
struct radeon_surf* chroma;
- struct pb_buffer* bs_handle;
+ struct pb_buffer_lean* bs_handle;
unsigned bs_size;
struct rvce_cpb_slot *cpb_array;
@@ -430,8 +404,8 @@ struct pipe_video_codec *rvce_create_encoder(struct pipe_context *context,
bool rvce_is_fw_version_supported(struct r600_common_screen *rscreen);
-void rvce_add_buffer(struct rvce_encoder *enc, struct pb_buffer *buf,
- enum radeon_bo_usage usage, enum radeon_bo_domain domain,
+void rvce_add_buffer(struct rvce_encoder *enc, struct pb_buffer_lean *buf,
+ unsigned usage, enum radeon_bo_domain domain,
signed offset);
/* init vce fw 40.2.2 specific callbacks */