[all] move defines for LGMP_QUEUE_*_LEN into KVMFR.h

This commit is contained in:
Geoffrey McRae 2020-10-30 18:48:41 +11:00
parent c0acfd1228
commit 0badf2a84c
3 changed files with 4 additions and 5 deletions

View File

@ -375,8 +375,7 @@ static int frameThread(void * unused)
size_t dataSize;
LG_RendererFormat lgrFormat;
//FIXME: Should use LGMP_Q_FRAME_LEN
struct DMAFrameInfo dmaInfo[2] = {0};
struct DMAFrameInfo dmaInfo[LGMP_Q_FRAME_LEN] = {0};
const bool useDMA =
params.allowDMA &&
ivshmemHasDMA(&state.shm) &&

View File

@ -23,6 +23,9 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#define LGMP_Q_POINTER 1
#define LGMP_Q_FRAME 2
#define LGMP_Q_FRAME_LEN 2
#define LGMP_Q_POINTER_LEN 20
typedef enum FrameType
{
FRAME_TYPE_INVALID ,

View File

@ -44,9 +44,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#define ALIGN_DN(x) ((uintptr_t)(x) & ~0x7F)
#define ALIGN_UP(x) ALIGN_DN(x + 0x7F)
#define LGMP_Q_FRAME_LEN 2
#define LGMP_Q_POINTER_LEN 20
static const struct LGMPQueueConfig FRAME_QUEUE_CONFIG =
{
.queueID = LGMP_Q_FRAME,