mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
radeonsi/vcn: Allocate session buffer in VRAM
It's never mapped so there's no reason for PIPE_USAGE_STAGING. Improves encoding performance on dGPUs. Tested with 7900XTX (before 1900fps => after 2100fps): ffmpeg -hide_banner -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 \ -f lavfi -i testsrc=size=640x640,format=nv12 -vf hwupload -c:v av1_vaapi \ -f null - Cc: mesa-stable Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28945>
This commit is contained in:
parent
0b51868193
commit
cc0df497f0
1 changed files with 1 additions and 1 deletions
|
|
@ -1191,7 +1191,7 @@ static void radeon_enc_begin_frame(struct pipe_video_codec *encoder,
|
|||
enc->si = CALLOC_STRUCT(rvid_buffer);
|
||||
if (!enc->si ||
|
||||
!enc->stream_handle ||
|
||||
!si_vid_create_buffer(enc->screen, enc->si, 128 * 1024, PIPE_USAGE_STAGING)) {
|
||||
!si_vid_create_buffer(enc->screen, enc->si, 128 * 1024, PIPE_USAGE_DEFAULT)) {
|
||||
RVID_ERR("Can't create session buffer.\n");
|
||||
goto error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue