diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2021-01-08 17:58:23 +0000 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2021-01-08 18:06:39 +0000 |
commit | 5b27db600db83a224a852adfc5b8ccde3ef49fc3 (patch) | |
tree | 45797b1848cdc2eec7b517c5a83996f355400282 | |
parent | 2df7ba2033d8b1b2cce032a8b509468ae1533d0b (diff) |
media: venus: hfi: Replicate re-order of bufreq for 6xxtracking-qcomlt-sm8250-venus-05
HFI_4XX has a re-ordered struct hfi_buffer_requirements which HFI_6XX
maintains. This patch extends out the existing macro to re-order struct
hfi_buffer_requirements to 6xx matching 4xx.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
-rw-r--r-- | drivers/media/platform/qcom/venus/hfi_helper.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h b/drivers/media/platform/qcom/venus/hfi_helper.h index 17fcaf96f111..8d998e6e79c8 100644 --- a/drivers/media/platform/qcom/venus/hfi_helper.h +++ b/drivers/media/platform/qcom/venus/hfi_helper.h @@ -1077,13 +1077,15 @@ struct hfi_buffer_display_hold_count_actual { u32 hold_count; }; -/* HFI 4XX reorder the fields, use these macros */ +/* HFI 4XX/6XX reorder the fields, use these macros */ +#define HFI_BUFREQ_REORDER(ver) \ + ((ver) == HFI_VERSION_4XX || (ver) == HFI_VERSION_6XX) #define HFI_BUFREQ_HOLD_COUNT(bufreq, ver) \ - ((ver) == HFI_VERSION_4XX ? 0 : (bufreq)->hold_count) + (HFI_BUFREQ_REORDER(ver) ? 0 : (bufreq)->hold_count) #define HFI_BUFREQ_COUNT_MIN(bufreq, ver) \ - ((ver) == HFI_VERSION_4XX ? (bufreq)->hold_count : (bufreq)->count_min) + (HFI_BUFREQ_REORDER(ver) ? (bufreq)->hold_count : (bufreq)->count_min) #define HFI_BUFREQ_COUNT_MIN_HOST(bufreq, ver) \ - ((ver) == HFI_VERSION_4XX ? (bufreq)->count_min : 0) + (HFI_BUFREQ_REORDER(ver) ? (bufreq)->count_min : 0) struct hfi_buffer_requirements { u32 type; |