mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[all] move defines for LGMP_QUEUE_*_LEN into KVMFR.h
This commit is contained in:
parent
c0acfd1228
commit
0badf2a84c
@ -375,8 +375,7 @@ static int frameThread(void * unused)
|
|||||||
size_t dataSize;
|
size_t dataSize;
|
||||||
LG_RendererFormat lgrFormat;
|
LG_RendererFormat lgrFormat;
|
||||||
|
|
||||||
//FIXME: Should use LGMP_Q_FRAME_LEN
|
struct DMAFrameInfo dmaInfo[LGMP_Q_FRAME_LEN] = {0};
|
||||||
struct DMAFrameInfo dmaInfo[2] = {0};
|
|
||||||
const bool useDMA =
|
const bool useDMA =
|
||||||
params.allowDMA &&
|
params.allowDMA &&
|
||||||
ivshmemHasDMA(&state.shm) &&
|
ivshmemHasDMA(&state.shm) &&
|
||||||
|
@ -23,6 +23,9 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
|||||||
#define LGMP_Q_POINTER 1
|
#define LGMP_Q_POINTER 1
|
||||||
#define LGMP_Q_FRAME 2
|
#define LGMP_Q_FRAME 2
|
||||||
|
|
||||||
|
#define LGMP_Q_FRAME_LEN 2
|
||||||
|
#define LGMP_Q_POINTER_LEN 20
|
||||||
|
|
||||||
typedef enum FrameType
|
typedef enum FrameType
|
||||||
{
|
{
|
||||||
FRAME_TYPE_INVALID ,
|
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_DN(x) ((uintptr_t)(x) & ~0x7F)
|
||||||
#define ALIGN_UP(x) ALIGN_DN(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 =
|
static const struct LGMPQueueConfig FRAME_QUEUE_CONFIG =
|
||||||
{
|
{
|
||||||
.queueID = LGMP_Q_FRAME,
|
.queueID = LGMP_Q_FRAME,
|
||||||
|
Loading…
Reference in New Issue
Block a user