1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. 4 */ 5 6 #include "iris_instance.h" 7 #include "iris_vpu_buffer.h" 8 9 int iris_vpu_buf_count(struct iris_inst *inst, enum iris_buffer_type buffer_type) 10 { 11 switch (buffer_type) { 12 case BUF_INPUT: 13 return MIN_BUFFERS; 14 case BUF_OUTPUT: 15 return inst->fw_min_count; 16 default: 17 return 0; 18 } 19 } 20