mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 02:08:23 +02:00
amd/vpelib: Move feature skip after buffer size return
[WHY] Feature skip should not perform in buffer size return case. [HOW] Move feature skip call after checking for none buffer size return case. Acked-by: Chuanyu Tseng <Chuanyu.Tseng@amd.com> Signed-off-by: Mike Hsieh <Mike.Hsieh@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40210>
This commit is contained in:
parent
e270075d50
commit
db51152100
1 changed files with 2 additions and 2 deletions
|
|
@ -722,8 +722,6 @@ enum vpe_status vpe_build_commands(
|
|||
}
|
||||
|
||||
if (status == VPE_STATUS_OK) {
|
||||
vpe_geometric_scaling_feature_skip(vpe_priv, param);
|
||||
|
||||
if (bufs->cmd_buf.size == 0 || bufs->emb_buf.size == 0) {
|
||||
/* Here we directly return without setting ops_support to false
|
||||
* becaues the supported check is already passed
|
||||
|
|
@ -737,6 +735,8 @@ enum vpe_status vpe_build_commands(
|
|||
(bufs->emb_buf.size < vpe_priv->bufs_required.emb_buf_size)) {
|
||||
status = VPE_STATUS_INVALID_BUFFER_SIZE;
|
||||
}
|
||||
|
||||
vpe_geometric_scaling_feature_skip(vpe_priv, param);
|
||||
}
|
||||
|
||||
builder = &vpe_priv->resource.cmd_builder;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue