pipe: Remove PIPE_VIDEO_CAP_ENC_SUPPORTS_ASYNC_OPERATION
Reviewed-By: Sil Vilerino <sivileri@microsoft.com> Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31933>
This commit is contained in:
@@ -1789,8 +1789,6 @@ d3d12_screen_get_video_param_encode(struct pipe_screen *pscreen,
|
||||
struct d3d12_encode_codec_support codec_specific_support;
|
||||
memset(&codec_specific_support, 0, sizeof(codec_specific_support));
|
||||
switch (param) {
|
||||
case PIPE_VIDEO_CAP_ENC_SUPPORTS_ASYNC_OPERATION:
|
||||
return D3D12_VIDEO_ENC_ASYNC;
|
||||
case PIPE_VIDEO_CAP_REQUIRES_FLUSH_ON_END_FRAME:
|
||||
return 1;
|
||||
case PIPE_VIDEO_CAP_NPOT_TEXTURES:
|
||||
|
@@ -64,8 +64,6 @@ GetDesc(ID3D12VideoDecoderHeap *heap)
|
||||
*/
|
||||
const bool D3D12_VIDEO_ENC_CBR_FORCE_VBV_EQUAL_BITRATE = debug_get_bool_option("D3D12_VIDEO_ENC_CBR_FORCE_VBV_EQUAL_BITRATE", false);
|
||||
|
||||
const bool D3D12_VIDEO_ENC_ASYNC = debug_get_bool_option("D3D12_VIDEO_ENC_ASYNC", true);
|
||||
|
||||
/**
|
||||
* This indicates how many in-flight encode commands can happen before blocking on the next request
|
||||
*/
|
||||
|
@@ -762,18 +762,6 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
|
||||
} else
|
||||
return 0;
|
||||
|
||||
case PIPE_VIDEO_CAP_ENC_SUPPORTS_ASYNC_OPERATION:
|
||||
if (sscreen->info.vcn_ip_version >= VCN_1_0_0)
|
||||
return 1;
|
||||
|
||||
/* dual instance */
|
||||
if (codec == PIPE_VIDEO_FORMAT_MPEG4_AVC &&
|
||||
sscreen->info.family >= CHIP_TONGA &&
|
||||
sscreen->info.vce_harvest_config == 0)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
||||
case PIPE_VIDEO_CAP_ENC_MAX_SLICES_PER_FRAME:
|
||||
return (sscreen->info.vcn_ip_version >= VCN_1_0_0) ? 128 : 1;
|
||||
|
||||
|
@@ -119,15 +119,6 @@ enum pipe_video_cap
|
||||
to kick off the work in the device
|
||||
*/
|
||||
PIPE_VIDEO_CAP_REQUIRES_FLUSH_ON_END_FRAME = 32,
|
||||
|
||||
/*
|
||||
If reported by the driver, then multiple p_video_codec encode
|
||||
operations can be asynchronously enqueued (and also flushed)
|
||||
with different feedback values in the device before get_feedback
|
||||
is called on them to synchronize. The device can block on begin_frame
|
||||
when it has reached its maximum async depth capacity
|
||||
*/
|
||||
PIPE_VIDEO_CAP_ENC_SUPPORTS_ASYNC_OPERATION = 33,
|
||||
PIPE_VIDEO_CAP_MIN_WIDTH = 34,
|
||||
PIPE_VIDEO_CAP_MIN_HEIGHT = 35,
|
||||
PIPE_VIDEO_CAP_ENC_RATE_CONTROL_QVBR = 36,
|
||||
|
Reference in New Issue
Block a user