vghwinterface/vghwutils/inc/vghwutils.h
author Faisal Memon <faisal.memon@nokia.com>
Fri, 22 Oct 2010 10:16:29 +0100
branchbug235_bringup_0
changeset 59 d9b81aebba7b
parent 51 4f400a6ea71f
permissions -rwxr-xr-x
Add mapping fix to guestegl and debugging (temporary)
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
#ifndef __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
    17
#define __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
    18
59
d9b81aebba7b Add mapping fix to guestegl and debugging (temporary)
Faisal Memon <faisal.memon@nokia.com>
parents: 51
diff changeset
    19
#define _DEBUG // FAISALMEMON temporary
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
    20
//  Include Files
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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 <e32base.h>	// CBase
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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 <EGL/egl.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 <VG/openvg.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 <GLES/gl.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
#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
    26
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class 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
    29
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// Virtual Graphics Hardware per thread data: TEglThreadState is concrete, MVgContext & MGlesContext are per API interfaces
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class 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
    32
class MGlesContext;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class MVgContext;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// data serialisation packages
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class OpenVgRFC;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class EglRFC;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class RemoteFunctionCall;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class RemoteFunctionCallData;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// tracing
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
#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
    43
	#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
    44
    #define UTIL_TRACE(fmt, args...) RDebug::Printf(fmt, ##args)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	#define VGHWPANIC_ASSERT(condition, panic) if (!(condition)) { VghwPanic(panic, #panic, #condition, __FILE__, __LINE__); }
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	#define VGHWPANIC_ASSERT_DEBUG(condition, panic) if (!(condition)) { VghwPanic(panic, #panic, #condition, __FILE__, __LINE__); }
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
#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
    48
    #define UTIL_TRACE(fmt, args...)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	#define VGHWPANIC_ASSERT(condition, panic) if (!(condition)) { VghwPanic(panic, NULL, NULL, NULL, __LINE__); }
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	#define VGHWPANIC_ASSERT_DEBUG(condition, panic)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
#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
    52
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// Simulator Virtual Graphics Hardware panic codes
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
typedef enum
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	EVghwPanicNoVideoChannel = 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
    58
	EVghwPanicOperationDataTooBig,
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	EVghwPanicDriverOpenError,
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	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
    61
	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
    62
	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
    63
	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
    64
	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
    65
	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
    66
	EVghwPanicSwitchFromVghwHeapParamIsVghwHeap, // 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
    67
	EVghwPanicGraphicsCreationLockDoesNotExist,
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	EVghwPanicExecuteCommandFailed,
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	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
    70
	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
    71
	EVghwPanicBadEglErrorValue,
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	EVghwPanicBadEglBoundApi,
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	} TVghwPanic;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// This panic function is exported to allow inline functions to use it
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
IMPORT_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
    77
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// Mix-in class: EGL support functions, including SgImage support, expected to be called by Open VG and 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
    80
class MEglManagementApi
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
public:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	virtual TBool EglImageOpenForVgImage(EGLImageKHR aImage, TSize& aSize, VGHandle& aVgHandle, TUint64& aSgImageId) = 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
    84
	virtual void EglImageClose(EGLImageKHR aImage) = 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
    85
	// ToDo add an API so that Open VG can query the size of the current Context's 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
    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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
typedef void (*ExtensionProcPointer)(...);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// Private interfaces for EGL to call into 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
    93
class MVgApiForEgl
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
public:
13
220791dae4c4 Add TPIP free guest egl
Faisal Memon <faisal.memon@nokia.com>
parents: 7
diff changeset
    96
	virtual ExtensionProcPointer guestGetVgProcAddress (const char *aProcName) = 0;
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
    97
	};
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// Private interfaces for EGL to call into Open GL ES 1.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
   101
class MGles11ApiForEgl
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
public:
13
220791dae4c4 Add TPIP free guest egl
Faisal Memon <faisal.memon@nokia.com>
parents: 7
diff changeset
   104
	virtual ExtensionProcPointer guestGetGles11ProcAddress (const char *aProcName) = 0;
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
   105
	};
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// Private interfaces for EGL to call into Open GL ES 2 
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class MGles2ApiForEgl
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
public:
13
220791dae4c4 Add TPIP free guest egl
Faisal Memon <faisal.memon@nokia.com>
parents: 7
diff changeset
   112
	virtual ExtensionProcPointer guestGetGles2ProcAddress (const char *aProcName) = 0;
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
   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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
