Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/buffer.c | 6 ++
src/gallium/state_trackers/va/config.c | 104 +++---
src/gallium/state_trackers/va/context.c| 72 -
src/gallium/state_trackers/va/image.c
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/include/pipe/p_video_state.h | 13 +
1 file changed, 13 insertions(+)
diff --git a/src/gallium/include/pipe/p_video_state.h
b/src/gallium/include/pipe/p_video_state.h
index d353be6..d519d17 100644
--- a/src/g
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce.c| 180 ++-
src/gallium/drivers/radeon/radeon_vce.h| 2 +-
src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 425 +
src/gallium/drivers/
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce.h | 297
1 file changed, 297 insertions(+)
diff --git a/src/gallium/drivers/radeon/radeon_vce.h
b/src/gallium/drivers/radeon/radeon_vce.h
index e438148..da61285
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce.c | 52 +++--
1 file changed, 49 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/radeon/radeon_vce.c
b/src/gallium/drivers/radeon/radeon_vce.c
index 5
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/include/pipe/p_video_state.h | 13 +
1 file changed, 13 insertions(+)
diff --git a/src/gallium/include/pipe/p_video_state.h
b/src/gallium/include/pipe/p_video_state.h
index d353be6..d519d17 100644
--- a/src/g
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce.h | 297
1 file changed, 297 insertions(+)
diff --git a/src/gallium/drivers/radeon/radeon_vce.h
b/src/gallium/drivers/radeon/radeon_vce.h
index e438148..da61285
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce.c| 171 +++
src/gallium/drivers/radeon/radeon_vce.h| 1 +
src/gallium/drivers/radeon/radeon_vce_52.c | 447 +++--
3 files changed, 533 insertions(+), 86 del
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce.c| 4 +
src/gallium/drivers/radeon/radeon_vce.h| 17 +
src/gallium/drivers/radeon/radeon_vce_40_2_2.c | 4 +
src/gallium/drivers/radeon/radeon_vce_50.c | 4 +
src/g
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/include/pipe/p_video_state.h | 12
1 file changed, 12 insertions(+)
diff --git a/src/gallium/include/pipe/p_video_state.h
b/src/gallium/include/pipe/p_video_state.h
index d353be6..2f2a4d9 100644
--- a/src/g
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce.h | 297
1 file changed, 297 insertions(+)
diff --git a/src/gallium/drivers/radeon/radeon_vce.h
b/src/gallium/drivers/radeon/radeon_vce.h
index e438148..da61285
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce_52.c | 107 +
1 file changed, 79 insertions(+), 28 deletions(-)
diff --git a/src/gallium/drivers/radeon/radeon_vce_52.c
b/src/gallium/drivers/radeon/radeon_vce_52.c
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
Reviewed-by: Christian König <christian.koe...@amd.com>
---
src/gallium/drivers/radeon/radeon_uvd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeon/radeon_uvd.c
b/src/gallium/dr
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
Reviewed-by: Christian König <christian.koe...@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
src/gallium/state_trackers/va/va_private.h | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff -
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
src/gallium/drivers/radeon/radeon_uvd.c | 69 +++--
1 file changed, 58 insertions(+), 11 deletions(-)
diff --git a/src/gallium/drivers/radeon/rad
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
Reviewed-by: Christian König <christian.koe...@amd.com>
Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>
---
src/gallium/drivers/radeon/radeon_video.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff -
this entrypoint to
context->templat.entrypoint instead of always hardcoded to
PIPE_VIDEO_ENTRYPOINT_BITSTREAM for decoding case previously.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 61 +++---
src/gallium/state_tr
Add necessary functions/changes for VAAPI encoding to buffer and picture. These
changes will allow driver to handle all Vaapi encode related operations. This
patch doesn't change the Vaapi decode behaviour.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_track
We can use config to determine the entrypoint
since config_id is passed to us for VaCreateContext call. However, for
VaDestoyContext call, only context_id is passed to us. So we need to know the
entrypoint in order to not free the pps/sps for encoding case.
Signed-off-by: Boyuan Zhang <boyua
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/image.c | 33 ++---
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/gallium/state_trackers/va/image.c
b/src/gallium/state_trackers/va/image.c
index 1b956e3..47895ee
Enable H.264 VAAPI encoding through config. Currently only H.264 baseline is
supported.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 32 ++--
1 file changed, 22 insertions(+), 10 deletions(-)
diff --git
this entrypoint to
context->templat.entrypoint instead of always hardcoded to
PIPE_VIDEO_ENTRYPOINT_BITSTREAM for decoding case previously. Encode entrypoint
is not accepted by driver until we enable Vaapi encode in later patch.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
sr
Add some hardcoded values hardware needs mainly for rate control purpose. With
previously hardcoded values for OMX, the rate control result is not correct.
This change fixed the rate control result by setting correct values for Vaapi.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
--
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/image.c | 33 ++---
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/gallium/state_trackers/va/image.c
b/src/gallium/state_trackers/va/image.c
index 1b956e3..d966cde
Rate control method is passed from app to driver through config attrib list.
That is why we need to store this rate control method to config. And later on,
we will pass this value to context->desc.h264enc.rate_ctrl.rate_ctrl_method.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
Enable H.264 VAAPI encoding through config. Currently only H.264 baseline is
supported. Encode entrypoint is not accepted by driver.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 34 ++
1 file chang
Add necessary functions/changes for VAAPI encoding to buffer and picture. These
changes will allow driver to handle all Vaapi encode related operations. This
patch doesn't change the Vaapi decode behaviour.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_track
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/auxiliary/util/u_video.h | 37
1 file changed, 37 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_video.h
b/src/gallium/auxiliary/util/u_video.h
index 9196afc..86a7adc 100644
--- a/src/g
as 30 just in case application never provides frame rate information
to driver.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/picture.c | 24 +++-
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/src/gallium/state_track
variable to
disable interlace mode.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/surface.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/gallium/state_trackers/va/surface.c
b/src/gallium/state_trackers/va/surface.c
index 8ce4143..6
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/image.c | 33 ++---
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/gallium/state_trackers/va/image.c
b/src/gallium/state_trackers/va/image.c
index 1b956e3..47895ee
Assign previously hardcoded values for OMX to newly defined structure. As a
result, OMX behaviour will not change at all.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/omx/vid_enc.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/src/g
Add necessary functions/changes for VAAPI encoding to buffer and picture,
without affecting decode behaviour.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/buffer.c | 6 ++
src/gallium/state_trackers/va/picture.c
Add some hardcoded values hardware needs mainly for rate control purpose.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/picture.c | 36 +
1 file changed, 36 insertions(+)
diff --git a/src/gallium/state_trackers/va/pic
Rate control method is passed from app to driver through config attrib list.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 11 +++
src/gallium/state_trackers/va/context.c| 3 ++-
src/gallium/state_trackers/va/va_private.
Replace the previous hardcoded value with newly defined parameters
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce_52.c | 33 ++
1 file changed, 20 insertions(+), 13 deletions(-)
diff --git a/src/gallium/drivers/
Allow to specify more parameters in the encoding interface which previously
just hardcoded in the encoder
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/include/pipe/p_video_state.h | 33
1 file changed, 33 insertions(+)
diff --git
Add function to copy from yv12 image to nv12 surface for VAAPI putimage call.
Existing function only work for copying from yv12 surface to nv12 image.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/auxiliary/util/u_video.h | 22 ++
1 file chang
Add entry point for encoding which previously hardcoded for decoding purpose
only
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/include/pipe/p_video_state.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/include/pipe/p_video_state.h
b/src/gallium/i
Enable H.264 VAAPI encoding through config.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 32 ++--
1 file changed, 22 insertions(+), 10 deletions(-)
diff --git a/src/gallium/state_trackers/va/config.c
b/src/g
VAAPI passes PIPE_VIDEO_ENTRYPOINT_ENCODE as entry point for encoding case. We
will save this encode entry point instead of always hardcoded to
PIPE_VIDEO_ENTRYPOINT_BITSTREAM for decoding case previously.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_track
this entrypoint to
context->templat.entrypoint instead of always hardcoded to
PIPE_VIDEO_ENTRYPOINT_BITSTREAM for decoding case previously. Encode entrypoint
is not accepted by driver until we enable Vaapi encode in later patch.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
sr
Enable H.264 VAAPI encoding through config. Currently only H.264 baseline is
supported. Encode entrypoint is not accepted by driver.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 34 ++
1 file chang
Rate control method is passed from app to driver through config attrib list.
That is why we need to store this rate control method to config. And later on,
we will pass this value to context->desc.h264enc.rate_ctrl.rate_ctrl_method.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
Add some hardcoded values hardware needs mainly for rate control purpose. With
previously hardcoded values for OMX, the rate control result is not correct.
This change fixed the rate control result by setting correct values for Vaapi.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
--
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/auxiliary/util/u_video.h | 23 +++
1 file changed, 23 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_video.h
b/src/gallium/auxiliary/util/u_video.h
index 9196afc..d147295 100644
--- a/src/gallium/aux
variable to
disable interlace mode.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/surface.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/gallium/state_trackers/va/surface.c
b/src/gallium/state_trackers/va/surface.c
index 8ce4143..6
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/image.c | 33 ++---
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/gallium/state_trackers/va/image.c
b/src/gallium/state_trackers/va/image.c
index 1b956e3..47895ee
Add necessary functions/changes for VAAPI encoding to buffer and picture. These
changes will allow driver to handle all Vaapi encode related operations. This
patch doesn't change the Vaapi decode behaviour.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_track
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/auxiliary/util/u_video.h | 23 +++
1 file changed, 23 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_video.h
b/src/gallium/auxiliary/util/u_video.h
index 9196afc..d147295 100644
--- a/src/gallium/aux
Add necessary functions/changes for VAAPI encoding to buffer and picture. These
changes will allow driver to handle all Vaapi encode related operations. This
patch doesn't change the Vaapi decode behaviour.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_track
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/image.c | 33 ++---
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/gallium/state_trackers/va/image.c
b/src/gallium/state_trackers/va/image.c
index 1b956e3..47895ee
this entrypoint to
context->templat.entrypoint instead of always hardcoded to
PIPE_VIDEO_ENTRYPOINT_BITSTREAM for decoding case previously.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 69 +++---
src/gallium/state_tr
We can use config to determine the entrypoint
since config_id is passed to us for VaCreateContext call. However, for
VaDestoyContext call, only context_id is passed to us. So we need to know the
entrypoint in order to not free the pps/sps for encoding case.
Signed-off-by: Boyuan Zhang <boyua
Enable H.264 VAAPI encoding through config. Currently only H.264 baseline is
supported.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 32 ++--
1 file changed, 22 insertions(+), 10 deletions(-)
diff --git
variable to
disable interlace mode.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/surface.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/gallium/state_trackers/va/surface.c
b/src/gallium/state_trackers/va/surface.c
index 8ce4143..d
Rate control method is passed from app to driver through config attrib list.
That is why we need to store this rate control method to config. And later on,
we will pass this value to context->desc.h264enc.rate_ctrl.rate_ctrl_method.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
Add some hardcoded values hardware needs mainly for rate control purpose. With
previously hardcoded values for OMX, the rate control result is not correct.
This change fixed the rate control result by setting correct values for Vaapi.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
--
Rate control method is passed from app to driver through config attrib list.
That is why we need to store this rate control method to config. And later on,
we will pass this value to context->desc.h264enc.rate_ctrl.rate_ctrl_method.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/image.c | 33 ++---
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/gallium/state_trackers/va/image.c
b/src/gallium/state_trackers/va/image.c
index 1b956e3..47895ee
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/auxiliary/util/u_video.h | 23 +++
1 file changed, 23 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_video.h
b/src/gallium/auxiliary/util/u_video.h
index 9196afc..d147295 100644
--- a/src/gallium/aux
this entrypoint to
context->templat.entrypoint instead of always hardcoded to
PIPE_VIDEO_ENTRYPOINT_BITSTREAM for decoding case previously.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 61 +++---
src/gallium/state_tr
Enable H.264 VAAPI encoding through config. Currently only H.264 baseline is
supported.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 32 ++--
1 file changed, 22 insertions(+), 10 deletions(-)
diff --git
Add necessary functions/changes for VAAPI encoding to buffer and picture. These
changes will allow driver to handle all Vaapi encode related operations. This
patch doesn't change the Vaapi decode behaviour.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_track
We can use config to determine the entrypoint
since config_id is passed to us for VaCreateContext call. However, for
VaDestoyContext call, only context_id is passed to us. So we need to know the
entrypoint in order to not free the pps/sps for encoding case.
Signed-off-by: Boyuan Zhang <boyua
Add some hardcoded values hardware needs mainly for rate control purpose. With
previously hardcoded values for OMX, the rate control result is not correct.
This change fixed the rate control result by setting correct values for Vaapi.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
--
Add some hardcoded values hardware needs mainly for rate control purpose. With
previously hardcoded values for OMX, the rate control result is not correct.
This change fixed the rate control result by setting correct values for Vaapi.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
--
-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/auxiliary/util/u_video.h | 23 +++
1 file changed, 23 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_video.h
b/src/gallium/auxiliary/util/u_video.h
index 9196afc..d147295 100644
--- a/src/gallium/aux
Rate control method is passed from app to driver through config attrib list.
That is why we need to store this rate control method to config. And later on,
we will pass this value to context->desc.h264enc.rate_ctrl.rate_ctrl_method.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce_52.c | 33 ++
1 file changed, 20 insertions(+), 13 deletions(-)
diff --git a/src/gallium/drivers/radeon/radeon_vce_52.c
b/src/gallium/drivers/radeon/radeon_vce_52.c
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/image.c | 48 +--
1 file changed, 40 insertions(+), 8 deletions(-)
diff --git a/src/gallium/state_trackers/va/image.c
b/src/gallium/state_trackers/va/image.c
index 3
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/omx/vid_enc.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/src/gallium/state_trackers/omx/vid_enc.c
b/src/gallium/state_trackers/omx/vid_enc.c
index d70439a..bbc7941 100644
--- a/src/g
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 11 +++
src/gallium/state_trackers/va/context.c| 3 ++-
src/gallium/state_trackers/va/va_private.h | 1 +
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/g
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/include/pipe/p_video_state.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/include/pipe/p_video_state.h
b/src/gallium/include/pipe/p_video_state.h
index 9cd489b..040d2f1 100644
--- a/src/gallium/includ
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/include/pipe/p_video_state.h | 36
1 file changed, 36 insertions(+)
diff --git a/src/gallium/include/pipe/p_video_state.h
b/src/gallium/include/pipe/p_video_state.h
index d353be6..9cd489b
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/image.c | 21 +
1 file changed, 21 insertions(+)
diff --git a/src/gallium/state_trackers/va/image.c
b/src/gallium/state_trackers/va/image.c
index c82b554..3c8cc9c 100644
--- a/src/g
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 32 ++--
1 file changed, 22 insertions(+), 10 deletions(-)
diff --git a/src/gallium/state_trackers/va/config.c
b/src/gallium/state_trackers/va/config.c
index e
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/buffer.c | 6 +
src/gallium/state_trackers/va/picture.c| 170 -
src/gallium/state_trackers/va/va_private.h | 3 +
3 files changed, 177 insertions(+), 2 deletions(-)
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/picture.c | 36 +
1 file changed, 36 insertions(+)
diff --git a/src/gallium/state_trackers/va/picture.c
b/src/gallium/state_trackers/va/picture.c
index 26205b1..2d22e8b
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/image.c | 55 ---
1 file changed, 51 insertions(+), 4 deletions(-)
diff --git a/src/gallium/state_trackers/va/image.c
b/src/gallium/state_trackers/va/image.c
index 1
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/va/config.c | 61 +++---
src/gallium/state_trackers/va/context.c| 57
src/gallium/state_trackers/va/surface.c| 12 --
src/gallium/state_tr
yet.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
Reviewed-by: Christian König <christian.koe...@amd.com>
---
src/gallium/state_trackers/va/picture.c| 12 ---
src/gallium/state_trackers/va/surface.c| 32 ++
src/gallium/state
Set the flag on when dual instance encoding is supported, otherwise set it to
off
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/drivers/radeon/radeon_vce_52.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/radeon/radeon_
On 2018-02-05 12:16 PM, James Zhu wrote:
Add UVD hevc encode pipe video codec creation entry
Signed-off-by: James Zhu
---
src/gallium/drivers/radeonsi/si_uvd.c | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git
Better to add it to Makefile.source and Meson in this patch. Other than
this,
this patch is Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com>
On 2018-02-06 03:05 PM, James Zhu wrote:
Add hevc encode hardware interface for UVD
Signed-off-by: James Zhu <james@amd.com>
---
Better to add it to Makefile.source and Meson in this patch. Other than
this,
this patch is Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com>
On 2018-02-06 03:05 PM, James Zhu wrote:
Implement required IBs for UVD HEVC encode.
Signed-off-by: James Zhu <james@amd.com>
---
Better to add it to Makefile.source and Meson in this patch. Other than
this,
this patch is Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com>
On 2018-02-06 03:05 PM, James Zhu wrote:
Implement UVD hevc encode functions
Signed-off-by: James Zhu <james@amd.com>
---
src/gal
This patch is Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com>
On 2018-02-06 03:05 PM, James Zhu wrote:
Add UVD hevc encode pipe video codec creation entry
Signed-off-by: James Zhu <james@amd.com>
---
src/gallium/drivers/radeonsi/si_uvd.c | 15 ---
1 file
this patch is Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com>
On 2018-02-05 12:16 PM, James Zhu wrote:
Enable UVD encode for HEVC main profile
Signed-off-by: James Zhu <james@amd.com>
---
src/gallium/drivers/radeonsi/si_get.c | 4 +++-
1 file changed, 3 insertions(+)
On 2018-02-05 02:41 PM, James Zhu wrote:
Implement UVD hevc encode functions
Signed-off-by: James Zhu
---
src/gallium/drivers/radeon/radeon_uvd_enc.c | 340
1 file changed, 340 insertions(+)
create mode 100644
On 2018-02-08 05:13 PM, Mark Thompson wrote:
On 06/02/18 20:05, James Zhu wrote:
Implement required IBs for UVD HEVC encode.
Signed-off-by: James Zhu
---
src/gallium/drivers/radeon/radeon_uvd_enc_1_1.c | 1115 +++
1 file changed, 1115 insertions(+)
uint32_tuvd_fw_version;
uint32_tvce_fw_version;
+ booluvd_enc_supported;
White space/tab length seems not correct here. With that fixed, this
patch is
Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com>
Thanks,
Boyua
re.
Also, the patch name might better be changed to winsys/amdgpu.
With those fixed, this patch is
Reviewed-by: Boyuan Zhang <boyuan.zh...@amd.com>
Thanks,
Boyuan
case RING_VCE:
cs->ib[IB_MAIN].ip_type = AMDGPU_HW_IP_VCE;
break;
@@ -1533,6 +1538,7 @@
On 2018-08-16 01:19 PM, Leo Liu wrote:
On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote:
From: Boyuan Zhang
Add a new file to handle VCN Jpeg decode specific functions. Use Jpeg
specific cmd sending function in end_frame call.
Signed-off-by: Boyuan Zhang
---
src/gallium/drivers
On 2018-08-16 01:26 PM, Leo Liu wrote:
On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote:
From: Boyuan Zhang
Move the previous get_mjpeg_slice_header function from radeon/vcn to
st/va.
Signed-off-by: Boyuan Zhang
---
src/gallium/state_trackers/va/picture.c | 3 +
src
On 2018-08-16 01:41 PM, Leo Liu wrote:
On 08/16/2018 12:06 PM, boyuan.zh...@amd.com wrote:
From: Boyuan Zhang
Add vcn jpeg cs support, align cs by no-op.
Signed-off-by: Boyuan Zhang
---
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 12
1 file changed, 12 insertions
with this fix?
From: Boyuan Zhang <boyuan.zh...@amd.com>
Profile and entry point were missing in the picture structure.
Therefore, add them back.
Signed-off-by: Boyuan Zhang <boyuan.zh...@amd.com>
---
src/gallium/state_trackers/omx_bellagio/vid_enc.c | 2 ++
1 file changed, 2 insertions(+)
need
to Cc stable for these patches.
Regards,
Boyuan
On 02/28/2018 03:03 AM, Christian König wrote:
Am 28.02.2018 um 00:56 schrieb boyuan.zh...@amd.com:
From: Boyuan Zhang <boyuan.zh...@amd.com>
Picture profile might not be set in some cases. Therefore, better to
use
the profile
the auxiliary dir). Christian -
does that make sense to you?
Cheers,
-ilia
On Fri, Oct 5, 2018 at 12:01 PM wrote:
From: Boyuan Zhang
vlVaGetImage should respect the width, height, and coordinates x and y that
passed in. Therefore, pipe_box should be created with the passed in values
instead
On 2018-10-09 04:09 PM, Ilia Mirkin wrote:
On Tue, Oct 9, 2018 at 4:03 PM wrote:
From: Boyuan Zhang
vlVaGetImage should respect the width, height, and coordinates x and y that
passed in. Therefore, pipe_box should be created with the passed in values
instead of surface width/height.
v2
1 - 100 of 102 matches
Mail list logo