Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: AM3358
Hi, I have what seems to be a common problem -- the sample QT applications have red and blue swapped on an AM3358 system running with EGLFS.
At the recommendation of some other posts on this forum, I have edited my /etc/powervr.ini file to look like this:
[default] #default library without double buffering: #WindowSystem=libpvrDRMWSEGL_FRONT.so #alternative library, slower but with double buffering WindowSystem=libpvrDRMWSEGL.so #DisableHWTQTextureUpload=1 DisableHWTQTextureUpload=0 ParamBufferSize=1677216 DefaultPixelFormat=RGB565
And my /etc/profile.d/qt_env.sh looks like this:
#!/bin/sh logger qt_env.sh is being run export QSG_INFO=1 export QT_QPA_EGLFS_DEBUG=1 export QT_QPA_EGLFS_HIDECURSOR=1 export QT_QPA_EGLFS_INTEGRATION=none export QT_QPA_EGLFS_PHYSICAL_WIDTH=154 export QT_QPA_EGLFS_PHYSICAL_HEIGHT=86 libevdev-tweak-device --abs ABS_MT_POSITION_X --max 799 /dev/input/event0 libevdev-tweak-device --abs ABS_MT_POSITION_Y --max 479 /dev/input/event0
After a reboot I can confirm that the environment variables are being set, but EGLFS still seems to be selecting RGB888 mode. Any advice?
# env
SSH_CLIENT=10.92.1.103 58932 22
MAIL=/var/mail/root
USER=root
SHLVL=1
HOME=/root
SSH_TTY=/dev/pts/0
QT_QPA_EGLFS_DEBUG=1
PAGER=/bin/more
PS1=#
QT_QPA_EGLFS_PHYSICAL_HEIGHT=86
QSG_INFO=1
LOGNAME=root
QT_QPA_EGLFS_INTEGRATION=none
TERM=xterm
QT_QPA_EGLFS_HIDECURSOR=1
PATH=/bin:/sbin:/usr/bin:/usr/sbin
SHELL=/bin/sh
QT_QPA_EGLFS_PHYSICAL_WIDTH=154
PWD=/root
SSH_CONNECTION=10.92.1.103 58932 10.92.1.107 22
EDITOR=/bin/vi
# /usr/lib/qt/examples/quick/demos/photosurface/photosurface
PVR: Hint: Setting ParamBufferSize to 1677216
PVR: Hint: Setting WindowSystem to libpvrDRMWSEGL.so
mode for connector 20 is 800x480
mode for CRTC of connector 20 is 800x480
DRM SET CRTC: index: 0 fd: 6, crtc: 12, fb: 18, conn: 14, mode: 800x480
qt.scenegraph.general: threaded render loop
qt.scenegraph.general: Using sg animation driver
qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms
PVR: Hint: Setting DisableHWTQTextureUpload to 0
Created context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile)) with config:
EGL_BUFFER_SIZE: 32
EGL_ALPHA_SIZE: 8
EGL_BLUE_SIZE: 8
EGL_GREEN_SIZE: 8
EGL_RED_SIZE: 8
EGL_DEPTH_SIZE: 24
EGL_STENCIL_SIZE: 8
EGL_CONFIG_CAVEAT: 12344
EGL_CONFIG_ID: 8
EGL_LEVEL: 0
EGL_MAX_PBUFFER_HEIGHT: 2048
EGL_MAX_PBUFFER_PIXELS: 4194304
EGL_MAX_PBUFFER_WIDTH: 2048
EGL_NATIVE_RENDERABLE: 0
EGL_NATIVE_VISUAL_ID: 0
EGL_NATIVE_VISUAL_TYPE: 0
EGL_SAMPLES: 0
EGL_SAMPLE_BUFFERS: 0
EGL_SURFACE_TYPE: 5
EGL_TRANSPARENT_TYPE: 12344
EGL_TRANSPARENT_BLUE_VALUE: 0
EGL_TRANSPARENT_GREEN_VALUE: 0
EGL_TRANSPARENT_RED_VALUE: 0
EGL_BIND_TO_TEXTURE_RGB: 0
EGL_BIND_TO_TEXTURE_RGBA: 0
EGL_MIN_SWAP_INTERVAL: 0
EGL_MAX_SWAP_INTERVAL: 1
qt.scenegraph.general: Using sg animation driver
qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms
qt.scenegraph.general: texture atlas dimensions: 1024x512
qt.scenegraph.general: R/G/B/A Buffers: 8 8 8 8
qt.scenegraph.general: Depth Buffer: 24
qt.scenegraph.general: Stencil Buffer: 8
qt.scenegraph.general: Samples: 0
qt.scenegraph.general: GL_VENDOR: Imagination Technologies
qt.scenegraph.general: GL_RENDERER: PowerVR SGX 530
qt.scenegraph.general: GL_VERSION: OpenGL ES 2.0 build 1.9@2253347
qt.scenegraph.general: GL_EXTENSIONS: GL_EXT_discard_framebuffer GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_shader_texture_lod GL_IMG_read_format GL_OES_EGL_image_external GL_OES_egl_sync GL_IMG_texture_format_BGRA8888 GL_OES_depth24 GL_OES_compressed_ETC1_RGB8_texture GL_OES_fragment_precision_high GL_OES_rgb8_rgba8 GL_OES_get_program_binary GL_EXT_texture_format_BGRA8888 GL_IMG_program_binary GL_IMG_multisampled_render_to_texture GL_OES_element_index_uint GL_IMG_shader_binary GL_TI_image_external_raw_video GL_OES_mapbuffer GL_OES_required_internalformat GL_IMG_texture_npot GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_texture_float GL_IMG_texture_compression_pvrtc GL_OES_vertex_array_object GL_OES_texture_half_float GL_OES_standard_derivatives GL_IMG_uniform_buffer_object GL_EXT_multi_draw_arrays
qt.scenegraph.general: Max Texture Size: 2048
qt.scenegraph.general: Debug context: false
Thanks,
Isaac