/*
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
 VGHWUtils APIs are static for ease of use by the other Simulator 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
   118
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
 One (singleton) instance is created as Writeable Static Data when the DLL is 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
   120
 After initialization this will hold process-wide data - e.g. a memory heap for 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
   121
 to store local Symbian client state information.
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
 ToDo maybe make this a Symbian X class because it owns resources, but only as 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
   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
NONSHARABLE_CLASS(CVghwUtils): public CBase
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
    {
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	friend class TEglThreadState; // to limit visibility of DriverExecuteCommand
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
public:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// open Driver connection, create Memory Heap, etc...
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	IMPORT_C static void 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
   131
	IMPORT_C static void 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
   132
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	IMPORT_C static TInt MapToHWAddress(const TInt aChunkHandle, TUint32& aHWAddress);
30
f204b762818d Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 13
diff changeset
   134
	IMPORT_C static TInt 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
   135
	IMPORT_C static TInt 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
   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
	// VG Memory Pool APIs (One heap is created for the process, for use by all Simulator 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
   138
	IMPORT_C static TAny* 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
   139
	IMPORT_C static void 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
   140
	IMPORT_C static RHeap* 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
   141
	IMPORT_C static RHeap* 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
   142
	IMPORT_C static void 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
   143
	// handy function for Debug Asserts
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	static inline TBool UsingVghwHeap() { return &User::Heap() == 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
   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
	// if this thread does not have a state 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
   147
	IMPORT_C static TEglThreadState* 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
   148
	// current state object, if any, 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
   149
	IMPORT_C static TEglThreadState* 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
   150
	// current state object, if Open VG, for this thread (as tracked by EGL 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
   151
	IMPORT_C static MVgContext* 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
   152
	// current state object for Open GL ES 1.1, for this thread (as tracked by EGL 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
   153
	IMPORT_C static MGlesContext* 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
   154
	// 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
   155
	IMPORT_C static void 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
   156
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	IMPORT_C static void 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
   158
	IMPORT_C static MEglManagementApi* 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
   159
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// Private interfaces for EGL to call into Open GL ES and Open VG (avoids breaking DEF file compatibility) 
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	IMPORT_C static void 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
   162
	IMPORT_C static MVgApiForEgl* 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
   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
	IMPORT_C static void 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
   165
	IMPORT_C static MGles11ApiForEgl* 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
   166
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	IMPORT_C static void 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
   168
	IMPORT_C static MGles2ApiForEgl* 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
   169
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
protected:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	IMPORT_C static void 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
   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
private:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	inline static RGuestVideoDriver& 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
   175
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
private:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// everything is zeroed on construction, call Initialize() to prepare
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	volatile static TBool iInitialized;    // NB "volatile" used for thread safety in InitStaticse()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	static TInt           iVghwInitMutex;  // required for thread safety in Initialize()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// static member objects
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	static RGuestVideoDriver*   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
   183
	static RHeap*               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
   184
	static MEglManagementApi*   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
   185
	static MVgApiForEgl*        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
   186
	static MGles11ApiForEgl*    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
   187
	static MGles2ApiForEgl*     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
   188
	static TBool                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
   189
	static TBool                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
   190
	static TBool                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
   191
	};
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// Basic interface for sending GL ES 1.1 commands down to Host Open GL ES implementation - can be expanded later
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class MGlesContext
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
public:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// Execute Open GL ES 1.1 commands
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	virtual void ExecuteGlesCommand(RemoteFunctionCall& aGlesRequestData) = 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
   200
	virtual void ExecuteGlesFlushCommand() = 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
   201
	virtual void ExecuteGlesFinishCommand() = 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
   202
	// GLES 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
   203
	virtual void SetGlesError(GLenum aGlesErrorCode) = 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
   204
	virtual GLenum GlesError() = 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
   205
	// ToDo make context tracking work for VG & 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
   206
	virtual EGLContext GlesEglContext() = 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
   207
	};
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// Basic interface for sending VG commands down to Host Open VG implementation - can be expanded later
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
class MVgContext
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
public:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// Execute Open VG commands
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	virtual void ExecuteVgCommand(OpenVgRFC& aVgApiData) = 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
   216
	virtual void ExecuteVgFlushCommand() = 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
   217
	virtual void ExecuteVgFinishCommand() = 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
   218
	// 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
   219
	virtual void SetVgError(VGErrorCode aVgErrorCode) = 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
   220
	virtual VGErrorCode VgError() = 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
   221
	virtual EGLContext VgEglContext() = 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
   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
NONSHARABLE_CLASS(TEglThreadState) : public MGlesContext, public MVgContext
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	friend class CVghwUtils; // to manage creation / delete of per 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
   228
public:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// Execute EGL commands, and analyse for 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
   230
	IMPORT_C EGLBoolean 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
   231
	IMPORT_C EGLContext 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
   232
	IMPORT_C EGLSurface 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
   233
	// ToDo add static export for eglTerminate
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// Execute EGL commands whose return value cannot be tested for fail/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
   236
	inline void ExecuteEglNeverErrorCmd(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
   237
	// 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
   238
	inline void 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
   239
	inline void SetEglError(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
   240
	IMPORT_C EGLint 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
   241
	inline void SetEglBoundApi(EGLenum aEglBoundApi);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	inline EGLenum EglBoundApi();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	inline EGLint PeekEglError(); // reads DLL set error code (only)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// MGlesContext: Execute Open GL ES 1.1 commands & manage Open GL ES 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
   246
	virtual void 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
   247
	virtual void 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
   248
	virtual void 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
   249
	virtual void SetGlesError(GLenum aGlesErrorCode);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	virtual GLenum 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
   251
	virtual EGLContext 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
   252
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// MVgContext: Execute Open VG commands & manage 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
   254
	virtual void 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
   255
	virtual void 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
   256
	virtual void 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
   257
	virtual void SetVgError(VGErrorCode aVgErrorCode);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	virtual VGErrorCode 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
   259
	virtual EGLContext 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
   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
protected:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	static 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
   263
	void 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
   264
	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
   265
	~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
   266
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
private:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	GLenum 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
   269
	VGErrorCode 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
   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
private:
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// 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
   273
	EGLint       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
   274
	TBool        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
   275
	// currently bound graphics 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
   276
	EGLenum      iEglBoundApi;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	// Open VG context for 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
   279
	VGErrorCode  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
   280
	EGLContext  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
   281
	TBool        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
   282
	TBool        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
   283
	TBool        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
   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
	// Open GL ES 1.1 context for 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
   286
	GLenum       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
   287
	EGLContext  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
   288
	TBool        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
   289
	TBool        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
   290
	TBool        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
   291
	};
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
///////////////////////////////////////////////////////////////////////////////////////////////////
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// TVghwThreadState 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
   298
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
void TEglThreadState::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
   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
	UTIL_TRACE("  TVghwThreadState::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
   302
	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
   303
	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
   304
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
void TEglThreadState::SetEglError(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
   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("  TVghwThreadState::SetEglError error=0x%x", 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
   310
	VGHWPANIC_ASSERT_DEBUG((aEglError >= EGL_SUCCESS) && (aEglError <= 0x301F), EVghwPanicBadEglErrorValue);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	iEglError = 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
   312
	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
   313
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
EGLint TEglThreadState::PeekEglError() // reads DLL set error code
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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 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
   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
void TEglThreadState::SetEglBoundApi(EGLenum aEglBoundApi)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	VGHWPANIC_ASSERT_DEBUG((aEglBoundApi == EGL_OPENGL_ES_API) || (aEglBoundApi == EGL_OPENVG_API), EVghwPanicBadEglBoundApi);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	iEglBoundApi = aEglBoundApi;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	}
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
EGLenum TEglThreadState::EglBoundApi()
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
	return iEglBoundApi;
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
// Execute EGL Command simple variants
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to 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
void TEglThreadState::ExecuteEglNeverErrorCmd(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
   337
	{ // for EGL commands which cannot have a host 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
   338
	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
   339
	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
   340
	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
   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
#endif  // __VGHWUTILS_H__