mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-12 20:27:53 +00:00
[all] move defines for LGMP_QUEUE_*_LEN into KVMFR.h
This commit is contained in:
parent
c0acfd1228
commit
0badf2a84c
3 changed files with 4 additions and 5 deletions
|
@ -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) &&
|
||||
|
|
|
@ -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 ,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue