guestrendering/guestegl/src/guestegl.cpp
branchbug235_bringup_0
changeset 42 2865e884ac3b
parent 41 2110890eb027
parent 32 b23067389fdf
child 44 02fdf3459799
equal deleted inserted replaced
41:2110890eb027 42:2865e884ac3b
  1203     TUint32 chunkHWBase = 0;
  1203     TUint32 chunkHWBase = 0;
  1204     (void)CVghwUtils::MapToHWAddress(aSurfaceInfo.iChunk.Handle(), chunkHWBase);
  1204     (void)CVghwUtils::MapToHWAddress(aSurfaceInfo.iChunk.Handle(), chunkHWBase);
  1205     // FAISALMEMON write code to handle errors in the above function
  1205     // FAISALMEMON write code to handle errors in the above function
  1206     EGL_TRACE("CGuestEGL::EglInternalFunction_CreateSurface AFTER VGHWUtils::MapToHWAddress");
  1206     EGL_TRACE("CGuestEGL::EglInternalFunction_CreateSurface AFTER VGHWUtils::MapToHWAddress");
  1207 
  1207 
  1208 	TUint32 frameBufferBaseAddress(0);
  1208 	TUint32 surfaceBufferBaseAddress(0);
  1209 	(void)CVghwUtils::GetFrameBufferBaseAddress(frameBufferBaseAddress);
  1209 	(void)CVghwUtils::GetSurfaceBufferBaseAddress(surfaceBufferBaseAddress);
  1210 	EGL_TRACE("CPlatsimEGL::egliCreateSurface AFTER VGHWUtils::MapToHWAddress");
  1210 	EGL_TRACE("CPlatsimEGL::egliCreateSurface AFTER VGHWUtils::MapToHWAddress");
  1211 
  1211 
  1212     /* Store the pointer to the pixel data */
  1212     /* Store the pointer to the pixel data */
  1213     aSurfaceInfo.iBuffer0 = aSurfaceInfo.iChunk.Base() + offsetToFirstBuffer;
  1213     aSurfaceInfo.iBuffer0 = aSurfaceInfo.iChunk.Base() + offsetToFirstBuffer;
  1214     aSurfaceInfo.iBuffer1 = aSurfaceInfo.iChunk.Base() + offsetToSecondBuffer;
  1214     aSurfaceInfo.iBuffer1 = aSurfaceInfo.iChunk.Base() + offsetToSecondBuffer;
  1215 
  1215 
  1216     aSurfaceInfo.iBuffer0Index = (chunkHWBase + offsetToFirstBuffer) -  frameBufferBaseAddress;
  1216     aSurfaceInfo.iBuffer0Index = (chunkHWBase + offsetToFirstBuffer) -  surfaceBufferBaseAddress;
  1217     aSurfaceInfo.iBuffer1Index = (chunkHWBase + offsetToSecondBuffer) - frameBufferBaseAddress;
  1217     aSurfaceInfo.iBuffer1Index = (chunkHWBase + offsetToSecondBuffer) - surfaceBufferBaseAddress;
  1218     
  1218     
  1219     aSurfaceInfo.iFrontBuffer = 0; // Assume host peer also starts rendering buffer 0 as its front buffer
  1219     aSurfaceInfo.iFrontBuffer = 0; // Assume host peer also starts rendering buffer 0 as its front buffer
  1220     EGL_TRACE("CGuestEGL::EglInternalFunction_CreateSurface %u %x %x %x %x",chunkHWBase, offsetToFirstBuffer, offsetToSecondBuffer,
  1220     EGL_TRACE("CGuestEGL::EglInternalFunction_CreateSurface %u %x %x %x %x",chunkHWBase, offsetToFirstBuffer, offsetToSecondBuffer,
  1221     		aSurfaceInfo.iBuffer0Index,
  1221     		aSurfaceInfo.iBuffer0Index,
  1222     		aSurfaceInfo.iBuffer1Index);
  1222     		aSurfaceInfo.iBuffer1Index);