guestrendering/vghwutils/src/vghwutils.cpp
author Matt Plumtree <matt.plumtree@nokia.com>
Thu, 23 Sep 2010 13:56:33 +0100
branchbug235_bringup_0
changeset 30 f204b762818d
parent 9 0af9dd6c2c3a
permissions -rwxr-xr-x
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     1
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     2
// All rights reserved.
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     3
// This component and the accompanying materials are made available
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     5
// which accompanies this distribution, and is available
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     7
//
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     8
// Initial Contributors:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    10
//
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    11
// Contributors:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    12
//
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    13
// Description:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    14
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    15
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    16
#include <e32atomics.h>
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    17
#include <e32debug.h>
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    18
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    19
#include <graphics/guestvideodriver.h>
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    20
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    21
#include "vghwutils.h"
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    22
#include "eglrfc.h"
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    23
#include "openvgrfc.h"
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    24
#include "opengles11rfc.h"
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    25
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    26
#ifdef _DEBUG
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    27
#define EGL_ERROR_PRINT(T, E)  EglErrorPrint(T, E)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    28
#define GLES_ERROR_PRINT(T, E) GlesErrorPrint(T, E)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    29
#define VG_ERROR_PRINT(T, E)   VgErrorPrint(T, E)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    30
static void EglErrorPrint(char* aTitle, EGLint aEglError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    31
static void GlesErrorPrint(char* aTitle, GLenum aGlesError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    32
static void VgErrorPrint(char* aTitle, VGErrorCode aVgError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    33
#else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    34
#define EGL_ERROR_PRINT(T, E)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    35
#define GLES_ERROR_PRINT(T, E)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    36
#define VG_ERROR_PRINT(T, E)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    37
#endif
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    38
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    39
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    40
// Min & Max sizes for creating Memory Heap for Guest Graphics DLLs
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    41
#define KVghwHeapMin 0x1000
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    42
#define KVghwHeapMax 0x100000
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    43
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    44
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    45
// protection against concurrent initialisation from multiple threads
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    46
volatile TBool       CVghwUtils::iInitialized = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    47
TInt                 CVghwUtils::iVghwInitMutex = 0;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    48
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    49
// static member objects - Writeable Static Data
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    50
RGuestVideoDriver* CVghwUtils::iDriver = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    51
RHeap*               CVghwUtils::iHeap = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    52
MEglManagementApi*   CVghwUtils::iEglManagementApi = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    53
MVgApiForEgl*        CVghwUtils::iVgApiForEgl = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    54
MGles11ApiForEgl*    CVghwUtils::iGles11ApiForEgl = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    55
MGles2ApiForEgl*     CVghwUtils::iGles2ApiForEgl = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    56
TBool                CVghwUtils::iLoadedOpenVgDll = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    57
TBool                CVghwUtils::iLoadedOpenGles11Dll = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    58
TBool                CVghwUtils::iLoadedOpenGles2Dll = EFalse;	
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    59
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    60
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    61
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    62
_LIT(KVghwPanicCategory, "Guest VGHW");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    63
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    64
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    65
// NOTE: Exported because some VGHW functions are inline and could Assert & Panic from somewhere else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    66
EXPORT_C void VghwPanic(TVghwPanic aPanicCode, char* aPanicName, char* aCondition, char* aFile, TInt aLine)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    67
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    68
	if (aCondition && aFile)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    69
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    70
		RDebug::Printf("VghwUtils Panic %s for failed Assert (%s), at %s:%d", aPanicName, aCondition, aFile, aLine);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    71
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    72
	else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    73
		{  
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    74
		RDebug::Printf("VghwUtils Panic %d for failed Assert (line %d)", aPanicCode, aLine);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    75
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    76
		
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    77
	User::Panic(KVghwPanicCategory, aPanicCode);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    78
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    79
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    80
// inline functions
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    81
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    82
RGuestVideoDriver& CVghwUtils::Driver()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    83
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    84
	// TODO remove this later in refactoring - Open VG & GL ES commands should not reach here before EGL has initialized the singleton
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    85
	if (!iInitialized || !iDriver)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    86
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    87
		UTIL_TRACE("CVghwUtils::Driver called before EGL has initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    88
		InitStatics();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    89
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    90
	VGHWPANIC_ASSERT(iInitialized && iDriver, EVghwPanicGraphicsDriverNotOpen);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    91
	return *iDriver;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    92
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    93
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    94
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    95
EXPORT_C void CVghwUtils::DestroyStatics()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    96
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    97
#ifdef _DEBUG
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    98
	TUint64 processId = RProcess().Id().Id();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    99
	TUint64 threadId = RThread().Id().Id();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   100
	UTIL_TRACE("CVghwUtils::DestroyStatics iInitialized=%d, iDriver=0x%x, iHeap=0x%x, Process=0x%lx, Thread=0x%lx",
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   101
		iInitialized, iDriver, iHeap, processId, threadId);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   102
#endif
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   103
	if (iHeap)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   104
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   105
		if (iDriver)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   106
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   107
			iDriver->Flush();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   108
			iDriver->Close();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   109
			RHeap* threadHeap = SwitchToVghwHeap();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   110
			delete iDriver;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   111
			SwitchFromVghwHeap(threadHeap);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   112
			iDriver = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   113
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   114
		iHeap->Reset();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   115
		iHeap->Close();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   116
		iHeap = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   117
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   118
	if (iInitialized)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   119
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   120
		iInitialized = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   121
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   122
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   123
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   124
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   125
// Ensure Graphics memory heap is created, and Open driver channel
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   126
EXPORT_C void CVghwUtils::InitStatics()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   127
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   128
#ifdef _DEBUG
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   129
	TUint64 processId = RProcess().Id().Id();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   130
	TUint64 threadId = RThread().Id().Id();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   131
	UTIL_TRACE("CVghwUtils::InitStatics start Process=0x%lx, Thread=0x%lx, iInitialized=%d",
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   132
		processId, threadId, iInitialized);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   133
#endif
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   134
	// bootstrap creation of mutexes and Graphics memory heap
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   135
	while (!iInitialized)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   136
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   137
		TInt creationError = KErrNone;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   138
		// thread safe initialization
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   139
		// LockedDec() returns the value prior to decrement
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   140
		if (0 != User::LockedDec(iVghwInitMutex))
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   141
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   142
			User::AfterHighRes(1000);     // Yield X microseconds, review length if code is changed
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   143
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   144
		else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   145
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   146
			// volatile attribute forces rereading of the pointer, in case another thread has done the allocation
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   147
			if (!iInitialized)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   148
				{ // loop style init exits if any stage fails, and gives per step debug logging
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   149
				TInt step = 0;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   150
				do
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   151
					{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   152
					switch (step)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   153
						{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   154
						case 0:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   155
							// guarantee that initialisation of the object is flushed before the pointer is published
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   156
							__e32_atomic_store_rel_ptr(&iHeap, User::ChunkHeap(NULL, KVghwHeapMin, KVghwHeapMax));
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   157
							if (!iHeap)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   158
								{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   159
								creationError = KErrNoMemory;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   160
								}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   161
							break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   162
						case 1:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   163
							{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   164
							VGHWPANIC_ASSERT_DEBUG(iHeap, EVghwPanicVghwHeapDoesNotExist);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   165
							RHeap* threadHeap = User::SwitchHeap(iHeap); // switch to VGHW graphics Heap
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   166
							iDriver = new RGuestVideoDriver();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   167
							if (!iDriver)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   168
								{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   169
								creationError = KErrNoMemory;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   170
								}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   171
							User::SwitchHeap(threadHeap); // switch back to client Heap
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   172
							}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   173
							break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   174
						case 2:
9
0af9dd6c2c3a Update for Dynamic Frame Buffer Base Address
Faisal Memon <faisal.memon@nokia.com>
parents: 7
diff changeset
   175
							creationError = User::LoadLogicalDevice(_L("guestvideohw"));
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   176
							if ( (KErrNone == creationError) || (KErrAlreadyExists == creationError) )
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   177
								{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   178
								creationError = iDriver->Open();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   179
								}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   180
							break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   181
						default: // all initialisation steps completed
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   182
							iInitialized = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   183
						}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   184
					++step;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   185
					}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   186
				while (!iInitialized && !creationError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   187
				UTIL_TRACE("CVghwUtils::InitStatics %s step=%d; creationError=%d, iInitialized=%d, iDriver=0x%x, iHeap=0x%x",
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   188
						creationError ? "failed at" : "completed", step, creationError, iInitialized, iDriver, iHeap);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   189
				}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   190
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   191
		User::LockedInc(iVghwInitMutex);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   192
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   193
		VGHWPANIC_ASSERT(creationError == KErrNone, EVghwPanicInitializeFailed);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   194
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   195
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   196
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   197
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   198
// -----------------------------------------------------------------------------
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   199
// 
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   200
// -----------------------------------------------------------------------------
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   201
//
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   202
EXPORT_C void CVghwUtils::DriverExecuteCommand(RemoteFunctionCallData& aRequestData)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   203
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   204
	if (!iInitialized || !iDriver)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   205
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   206
		UTIL_TRACE("CVghwUtils::DriverExecuteCommand called before EGL has initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   207
		InitStatics();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   208
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   209
	VGHWPANIC_ASSERT(iInitialized && iDriver, EVghwPanicGraphicsDriverNotOpen);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   210
	iDriver->ExecuteCommand(aRequestData);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   211
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   212
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   213
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   214
// -----------------------------------------------------------------------------
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   215
// Use driver to discover linear memory address of chunk.
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   216
// -----------------------------------------------------------------------------
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   217
//
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   218
EXPORT_C TInt CVghwUtils::MapToHWAddress( const TInt aChunkHandle, TUint32& aHWAddress )
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   219
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   220
	UTIL_TRACE("CVghwUtils::MapToHWAddress");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   221
	return Driver().MapToHWAddress( aChunkHandle, aHWAddress );
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   222
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   223
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   224
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   225
// SgImage support function - get underlying VGImage & Pbuffer handles
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   226
EXPORT_C TInt CVghwUtils::EglGetSgHandles( const TUint64 aId, TUint64 *aSgHandles )
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   227
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   228
	UTIL_TRACE("CVghwUtils::EglGetSgHandles");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   229
	return Driver().EglGetSgHandles( aId, aSgHandles );
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   230
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   231
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   232
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   233
// Memory Heap Management functions
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   234
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   235
EXPORT_C TAny* CVghwUtils::Alloc(TInt aSize)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   236
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   237
	if (!iInitialized || !iHeap)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   238
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   239
		UTIL_TRACE("CVghwUtils::Alloc called before EGL has initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   240
		InitStatics();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   241
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   242
	VGHWPANIC_ASSERT(iInitialized && iHeap, EVghwPanicVghwHeapDoesNotExist);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   243
	return iHeap->Alloc(aSize);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   244
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   245
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   246
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   247
EXPORT_C void CVghwUtils::Free(TAny* aPtr)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   248
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   249
	if (!iInitialized || !iHeap)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   250
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   251
		UTIL_TRACE("CVghwUtils::Free called before EGL has initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   252
		InitStatics();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   253
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   254
	VGHWPANIC_ASSERT(iInitialized && iHeap, EVghwPanicVghwHeapDoesNotExist);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   255
	iHeap->Free(aPtr);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   256
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   257
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   258
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   259
EXPORT_C RHeap* CVghwUtils::GetHeap()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   260
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   261
	if (!iInitialized || !iHeap)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   262
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   263
		UTIL_TRACE("CVghwUtils::GetHeap called before EGL has initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   264
		InitStatics();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   265
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   266
	VGHWPANIC_ASSERT(iInitialized && iHeap, EVghwPanicVghwHeapDoesNotExist);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   267
	return iHeap;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   268
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   269
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   270
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   271
// Switch to VGHW Memory Heap.
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   272
EXPORT_C RHeap* CVghwUtils::SwitchToVghwHeap()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   273
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   274
	if (!iInitialized || !iHeap)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   275
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   276
		UTIL_TRACE("CVghwUtils::SwitchToVghwHeap called before EGL has initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   277
		InitStatics();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   278
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   279
	VGHWPANIC_ASSERT(iHeap, EVghwPanicVghwHeapDoesNotExist);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   280
	RHeap* oldHeap = User::SwitchHeap(iHeap); // switch to Guest graphics heap
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   281
	VGHWPANIC_ASSERT(oldHeap != iHeap, EVghwPanicSwitchToVghwHeapOldHeapIsVghwHeap);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   282
	return oldHeap;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   283
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   284
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   285
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   286
// Switch back to original heap 
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   287
EXPORT_C void CVghwUtils::SwitchFromVghwHeap(RHeap* aOldHeapPtr)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   288
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   289
	if (!iInitialized || !iHeap)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   290
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   291
		UTIL_TRACE("CVghwUtils::SwitchFromVghwHeap called before EGL has initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   292
		InitStatics();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   293
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   294
	VGHWPANIC_ASSERT(iHeap, EVghwPanicVghwHeapDoesNotExist);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   295
	VGHWPANIC_ASSERT(aOldHeapPtr, EVghwPanicSwitchFromVghwHeapParamIsNull);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   296
	VGHWPANIC_ASSERT(aOldHeapPtr != iHeap, EVghwPanicSwitchFromVghwHeapParamIsVghwHeap);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   297
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   298
	RHeap* oldHeap = User::SwitchHeap(aOldHeapPtr); // switch from Guest graphics heap back to thread heap
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   299
	VGHWPANIC_ASSERT(oldHeap == iHeap, EVghwPanicSwitchFromVghwHeapOldHeapIsNotVghwHeap);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   300
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   301
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   302
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   303
// if this thread does not have an object try to alloc a new one
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   304
EXPORT_C TEglThreadState* CVghwUtils::CreateThreadState()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   305
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   306
	TEglThreadState* threadState = reinterpret_cast<TEglThreadState*>(Dll::Tls());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   307
	if (!threadState)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   308
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   309
		UTIL_TRACE("CVghwUtils::CreateThreadState - object is currently 0x%x, iInitialized=%d",
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   310
				threadState, iInitialized);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   311
		if (!iInitialized)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   312
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   313
			InitStatics();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   314
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   315
		threadState = TEglThreadState::New();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   316
		Dll::SetTls(threadState);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   317
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   318
	return threadState;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   319
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   320
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   321
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   322
// current state object, if any, for this thread
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   323
EXPORT_C TEglThreadState* CVghwUtils::EglThreadState()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   324
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   325
	TEglThreadState* threadState = reinterpret_cast<TEglThreadState*>(Dll::Tls());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   326
	return threadState;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   327
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   328
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   329
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   330
// current state object, if Open VG is the current bound API, for this thread 
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   331
EXPORT_C MVgContext* CVghwUtils::VgContext()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   332
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   333
	TEglThreadState* threadState = reinterpret_cast<TEglThreadState*>(Dll::Tls());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   334
	return threadState;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   335
	// ToDo sort this to check for valid Open VG context
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   336
	/*
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   337
	if (threadState && threadState->VgEglContext())
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   338
		return threadState;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   339
	return NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   340
	*/
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   341
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   342
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   343
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   344
// current state object, if Open GL ES is the current bound API, for this thread (for EGL)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   345
EXPORT_C MGlesContext* CVghwUtils::GlesContext()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   346
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   347
	TEglThreadState* threadState = reinterpret_cast<TEglThreadState*>(Dll::Tls());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   348
	return threadState;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   349
	// ToDo sort this to check for valid Open GL ES context
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   350
	/*
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   351
	if (threadState && threadState->GlesEglContext())
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   352
		return threadState;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   353
	return NULL; */
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   354
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   355
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   356
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   357
// free current state object, if any, for this thread
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   358
EXPORT_C void CVghwUtils::ReleaseThreadState()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   359
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   360
	TEglThreadState* threadState = reinterpret_cast<TEglThreadState*>(Dll::Tls());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   361
	UTIL_TRACE("CVghwUtils::ReleaseThreadState - object = 0x%x", threadState);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   362
	if (threadState)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   363
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   364
		threadState->Destroy();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   365
		Dll::FreeTls();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   366
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   367
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   368
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   369
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   370
EXPORT_C MEglManagementApi* CVghwUtils::EglManagementApi()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   371
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   372
	return iEglManagementApi;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   373
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   374
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   375
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   376
EXPORT_C void CVghwUtils::SetEglManagementApi(MEglManagementApi* aEglManagementApi)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   377
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   378
	UTIL_TRACE("CVghwUtils::SetEglManagementApi  aEglManagementApi=0x%x", aEglManagementApi);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   379
	iEglManagementApi = aEglManagementApi;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   380
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   381
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   382
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   383
/*
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   384
 Stored pointers into Open GL ES 1.1, GL ES 2 and Open VG are problematic if the DLL is later unloaded.
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   385
 (RSgDriver::Open currently loads & unloads all the Open VG & GL ES DLLs, to determine features to publish.)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   386
 Possibly Open the DLL again when the non-NULL pointer is fetched by EGL, probably needs flags so that
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   387
 this is only done once.
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   388
 */
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   389
EXPORT_C void CVghwUtils::SetVgApiForEgl(MVgApiForEgl* aVgApiForEgl)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   390
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   391
	UTIL_TRACE("CVghwUtils::SetVgApiForEgl  aVgApiForEgl=0x%x, iVgApiForEgl=0x%x, iLoadedOpenVgDll=0x%x",
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   392
			aVgApiForEgl, iVgApiForEgl, iLoadedOpenVgDll);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   393
	// don't let a thread set this to NULL if we have forced the DLL to stay loaded
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   394
	if (aVgApiForEgl || !iLoadedOpenVgDll)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   395
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   396
		iVgApiForEgl = aVgApiForEgl;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   397
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   398
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   399
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   400
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   401
EXPORT_C MVgApiForEgl* CVghwUtils::VgApiForEgl()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   402
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   403
	if (iVgApiForEgl && !iLoadedOpenVgDll)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   404
		{ // ensure Open VG DLL stays loaded from now on
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   405
		_LIT(KLibOpenVg, "libOpenVG.dll");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   406
		RLibrary lib;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   407
		if (lib.Load(KLibOpenVg) == KErrNone)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   408
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   409
			UTIL_TRACE("CVghwUtils::VgApiForEgl - Open VG dll loaded, iVgApiForEgl=0x%x", iVgApiForEgl);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   410
			iLoadedOpenVgDll = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   411
			return iVgApiForEgl;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   412
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   413
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   414
	UTIL_TRACE("CVghwUtils::VgApiForEgl - Open VG dll not loaded or not safe to use");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   415
	return NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   416
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   417
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   418
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   419
EXPORT_C void CVghwUtils::SetGles11ApiForEgl(MGles11ApiForEgl* aGles11ApiForEgl)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   420
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   421
	UTIL_TRACE("CVghwUtils::SetGles11ApiForEgl  aGles11ApiForEgl=0x%x, iGles11ApiForEgl=0x%x, iLoadedOpenGles11Dll=0x%x",
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   422
			aGles11ApiForEgl, iGles11ApiForEgl, iLoadedOpenGles11Dll);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   423
	// don't let a thread set this to NULL if we have forced the DLL to stay loaded
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   424
	if (aGles11ApiForEgl || !iLoadedOpenGles11Dll)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   425
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   426
		iGles11ApiForEgl = aGles11ApiForEgl;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   427
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   428
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   429
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   430
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   431
EXPORT_C MGles11ApiForEgl* CVghwUtils::Gles11ApiForEgl()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   432
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   433
	if (iGles11ApiForEgl && !iLoadedOpenGles11Dll)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   434
		{ // ensure Open VG DLL stays loaded from now on
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   435
		_LIT(KLibOpenGles, "libGLESv1_CM.dll");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   436
		RLibrary lib;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   437
		if (lib.Load(KLibOpenGles) == KErrNone)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   438
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   439
			UTIL_TRACE("CVghwUtils::Gles11ApiForEgl - Open GL ES 1.1 dll loaded, iGles11ApiForEgl=0x%x", iGles11ApiForEgl);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   440
			iLoadedOpenGles11Dll = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   441
			return iGles11ApiForEgl;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   442
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   443
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   444
	UTIL_TRACE("CVghwUtils::Gles11ApiForEgl - Open GL ES 1.1 dll not loaded or not safe to use");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   445
	return NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   446
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   447
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   448
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   449
EXPORT_C void CVghwUtils::SetGles2ApiForEgl(MGles2ApiForEgl* aGles2ApiForEgl)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   450
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   451
	UTIL_TRACE("CVghwUtils::SetGles2ApiForEgl  aGles2ApiForEgl=0x%x, iGles2ApiForEgl=0x%x, iLoadedOpenGles2Dll=0x%x",
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   452
			aGles2ApiForEgl, iGles2ApiForEgl, iLoadedOpenGles2Dll);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   453
	// don't let a thread set this to NULL if we have forced the DLL to stay loaded
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   454
	if (aGles2ApiForEgl || !iLoadedOpenGles2Dll)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   455
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   456
		iGles2ApiForEgl = aGles2ApiForEgl;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   457
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   458
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   459
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   460
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   461
EXPORT_C MGles2ApiForEgl* CVghwUtils::Gles2ApiForEgl()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   462
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   463
	if (iGles2ApiForEgl && !iLoadedOpenGles2Dll)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   464
		{ // ensure Open VG DLL stays loaded from now on
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   465
		_LIT(KLibOpenGles2, "libGLESv2.dll");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   466
		RLibrary lib;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   467
		if (lib.Load(KLibOpenGles2) == KErrNone)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   468
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   469
			UTIL_TRACE("CVghwUtils::Gles2ApiForEgl - Open GL ES 2 dll loaded, iGles2ApiForEgl=0x%x", iGles2ApiForEgl);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   470
			iLoadedOpenGles2Dll = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   471
			return iGles2ApiForEgl;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   472
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   473
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   474
	UTIL_TRACE("CVghwUtils::Gles2ApiForEgl - Open GL ES 2 dll not loaded or not safe to use");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   475
	return NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   476
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   477
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   478
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   479
////////////////////////////////////////////////////////////////////////////////////
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   480
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   481
// factory method
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   482
TEglThreadState* TEglThreadState::New()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   483
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   484
	UTIL_TRACE("TEglThreadState::New");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   485
	RHeap* currentHeap = CVghwUtils::SwitchToVghwHeap();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   486
	TEglThreadState* self = new TEglThreadState();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   487
	CVghwUtils::SwitchFromVghwHeap(currentHeap);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   488
	return self;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   489
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   490
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   491
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   492
TEglThreadState::TEglThreadState() :
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   493
	// EGL thread state
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   494
	iEglError(EGL_SUCCESS),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   495
	iEglHostHasRecentError(EFalse),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   496
	// currently bound graphics API, initial value from EGL spec 
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   497
	iEglBoundApi(EGL_OPENGL_ES_API),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   498
	// Open VG thread state 
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   499
	iVgError(VG_NO_ERROR),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   500
	iVgEglContext(EGL_NO_CONTEXT),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   501
	iVgCommandsSinceGetError(EFalse),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   502
	iVgCommandsSinceFlush(EFalse),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   503
	iVgCommandsSinceFinish(EFalse),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   504
	// Open GL ES 1.1 state
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   505
	iGlesError(GL_NO_ERROR),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   506
	iGlesEglContext(EGL_NO_CONTEXT),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   507
	iGlesCommandsSinceGetError(EFalse),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   508
	iGlesCommandsSinceFlush(EFalse),
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   509
	iGlesCommandsSinceFinish(EFalse)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   510
	{}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   511
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   512
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   513
void TEglThreadState::Destroy()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   514
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   515
	UTIL_TRACE("TEglThreadState::Destroy");
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   516
	RHeap* currentHeap = CVghwUtils::SwitchToVghwHeap();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   517
	delete this;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   518
	CVghwUtils::SwitchFromVghwHeap(currentHeap);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   519
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   520
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   521
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   522
TEglThreadState::~TEglThreadState()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   523
	{}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   524
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   525
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   526
// -----------------------------------------------------------------------------
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   527
// 
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   528
// -----------------------------------------------------------------------------
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   529
//
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   530
EXPORT_C EGLBoolean TEglThreadState::ExecEglBooleanCmd(EglRFC& aEglApiData)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   531
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   532
	CVghwUtils::DriverExecuteCommand(aEglApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   533
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   534
	EGLBoolean hostResult = (EGLBoolean) aEglApiData.ReturnValue();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   535
	if (hostResult == EGL_TRUE)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   536
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   537
		ClearEglError();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   538
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   539
	else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   540
		{ // error present in host graphics stack
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   541
		iEglHostHasRecentError = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   542
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   543
	return hostResult;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   544
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   545
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   546
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   547
EXPORT_C EGLContext TEglThreadState::ExecEglContextCmd(EglRFC& aEglApiData)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   548
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   549
	CVghwUtils::DriverExecuteCommand(aEglApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   550
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   551
	EGLContext hostResult = (EGLContext) aEglApiData.ReturnValue();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   552
	if (hostResult != EGL_NO_CONTEXT)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   553
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   554
		ClearEglError();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   555
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   556
	else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   557
		{ // error present in host graphics stack
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   558
		iEglHostHasRecentError = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   559
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   560
	return hostResult;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   561
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   562
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   563
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   564
EXPORT_C EGLSurface TEglThreadState::ExecEglSurfaceCmd(EglRFC& aEglApiData)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   565
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   566
	CVghwUtils::DriverExecuteCommand(aEglApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   567
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   568
	EGLSurface hostResult = (EGLSurface) aEglApiData.ReturnValue();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   569
	if (hostResult != EGL_NO_SURFACE)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   570
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   571
		ClearEglError();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   572
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   573
	else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   574
		{ // error present in host graphics stack
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   575
		iEglHostHasRecentError = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   576
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   577
	return hostResult;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   578
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   579
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   580
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   581
/*
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   582
 Get details of the last EGL api error.
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   583
 (Resets stored last error value to EGL_SUCCESS.)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   584
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   585
 @return EGL_SUCCESS or an EGL_xxxx error constant.
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   586
 */
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   587
EXPORT_C EGLint TEglThreadState::EglError()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   588
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   589
	EGLint eglError = iEglError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   590
	if (iEglHostHasRecentError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   591
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   592
		// last EGL command was executed/failed in the Host side, so need to ask it for the error
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   593
		RemoteFunctionCallData rfcdata; EglRFC eglApiData(rfcdata);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   594
		eglApiData.Init(EglRFC::EeglGetError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   595
		CVghwUtils::DriverExecuteCommand(eglApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   596
		eglError = (EGLint)eglApiData.ReturnValue();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   597
		EGL_ERROR_PRINT("TEglThreadState::EglError newest error fetched from Host EGL", eglError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   598
		iEglHostHasRecentError = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   599
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   600
	else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   601
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   602
		EGL_ERROR_PRINT("TEglThreadState::EglError newest EGL error set by DLL", eglError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   603
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   604
	iEglError = EGL_SUCCESS;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   605
	return eglError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   606
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   607
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   608
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   609
void TEglThreadState::ExecuteVgCommand(OpenVgRFC& aVgApiData)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   610
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   611
	CVghwUtils::DriverExecuteCommand(aVgApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   612
	iVgCommandsSinceGetError = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   613
	iVgCommandsSinceFlush = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   614
	iVgCommandsSinceFinish = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   615
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   616
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   617
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   618
void TEglThreadState::ExecuteVgFlushCommand()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   619
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   620
	if (iVgCommandsSinceFlush)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   621
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   622
		RemoteFunctionCallData data; OpenVgRFC vgApiData(data);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   623
		vgApiData.Init(OpenVgRFC::EvgFlush);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   624
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   625
		CVghwUtils::DriverExecuteCommand(vgApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   626
		iVgCommandsSinceFlush = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   627
		iVgCommandsSinceFinish = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   628
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   629
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   630
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   631
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   632
void TEglThreadState::ExecuteVgFinishCommand()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   633
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   634
	if (iVgCommandsSinceFinish)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   635
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   636
		RemoteFunctionCallData data; OpenVgRFC vgApiData(data);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   637
		vgApiData.Init(OpenVgRFC::EvgFinish);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   638
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   639
		CVghwUtils::DriverExecuteCommand(vgApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   640
		iVgCommandsSinceFinish = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   641
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   642
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   643
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   644
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   645
VGErrorCode TEglThreadState::VgError()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   646
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   647
	VGErrorCode vgError = iVgError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   648
	VG_ERROR_PRINT("TEglThreadState::VgError oldest Open VG DLL error", vgError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   649
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   650
	if (iVgCommandsSinceGetError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   651
		{ // fetch and clear the host error state
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   652
		VGErrorCode hostVgError = GetHostVgError();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   653
		VG_ERROR_PRINT("TEglThreadState::VgError oldest Host Open VG DLL error", hostVgError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   654
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   655
		if (vgError == VG_NO_ERROR)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   656
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   657
			vgError = hostVgError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   658
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   659
		iVgCommandsSinceGetError = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   660
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   661
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   662
	iVgError = VG_NO_ERROR;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   663
	return vgError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   664
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   665
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   666
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   667
VGErrorCode TEglThreadState::GetHostVgError()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   668
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   669
	RemoteFunctionCallData data; OpenVgRFC vgApiData(data);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   670
	vgApiData.Init( OpenVgRFC::EvgGetError );
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   671
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   672
	CVghwUtils::DriverExecuteCommand(vgApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   673
	return (VGErrorCode)vgApiData.ReturnValue();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   674
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   675
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   676
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   677
// Open GL ES
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   678
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   679
GLenum TEglThreadState::GlesError()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   680
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   681
	GLenum glesError = iGlesError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   682
	GLES_ERROR_PRINT("TEglThreadState::GlesError oldest Open GL ES DLL error", glesError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   683
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   684
	if (iGlesCommandsSinceGetError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   685
		{ // fetch and clear the host error state
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   686
		GLenum hostGlesError = GetHostGlesError();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   687
		GLES_ERROR_PRINT("TEglThreadState::GlesError oldest Host Open GL ES DLL error", hostGlesError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   688
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   689
		if (glesError == GL_NO_ERROR)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   690
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   691
			glesError = hostGlesError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   692
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   693
		iGlesCommandsSinceGetError = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   694
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   695
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   696
	iGlesError = GL_NO_ERROR;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   697
	return glesError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   698
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   699
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   700
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   701
GLenum TEglThreadState::GetHostGlesError()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   702
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   703
	RemoteFunctionCallData data;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   704
	OpenGlES11RFC glesApiData(data);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   705
	glesApiData.Init(OpenGlES11RFC::EglGetError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   706
	CVghwUtils::DriverExecuteCommand(glesApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   707
	return (GLint)glesApiData.ReturnValue();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   708
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   709
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   710
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   711
void TEglThreadState::ExecuteGlesCommand(RemoteFunctionCall& aGlesRequestData)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   712
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   713
	CVghwUtils::DriverExecuteCommand(aGlesRequestData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   714
	iGlesCommandsSinceGetError = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   715
	iGlesCommandsSinceFlush = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   716
	iGlesCommandsSinceFinish = ETrue;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   717
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   718
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   719
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   720
void TEglThreadState::ExecuteGlesFlushCommand()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   721
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   722
	if (iGlesCommandsSinceFlush)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   723
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   724
		RemoteFunctionCallData rfcData;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   725
		OpenGlES11RFC glesApiData( rfcData );
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   726
		glesApiData.Init(OpenGlES11RFC::EglFlush, RemoteFunctionCallData::EOpRequest);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   727
		CVghwUtils::DriverExecuteCommand(glesApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   728
		iGlesCommandsSinceFlush = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   729
		iGlesCommandsSinceFinish = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   730
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   731
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   732
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   733
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   734
void TEglThreadState::ExecuteGlesFinishCommand()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   735
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   736
	if (iGlesCommandsSinceFinish)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   737
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   738
		RemoteFunctionCallData rfcData;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   739
		OpenGlES11RFC glesApiData( rfcData );
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   740
		glesApiData.Init(OpenGlES11RFC::EglFinish, RemoteFunctionCallData::EOpRequest);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   741
		CVghwUtils::DriverExecuteCommand(glesApiData.Data());
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   742
		iGlesCommandsSinceFinish = EFalse;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   743
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   744
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   745
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   746
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   747
// Open VG state
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   748
void TEglThreadState::SetVgError(VGErrorCode aVgError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   749
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   750
	VGHWPANIC_ASSERT_DEBUG( (aVgError >= VG_BAD_HANDLE_ERROR) && (aVgError <= 0x10FF), EVghwPanicBadVgErrorValue);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   751
	// for Open VG track the oldest uncleared error
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   752
	VG_ERROR_PRINT("TEglThreadState::SetVgError error", aVgError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   753
	if ( (iVgError == VG_NO_ERROR) && (aVgError >= VG_BAD_HANDLE_ERROR) && (aVgError <= 0x10FF) )
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   754
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   755
		if (iVgCommandsSinceGetError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   756
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   757
			iVgError = GetHostVgError();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   758
			VG_ERROR_PRINT("TEglThreadState::SetVgError oldest Host Open VG DLL error", iVgError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   759
			if (iVgError != VG_NO_ERROR)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   760
				{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   761
				return;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   762
				}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   763
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   764
		iVgError = aVgError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   765
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   766
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   767
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   768
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   769
EGLContext TEglThreadState::VgEglContext()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   770
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   771
	return iVgEglContext;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   772
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   773
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   774
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   775
// Open GL ES thread state
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   776
void TEglThreadState::SetGlesError(GLenum aGlesError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   777
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   778
	VGHWPANIC_ASSERT_DEBUG( (aGlesError >= GL_INVALID_ENUM) && (aGlesError <= 0x05FF), EVghwPanicBadGlesErrorValue);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   779
	// for Open GL ES track the oldest uncleared error
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   780
	GLES_ERROR_PRINT("TEglThreadState::SetGlesError error", aGlesError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   781
	if ( (iGlesError == GL_NO_ERROR) && (aGlesError >= GL_INVALID_ENUM) && (aGlesError <= 0x05FF) )
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   782
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   783
		if (iGlesCommandsSinceGetError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   784
			{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   785
			iGlesError = GetHostGlesError();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   786
			GLES_ERROR_PRINT("TEglThreadState::SetGlesError oldest Host Open GL ES DLL error", iGlesError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   787
			if (iGlesError != GL_NO_ERROR)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   788
				{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   789
				return;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   790
				}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   791
			}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   792
		iGlesError = aGlesError;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   793
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   794
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   795
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   796
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   797
EGLContext TEglThreadState::GlesEglContext()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   798
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   799
	return iGlesEglContext;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   800
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   801
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   802
// -----------------------------------------------------------------------------
30
f204b762818d Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 9
diff changeset
   803
// Use driver to discover base address of the surface memory.
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   804
// -----------------------------------------------------------------------------
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   805
//	  
30
f204b762818d Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 9
diff changeset
   806
EXPORT_C TInt CVghwUtils::GetSurfaceBufferBaseAddress( TUint32& aHWAddress )
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   807
	{
30
f204b762818d Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 9
diff changeset
   808
	UTIL_TRACE("CVghwUtils::GetSurfaceBufferBaseAddress");
9
0af9dd6c2c3a Update for Dynamic Frame Buffer Base Address
Faisal Memon <faisal.memon@nokia.com>
parents: 7
diff changeset
   809
	if (!iInitialized || !iDriver)
0af9dd6c2c3a Update for Dynamic Frame Buffer Base Address
Faisal Memon <faisal.memon@nokia.com>
parents: 7
diff changeset
   810
		{
30
f204b762818d Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 9
diff changeset
   811
		UTIL_TRACE("CVghwUtils::GetSurfaceBufferBaseAddress called before initialised VghwUtils: iInitialized=%d, iDriver=0x%x", iInitialized, iDriver);
9
0af9dd6c2c3a Update for Dynamic Frame Buffer Base Address
Faisal Memon <faisal.memon@nokia.com>
parents: 7
diff changeset
   812
		InitStatics();
0af9dd6c2c3a Update for Dynamic Frame Buffer Base Address
Faisal Memon <faisal.memon@nokia.com>
parents: 7
diff changeset
   813
		}
0af9dd6c2c3a Update for Dynamic Frame Buffer Base Address
Faisal Memon <faisal.memon@nokia.com>
parents: 7
diff changeset
   814
	VGHWPANIC_ASSERT(iInitialized && iDriver, EVghwPanicGraphicsDriverNotOpen);
30
f204b762818d Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 9
diff changeset
   815
	return iDriver->GetSurfaceBufferBaseAddress( aHWAddress );
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   816
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   817
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   818
#ifdef _DEBUG
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   819
static void EglErrorPrint(char* aTitle, EGLint aEglError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   820
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   821
	char* errName = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   822
	switch (aEglError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   823
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   824
		case EGL_SUCCESS: errName = "EGL_SUCCESS"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   825
		case EGL_NOT_INITIALIZED: errName = "EGL_NOT_INITIALIZED"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   826
		case EGL_BAD_ACCESS: errName = "EGL_BAD_ACCESS"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   827
		case EGL_BAD_ALLOC: errName = "EGL_BAD_ALLOC"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   828
		case EGL_BAD_ATTRIBUTE: errName = "EGL_BAD_ATTRIBUTE"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   829
		case EGL_BAD_CONFIG: errName = "EGL_BAD_CONFIG"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   830
		case EGL_BAD_CONTEXT: errName = "EGL_BAD_CONTEXT"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   831
		case EGL_BAD_CURRENT_SURFACE: errName = "EGL_BAD_CURRENT_SURFACE"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   832
		case EGL_BAD_DISPLAY: errName = "EGL_BAD_DISPLAY"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   833
		case EGL_BAD_MATCH: errName = "EGL_BAD_MATCH"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   834
		case EGL_BAD_NATIVE_PIXMAP: errName = "EGL_BAD_NATIVE_PIXMAP"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   835
		case EGL_BAD_NATIVE_WINDOW: errName = "EGL_BAD_NATIVE_WINDOW"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   836
		case EGL_BAD_PARAMETER: errName = "EGL_BAD_PARAMETER"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   837
		case EGL_BAD_SURFACE: errName = "EGL_BAD_SURFACE"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   838
		case EGL_CONTEXT_LOST: errName = "EGL_CONTEXT_LOST"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   839
		default: break; // Error is from a new version of EGL
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   840
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   841
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   842
	if (errName)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   843
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   844
		UTIL_TRACE( "  %s=%s (0x%x)", aTitle, errName, aEglError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   845
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   846
	else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   847
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   848
		UTIL_TRACE( "  %s=0x%x", aTitle, aEglError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   849
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   850
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   851
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   852
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   853
static void VgErrorPrint(char* aTitle, VGErrorCode aVgError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   854
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   855
	char* errName = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   856
	switch (aVgError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   857
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   858
		case VG_NO_ERROR: errName = "VG_NO_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   859
		case VG_BAD_HANDLE_ERROR: errName = "VG_BAD_HANDLE_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   860
		case VG_ILLEGAL_ARGUMENT_ERROR: errName = "VG_ILLEGAL_ARGUMENT_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   861
		case VG_OUT_OF_MEMORY_ERROR: errName = "VG_OUT_OF_MEMORY_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   862
		case VG_PATH_CAPABILITY_ERROR: errName = "VG_PATH_CAPABILITY_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   863
		case VG_UNSUPPORTED_IMAGE_FORMAT_ERROR: errName = "VG_UNSUPPORTED_IMAGE_FORMAT_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   864
		case VG_UNSUPPORTED_PATH_FORMAT_ERROR: errName = "VG_UNSUPPORTED_PATH_FORMAT_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   865
		case VG_IMAGE_IN_USE_ERROR: errName = "VG_IMAGE_IN_USE_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   866
		case VG_NO_CONTEXT_ERROR: errName = "VG_NO_CONTEXT_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   867
		default: break; // unknown error code from a new version of Open VG
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   868
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   869
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   870
	if (errName)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   871
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   872
		UTIL_TRACE( "  %s=%s (0x%x)", aTitle, errName, aVgError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   873
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   874
	else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   875
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   876
		UTIL_TRACE( "  %s=0x%x", aTitle, aVgError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   877
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   878
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   879
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   880
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   881
static void GlesErrorPrint(char* aTitle, GLenum aGlesError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   882
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   883
	char* errName = NULL;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   884
	switch (aGlesError)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   885
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   886
		case GL_NO_ERROR: errName = "GL_NO_ERROR"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   887
		case GL_INVALID_ENUM: errName = "GL_INVALID_ENUM"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   888
		case GL_INVALID_VALUE: errName = "GL_INVALID_VALUE"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   889
		case GL_INVALID_OPERATION: errName = "GL_INVALID_OPERATION"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   890
		case GL_STACK_OVERFLOW: errName = "GL_STACK_OVERFLOW"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   891
		case GL_STACK_UNDERFLOW: errName = "GL_STACK_UNDERFLOW"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   892
		case GL_OUT_OF_MEMORY: errName = "GL_OUT_OF_MEMORY"; break;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   893
		default: break; // unknown error code from a new version of Open GL ES
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   894
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   895
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   896
	if (errName)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   897
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   898
		UTIL_TRACE( "  %s=%s (0x%x)", aTitle, errName, aGlesError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   899
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   900
	else
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   901
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   902
		UTIL_TRACE( "  %s=0x%x", aTitle, aGlesError);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   903
		}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   904
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   905
#endif
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   906
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   907
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   908
// end of file vghwutils.cpp