# Does PVRCarbon support EGL PIXMAP surfaces on the targets? Is there any workaround so that I get the frames rendered from PIXMAP to be recorded by PVRCARBON?

**URL:** https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152
**Category:** Uncategorized
**Created:** [April 7, 2025, 10:52am UTC](https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152 "2025-04-07T10:52:11Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sandy](https://forums.imgtec.com/u/sandy)
#### Post date: [April 7, 2025, 10:52am UTC](https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152/1 "2025-04-07T10:52:11Z")

</div>

Does PVRCarbon support EGL PIXMAP surfaces on the targets ?  
Please anyone support me. It is bit urgent.

---

<div class="post-metadata">

### Author: ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)
#### Post date: [April 8, 2025, 10:05am UTC](https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152/2 "2025-04-08T10:05:14Z")

</div>

Hi sandy,

Thanks for your message and welcome to the PowerVR Developer Forum!

Could you please provide the Pixmap native’s type?

Also if you could please provide the information below it would be helpful:

- GPU you are working with.
- SoC model if you are working with an embeded system.
- Operating system name and version.

Best regards,  
Alejandro

---

<div class="post-metadata">

### Author: ![sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sandy](https://forums.imgtec.com/u/sandy)
#### Post date: [April 22, 2025, 10:15am UTC](https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152/3 "2025-04-22T10:15:46Z")

</div>

Hi Alejandro,

Pardon me for the late reply.

Thanks a lot for your response.

Below are the details:  
_Pixmap native’s type_ : _Please refer to EGL extensions below_ (if you still need more information I can give please let me know)  
**GPU** : Imagination PowerVR Rogue GE7800  
**SoC** : Renesas R-CAR M3N  
(Link: [R-Car-M3Ne - R-Car M3N/M3Ne/M3Ne-2G Automotive System-on-Chip (SoC) Ideal for Medium-Class Automotive Computing Systems](https://www.renesas.com/en/products/automotive-products/automotive-system-chips-socs/r-car-m3ne-r-car-m3nm3nem3ne-2g-automotive-system-chip-soc-ideal-medium-class-automotive-computing-systems))  
**Operating system** : Linux xxxxx-xxxxxxxxx-ucap 4.14.0-yocto-standard #17 SMP PREEMPT Mon Nov 29 03:23:40 UTC 2021 aarch64 GNU/Linux

Please find below the EGL query details:  
##########################################################################  
EGL initialized: version 1.4  
EGL\_KHR\_surfaceless\_context is supported.  
EGL context created successfully.  
OpenGL Vendor: Imagination Technologies  
OpenGL Renderer: PowerVR Rogue GE7800  
OpenGL Version: OpenGL ES 3.2 build 1.9@4971894  
GLSL Version: OpenGL ES GLSL ES 3.20 build 1.9@4971894  
Using OpenGL ES 3.0…

EGL Version: 1.4 build 1.9@4971894  
EGL Vendor: Imagination Technologies

EGL Vendor: Imagination Technologies  
EGL Renderer: PowerVR Rogue GE7800

EGL Renderer: PowerVR Rogue GE7800

EGL Client APIs: OpenGL\_ES

EGL Extensions: EGL\_KHR\_image EGL\_KHR\_image\_base EGL\_KHR\_gl\_texture\_2D\_image EGL\_KHR\_gl\_texture\_cubemap\_image EGL\_KHR\_gl\_renderbuffer\_image EGL\_IMG\_cl\_image EGL\_KHR\_fence\_sync EGL\_KHR\_wait\_sync EGL\_EXT\_pixel\_format\_float EGL\_EXT\_create\_context\_robustness EGL\_IMG\_image\_plane\_attribs EGL\_EXT\_swap\_buffers\_with\_damage EGL\_KHR\_swap\_buffers\_with\_damage EGL\_KHR\_partial\_update EGL\_EXT\_buffer\_age EGL\_EXT\_image\_dma\_buf\_import EGL\_EXT\_yuv\_surface EGL\_IMG\_context\_priority EGL\_KHR\_create\_context EGL\_KHR\_surfaceless\_context EGL\_REL\_get\_spm\_event EGL\_REL\_create\_context EGL\_REL\_query\_context EGL\_REL\_get\_meminfo EGL\_REL\_get\_pds\_fragbuffer\_info EGL\_WL\_bind\_wayland\_display  
##########################################################################

Best Regards,  
Sandeep

---

<div class="post-metadata">

### Author: ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)
#### Post date: [April 22, 2025, 11:13am UTC](https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152/4 "2025-04-22T11:13:16Z")

</div>

Hi Sandeep,

Thanks for your message and for the information provided.

The pixmap native format is the format of the image provided by the native windowing system, I would need you please to provide that information.

Best regards,  
Alejandro

---

<div class="post-metadata">

### Author: ![sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sandy](https://forums.imgtec.com/u/sandy)
#### Post date: [April 22, 2025, 1:06pm UTC](https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152/5 "2025-04-22T13:06:20Z")

</div>

Hi Alejandro,  
is the below information sufficient to find out native pixmap type ?  
I just collected it directly form my target ECU/board . This information looks like my system support DRM/KMS . **However we are not sure**

Do you have any other suggestion to figure out native pix map type? if so kindly suggest.

Looking forward for your response . Thank you in advance.

root@valeo-r8a77965-ucap:~# ls -l /dev/dri/  
drwxr-xr-x 2 root root 100 Apr 9 16:25 by-path  
crw-rw---- 1 root video 226, 0 Apr 9 16:25 card0  
crw-rw---- 1 root video 226, 1 Apr 9 16:25 card1  
crw-rw---- 1 root video 226, 128 Apr 9 16:25 renderD128

---

<div class="post-metadata">

### Author: ![sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sandy](https://forums.imgtec.com/u/sandy)
#### Post date: [April 22, 2025, 1:27pm UTC](https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152/6 "2025-04-22T13:27:30Z")

</div>

Hi Alejandro,

Please refer to the sample code snippet below that indicate usage of **eglCreatePixmapSurface()**

Hope this helps.

**Please share your thoughts**. Thanks for the support.

################################################################

```
EGLNativePixmapTypeREL egl_pixmap[RENDER_IMAGE_COUNT];

..
egl_display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
CHECK(egl_display != EGL_NO_DISPLAY, ERR_EXCEPTION_RAISED);

..
 EGLint config_result;
EGLint config_count;
config_result = eglChooseConfig(egl_display, config_attr, &egl_config, 1, &config_count);

....
**** few sanity checks
....

for(uint8_t i = 0; i < RENDER_IMAGE_COUNT; i++)
{    

egl_pixmap[i].width = RENDER_IMAGE_WIDTH;
egl_pixmap[i].height = RENDER_IMAGE_HEIGHT;
egl_pixmap[i].stride = RENDER_IMAGE_STRIDE;
egl_pixmap[i].usage = 0;
egl_pixmap[i].format = EGL_NATIVE_PIXFORMAT_RGB565_REL;
egl_pixmap[i].pixelData = renderImageVirtAddr[i];

egl_surface[i] = eglCreatePixmapSurface(egl_display, egl_config, &egl_pixmap[i], NULL);
    
..
}//for 

```

################################################################

Thanks & Regards,  
Sandeep

---

<div class="post-metadata">

### Author: ![AlejandroC](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@AlejandroC](https://forums.imgtec.com/u/AlejandroC)
#### Post date: [April 28, 2025, 10:48am UTC](https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152/7 "2025-04-28T10:48:48Z")

</div>

Hi sandy,

After asking the Tools Team, they mentioned the last release of PVRCarbon (R24.2) had implemented support for Renesas’ pixmaps, being it possible to record and play them back.

However, they need to be used as EGL image targets and not as surface inputs for eglMakeCurrent, so depending on your implementation it can work or not.

Best regards,  
Alejandro

---

<div class="post-metadata">

### Author: ![sandy](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sandy](https://forums.imgtec.com/u/sandy)
#### Post date: [April 29, 2025, 9:20am UTC](https://forums.imgtec.com/t/does-pvrcarbon-support-egl-pixmap-surfaces-on-the-targets-is-there-any-workaround-so-that-i-get-the-frames-rendered-from-pixmap-to-be-recorded-by-pvrcarbon/4152/8 "2025-04-29T09:20:34Z")

</div>

Hi Alejandro,

Thanks a lot for the update and your support.  
I will check on this and get back to you.

Best Regards,  
Sandeep
