Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - HW requirements for Advanced Graphics: (4 Items)
   
HW requirements for Advanced Graphics  
Hi. Can I run Advanced Graphics on unacellerated hardware(amd lx800)? create surface function return -1.
Re: HW requirements for Advanced Graphics  
Hi Nick,

Can you provide more details (code samples?) on what you are trying to do?
Are you using the driver for the LX800 or one of our generic drivers?

It should be possible to run advanced graphics on this platform.

Thanks
Mike
Re: HW requirements for Advanced Graphics  
I use generic driver. Photon works fine. 
I follow Advanced Graphics documentation:

#include <cstdlib>
#include <iostream>
#include <gf/gf.h>
#include <stdio.h>

int main(int argc, char *argv[]) {


	gf_dev_t gdev;
	gf_dev_info_t gdev_info;
	gf_display_t display;
	gf_display_info_t display_info;
	if (gf_dev_attach(&gdev, GF_DEVICE_INDEX(0), &gdev_info) != GF_ERR_OK) {
	printf("gf_dev_attach() failed\n");
	return (-1);
	}
	printf("Number of displays: %d\n",gdev_info.ndisplays);
	for (int i = 0; i < gdev_info.ndisplays; i++ )
	{
	printf("Display %d: ", i);
	if (gf_display_attach(&display, gdev, i, &display_info) == GF_ERR_OK) {
	printf("%dX%d, refresh = %dHz\n", display_info.xres,
	display_info.yres, display_info.refresh);
	printf("Number of layers: %d\n", display_info.nlayers);
	} else {
	printf("gf_display_attach() failed\n");
	}
	}


	if (display != NULL) {
	gf_layer_t layer;
	if (gf_layer_attach(&layer, display, display_info.main_layer_index, 0) == GF_ERR_OK)
	{
		printf("gf_layer_attach() success\n");
	}
	} else {
	    printf("gf_layer_attach() failed\n");
	}
}

gf_dev_attach is ok. It init gdev_info and I see display number and refresh rate, but  gf_layer_attach return error.

Re: HW requirements for Advanced Graphics  
What does the app output for number of layers?

Initially you said create_surface() fail - just to confirm is it layer_attach() or create_surface()?

Which version of the OS are you running?  Are  you able to run any of the sample AGTDK apps that are provided?

There is a driver for the LX800 available with the BSP (devg-lx800.so) - have you tried this?