diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/modules/engines/psl1ght | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/modules/engines/psl1ght')
7 files changed, 1732 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/psl1ght/Evas_Engine_PSL1GHT.h b/libraries/evas/src/modules/engines/psl1ght/Evas_Engine_PSL1GHT.h new file mode 100644 index 0000000..f1d5636 --- /dev/null +++ b/libraries/evas/src/modules/engines/psl1ght/Evas_Engine_PSL1GHT.h | |||
@@ -0,0 +1,16 @@ | |||
1 | #ifndef _EVAS_ENGINE_PSL1GHT_H | ||
2 | #define _EVAS_ENGINE_PSL1GHT_H | ||
3 | |||
4 | typedef struct _Evas_Engine_Info_PSL1GHT Evas_Engine_Info_PSL1GHT; | ||
5 | |||
6 | struct _Evas_Engine_Info_PSL1GHT | ||
7 | { | ||
8 | /* PRIVATE - don't mess with this baby or evas will poke its tongue out */ | ||
9 | /* at you and make nasty noises */ | ||
10 | Evas_Engine_Info magic; | ||
11 | |||
12 | /* non-blocking or blocking mode */ | ||
13 | Evas_Engine_Render_Mode render_mode; | ||
14 | }; | ||
15 | #endif | ||
16 | |||
diff --git a/libraries/evas/src/modules/engines/psl1ght/Makefile.am b/libraries/evas/src/modules/engines/psl1ght/Makefile.am new file mode 100644 index 0000000..92ccea7 --- /dev/null +++ b/libraries/evas/src/modules/engines/psl1ght/Makefile.am | |||
@@ -0,0 +1,47 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | AM_CPPFLAGS = \ | ||
5 | -I. \ | ||
6 | -I$(top_srcdir)/src/lib \ | ||
7 | -I$(top_srcdir)/src/lib/include \ | ||
8 | -I$(top_srcdir)/src/modules/engines \ | ||
9 | @FREETYPE_CFLAGS@ \ | ||
10 | @PIXMAN_CFLAGS@ \ | ||
11 | @EINA_CFLAGS@ \ | ||
12 | @evas_engine_psl1ght_cflags@ | ||
13 | |||
14 | if BUILD_ENGINE_PSL1GHT | ||
15 | |||
16 | PSL1GHT_SOURCES = \ | ||
17 | evas_engine.c \ | ||
18 | rsxutil.c | ||
19 | |||
20 | PSL1GHT_LIBADD = @evas_engine_psl1ght_libs@ | ||
21 | |||
22 | |||
23 | includes_HEADERS = Evas_Engine_PSL1GHT.h | ||
24 | includesdir = $(includedir)/evas-@VMAJ@ | ||
25 | |||
26 | if !EVAS_STATIC_BUILD_PSL1GHT | ||
27 | |||
28 | pkgdir = $(libdir)/evas/modules/engines/psl1ght/$(MODULE_ARCH) | ||
29 | pkg_LTLIBRARIES = module.la | ||
30 | module_la_SOURCES = $(PSL1GHT_SOURCES) | ||
31 | module_la_LIBADD = @EINA_LIBS@ $(PSL1GHT_LIBADD) $(top_builddir)/src/lib/libevas.la | ||
32 | module_la_LDFLAGS = -module -avoid-version | ||
33 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
34 | |||
35 | else | ||
36 | |||
37 | noinst_LTLIBRARIES = libevas_engine_psl1ght.la | ||
38 | |||
39 | libevas_engine_psl1ght_la_SOURCES = $(PSL1GHT_SOURCES) | ||
40 | libevas_engine_psl1ght_la_LIBADD = $(PSL1GHT_LIBADD) | ||
41 | |||
42 | endif | ||
43 | endif | ||
44 | |||
45 | EXTRA_DIST = \ | ||
46 | evas_engine.h \ | ||
47 | rsxutil.h | ||
diff --git a/libraries/evas/src/modules/engines/psl1ght/Makefile.in b/libraries/evas/src/modules/engines/psl1ght/Makefile.in new file mode 100644 index 0000000..6b553ac --- /dev/null +++ b/libraries/evas/src/modules/engines/psl1ght/Makefile.in | |||
@@ -0,0 +1,810 @@ | |||
1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
6 | # Inc. | ||
7 | # This Makefile.in is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy and/or distribute it, | ||
9 | # with or without modifications, as long as this notice is preserved. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | # PARTICULAR PURPOSE. | ||
15 | |||
16 | @SET_MAKE@ | ||
17 | |||
18 | |||
19 | VPATH = @srcdir@ | ||
20 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
21 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
22 | pkglibdir = $(libdir)/@PACKAGE@ | ||
23 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
24 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
25 | install_sh_DATA = $(install_sh) -c -m 644 | ||
26 | install_sh_PROGRAM = $(install_sh) -c | ||
27 | install_sh_SCRIPT = $(install_sh) -c | ||
28 | INSTALL_HEADER = $(INSTALL_DATA) | ||
29 | transform = $(program_transform_name) | ||
30 | NORMAL_INSTALL = : | ||
31 | PRE_INSTALL = : | ||
32 | POST_INSTALL = : | ||
33 | NORMAL_UNINSTALL = : | ||
34 | PRE_UNINSTALL = : | ||
35 | POST_UNINSTALL = : | ||
36 | build_triplet = @build@ | ||
37 | host_triplet = @host@ | ||
38 | subdir = src/modules/engines/psl1ght | ||
39 | DIST_COMMON = $(am__includes_HEADERS_DIST) $(srcdir)/Makefile.am \ | ||
40 | $(srcdir)/Makefile.in | ||
41 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
42 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
43 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
44 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
45 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
46 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
47 | $(top_srcdir)/m4/evas_check_engine.m4 \ | ||
48 | $(top_srcdir)/m4/evas_check_loader.m4 \ | ||
49 | $(top_srcdir)/m4/evas_converter.m4 \ | ||
50 | $(top_srcdir)/m4/evas_dither.m4 \ | ||
51 | $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
52 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
53 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
54 | $(top_srcdir)/configure.ac | ||
55 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
56 | $(ACLOCAL_M4) | ||
57 | mkinstalldirs = $(install_sh) -d | ||
58 | CONFIG_HEADER = $(top_builddir)/config.h | ||
59 | CONFIG_CLEAN_FILES = | ||
60 | CONFIG_CLEAN_VPATH_FILES = | ||
61 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
62 | am__vpath_adj = case $$p in \ | ||
63 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
64 | *) f=$$p;; \ | ||
65 | esac; | ||
66 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
67 | am__install_max = 40 | ||
68 | am__nobase_strip_setup = \ | ||
69 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
70 | am__nobase_strip = \ | ||
71 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
72 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
73 | for p in $$list; do echo "$$p $$p"; done | \ | ||
74 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
75 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
76 | if (++n[$$2] == $(am__install_max)) \ | ||
77 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
78 | END { for (dir in files) print dir, files[dir] }' | ||
79 | am__base_list = \ | ||
80 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
81 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
82 | am__installdirs = "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)" | ||
83 | LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES) | ||
84 | am__DEPENDENCIES_1 = | ||
85 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_TRUE@libevas_engine_psl1ght_la_DEPENDENCIES = $(am__DEPENDENCIES_1) | ||
86 | am__libevas_engine_psl1ght_la_SOURCES_DIST = evas_engine.c rsxutil.c | ||
87 | @BUILD_ENGINE_PSL1GHT_TRUE@am__objects_1 = evas_engine.lo rsxutil.lo | ||
88 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_TRUE@am_libevas_engine_psl1ght_la_OBJECTS = $(am__objects_1) | ||
89 | libevas_engine_psl1ght_la_OBJECTS = \ | ||
90 | $(am_libevas_engine_psl1ght_la_OBJECTS) | ||
91 | AM_V_lt = $(am__v_lt_$(V)) | ||
92 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
93 | am__v_lt_0 = --silent | ||
94 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_TRUE@am_libevas_engine_psl1ght_la_rpath = | ||
95 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@module_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ | ||
96 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@ $(top_builddir)/src/lib/libevas.la | ||
97 | am__module_la_SOURCES_DIST = evas_engine.c rsxutil.c | ||
98 | @BUILD_ENGINE_PSL1GHT_TRUE@am__objects_2 = module_la-evas_engine.lo \ | ||
99 | @BUILD_ENGINE_PSL1GHT_TRUE@ module_la-rsxutil.lo | ||
100 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@am_module_la_OBJECTS = $(am__objects_2) | ||
101 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
102 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
103 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
104 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
105 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@am_module_la_rpath = -rpath \ | ||
106 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@ $(pkgdir) | ||
107 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
108 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
109 | am__depfiles_maybe = depfiles | ||
110 | am__mv = mv -f | ||
111 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
112 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
113 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
114 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
115 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
116 | $(AM_CFLAGS) $(CFLAGS) | ||
117 | AM_V_CC = $(am__v_CC_$(V)) | ||
118 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
119 | am__v_CC_0 = @echo " CC " $@; | ||
120 | AM_V_at = $(am__v_at_$(V)) | ||
121 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_at_0 = @ | ||
123 | CCLD = $(CC) | ||
124 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
125 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
126 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
127 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
128 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
129 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
130 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
131 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
132 | am__v_GEN_0 = @echo " GEN " $@; | ||
133 | SOURCES = $(libevas_engine_psl1ght_la_SOURCES) $(module_la_SOURCES) | ||
134 | DIST_SOURCES = $(am__libevas_engine_psl1ght_la_SOURCES_DIST) \ | ||
135 | $(am__module_la_SOURCES_DIST) | ||
136 | am__includes_HEADERS_DIST = Evas_Engine_PSL1GHT.h | ||
137 | HEADERS = $(includes_HEADERS) | ||
138 | ETAGS = etags | ||
139 | CTAGS = ctags | ||
140 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
141 | ACLOCAL = @ACLOCAL@ | ||
142 | ALLOCA = @ALLOCA@ | ||
143 | AMTAR = @AMTAR@ | ||
144 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
145 | AR = @AR@ | ||
146 | AS = @AS@ | ||
147 | AUTOCONF = @AUTOCONF@ | ||
148 | AUTOHEADER = @AUTOHEADER@ | ||
149 | AUTOMAKE = @AUTOMAKE@ | ||
150 | AWK = @AWK@ | ||
151 | CC = @CC@ | ||
152 | CCDEPMODE = @CCDEPMODE@ | ||
153 | CFLAGS = @CFLAGS@ | ||
154 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
155 | CHECK_LIBS = @CHECK_LIBS@ | ||
156 | CPP = @CPP@ | ||
157 | CPPFLAGS = @CPPFLAGS@ | ||
158 | CXX = @CXX@ | ||
159 | CXXCPP = @CXXCPP@ | ||
160 | CXXDEPMODE = @CXXDEPMODE@ | ||
161 | CXXFLAGS = @CXXFLAGS@ | ||
162 | CYGPATH_W = @CYGPATH_W@ | ||
163 | DEFS = @DEFS@ | ||
164 | DEPDIR = @DEPDIR@ | ||
165 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
166 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
167 | DLLTOOL = @DLLTOOL@ | ||
168 | DSYMUTIL = @DSYMUTIL@ | ||
169 | DUMPBIN = @DUMPBIN@ | ||
170 | ECHO_C = @ECHO_C@ | ||
171 | ECHO_N = @ECHO_N@ | ||
172 | ECHO_T = @ECHO_T@ | ||
173 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
174 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
175 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
176 | EDB_LIBS = @EDB_LIBS@ | ||
177 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
178 | EDJE_LIBS = @EDJE_LIBS@ | ||
179 | EET_CFLAGS = @EET_CFLAGS@ | ||
180 | EET_LIBS = @EET_LIBS@ | ||
181 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
182 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
183 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
184 | EGREP = @EGREP@ | ||
185 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
186 | EINA_LIBS = @EINA_LIBS@ | ||
187 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
188 | EVAS_LIBS = @EVAS_LIBS@ | ||
189 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
190 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
191 | EVIL_LIBS = @EVIL_LIBS@ | ||
192 | EXEEXT = @EXEEXT@ | ||
193 | FGREP = @FGREP@ | ||
194 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
195 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
196 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
197 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
198 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
199 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
200 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
201 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
202 | GREP = @GREP@ | ||
203 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
204 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
205 | INSTALL = @INSTALL@ | ||
206 | INSTALL_DATA = @INSTALL_DATA@ | ||
207 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
208 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
209 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
210 | LD = @LD@ | ||
211 | LDFLAGS = @LDFLAGS@ | ||
212 | LIBOBJS = @LIBOBJS@ | ||
213 | LIBS = @LIBS@ | ||
214 | LIBTOOL = @LIBTOOL@ | ||
215 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
216 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
217 | LIPO = @LIPO@ | ||
218 | LN_S = @LN_S@ | ||
219 | LTLIBOBJS = @LTLIBOBJS@ | ||
220 | MAKEINFO = @MAKEINFO@ | ||
221 | MKDIR_P = @MKDIR_P@ | ||
222 | MODULE_ARCH = @MODULE_ARCH@ | ||
223 | NM = @NM@ | ||
224 | NMEDIT = @NMEDIT@ | ||
225 | OBJC = @OBJC@ | ||
226 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
227 | OBJCFLAGS = @OBJCFLAGS@ | ||
228 | OBJDUMP = @OBJDUMP@ | ||
229 | OBJEXT = @OBJEXT@ | ||
230 | OTOOL = @OTOOL@ | ||
231 | OTOOL64 = @OTOOL64@ | ||
232 | PACKAGE = @PACKAGE@ | ||
233 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
234 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
235 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
236 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
237 | PACKAGE_URL = @PACKAGE_URL@ | ||
238 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
239 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
240 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
241 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
242 | PKG_CONFIG = @PKG_CONFIG@ | ||
243 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
244 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
245 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
246 | PNG_LIBS = @PNG_LIBS@ | ||
247 | RANLIB = @RANLIB@ | ||
248 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
249 | SDL_LIBS = @SDL_LIBS@ | ||
250 | SED = @SED@ | ||
251 | SET_MAKE = @SET_MAKE@ | ||
252 | SHELL = @SHELL@ | ||
253 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
254 | STRIP = @STRIP@ | ||
255 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
256 | SVG_LIBS = @SVG_LIBS@ | ||
257 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
258 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
259 | VERSION = @VERSION@ | ||
260 | VMAJ = @VMAJ@ | ||
261 | WIN32_CFLAGS = @WIN32_CFLAGS@ | ||
262 | WIN32_CPPFLAGS = @WIN32_CPPFLAGS@ | ||
263 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
264 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
265 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
266 | XCB_LIBS = @XCB_LIBS@ | ||
267 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
268 | XEXT_LIBS = @XEXT_LIBS@ | ||
269 | XMKMF = @XMKMF@ | ||
270 | X_CFLAGS = @X_CFLAGS@ | ||
271 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
272 | X_LIBS = @X_LIBS@ | ||
273 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
274 | abs_builddir = @abs_builddir@ | ||
275 | abs_srcdir = @abs_srcdir@ | ||
276 | abs_top_builddir = @abs_top_builddir@ | ||
277 | abs_top_srcdir = @abs_top_srcdir@ | ||
278 | ac_ct_CC = @ac_ct_CC@ | ||
279 | ac_ct_CXX = @ac_ct_CXX@ | ||
280 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
281 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
282 | altivec_cflags = @altivec_cflags@ | ||
283 | am__include = @am__include@ | ||
284 | am__leading_dot = @am__leading_dot@ | ||
285 | am__quote = @am__quote@ | ||
286 | am__tar = @am__tar@ | ||
287 | am__untar = @am__untar@ | ||
288 | bindir = @bindir@ | ||
289 | build = @build@ | ||
290 | build_alias = @build_alias@ | ||
291 | build_cpu = @build_cpu@ | ||
292 | build_os = @build_os@ | ||
293 | build_vendor = @build_vendor@ | ||
294 | builddir = @builddir@ | ||
295 | datadir = @datadir@ | ||
296 | datarootdir = @datarootdir@ | ||
297 | dlopen_libs = @dlopen_libs@ | ||
298 | docdir = @docdir@ | ||
299 | dvidir = @dvidir@ | ||
300 | edje_cc = @edje_cc@ | ||
301 | efl_doxygen = @efl_doxygen@ | ||
302 | efl_have_doxygen = @efl_have_doxygen@ | ||
303 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
304 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
305 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
306 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
307 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
308 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
309 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
310 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
311 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
312 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
313 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
314 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
315 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
316 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
317 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
318 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
319 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
320 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
321 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
322 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
323 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
324 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
325 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
326 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
327 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
328 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
329 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
330 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
331 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
332 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
333 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
334 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
335 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
336 | evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@ | ||
337 | evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@ | ||
338 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
339 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
340 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
341 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
342 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
343 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
344 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
345 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
346 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
347 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
348 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
349 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
350 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
351 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
352 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
353 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
354 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
355 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
356 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
357 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
358 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
359 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
360 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
361 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
362 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
363 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
364 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
365 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
366 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
367 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
368 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
369 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
370 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
371 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
372 | exec_prefix = @exec_prefix@ | ||
373 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
374 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
375 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
376 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
377 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
378 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
379 | have_lcov = @have_lcov@ | ||
380 | host = @host@ | ||
381 | host_alias = @host_alias@ | ||
382 | host_cpu = @host_cpu@ | ||
383 | host_os = @host_os@ | ||
384 | host_vendor = @host_vendor@ | ||
385 | htmldir = @htmldir@ | ||
386 | includedir = @includedir@ | ||
387 | infodir = @infodir@ | ||
388 | install_sh = @install_sh@ | ||
389 | libdir = @libdir@ | ||
390 | libexecdir = @libexecdir@ | ||
391 | localedir = @localedir@ | ||
392 | localstatedir = @localstatedir@ | ||
393 | lt_ECHO = @lt_ECHO@ | ||
394 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
395 | mandir = @mandir@ | ||
396 | mkdir_p = @mkdir_p@ | ||
397 | oldincludedir = @oldincludedir@ | ||
398 | pdfdir = @pdfdir@ | ||
399 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
400 | prefix = @prefix@ | ||
401 | program_transform_name = @program_transform_name@ | ||
402 | psdir = @psdir@ | ||
403 | pthread_cflags = @pthread_cflags@ | ||
404 | pthread_libs = @pthread_libs@ | ||
405 | release_info = @release_info@ | ||
406 | requirement_evas = @requirement_evas@ | ||
407 | sbindir = @sbindir@ | ||
408 | sharedstatedir = @sharedstatedir@ | ||
409 | srcdir = @srcdir@ | ||
410 | sysconfdir = @sysconfdir@ | ||
411 | target_alias = @target_alias@ | ||
412 | top_build_prefix = @top_build_prefix@ | ||
413 | top_builddir = @top_builddir@ | ||
414 | top_srcdir = @top_srcdir@ | ||
415 | version_info = @version_info@ | ||
416 | MAINTAINERCLEANFILES = Makefile.in | ||
417 | AM_CPPFLAGS = \ | ||
418 | -I. \ | ||
419 | -I$(top_srcdir)/src/lib \ | ||
420 | -I$(top_srcdir)/src/lib/include \ | ||
421 | -I$(top_srcdir)/src/modules/engines \ | ||
422 | @FREETYPE_CFLAGS@ \ | ||
423 | @PIXMAN_CFLAGS@ \ | ||
424 | @EINA_CFLAGS@ \ | ||
425 | @evas_engine_psl1ght_cflags@ | ||
426 | |||
427 | @BUILD_ENGINE_PSL1GHT_TRUE@PSL1GHT_SOURCES = \ | ||
428 | @BUILD_ENGINE_PSL1GHT_TRUE@evas_engine.c \ | ||
429 | @BUILD_ENGINE_PSL1GHT_TRUE@rsxutil.c | ||
430 | |||
431 | @BUILD_ENGINE_PSL1GHT_TRUE@PSL1GHT_LIBADD = @evas_engine_psl1ght_libs@ | ||
432 | @BUILD_ENGINE_PSL1GHT_TRUE@includes_HEADERS = Evas_Engine_PSL1GHT.h | ||
433 | @BUILD_ENGINE_PSL1GHT_TRUE@includesdir = $(includedir)/evas-@VMAJ@ | ||
434 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@pkgdir = $(libdir)/evas/modules/engines/psl1ght/$(MODULE_ARCH) | ||
435 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@pkg_LTLIBRARIES = module.la | ||
436 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@module_la_SOURCES = $(PSL1GHT_SOURCES) | ||
437 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@module_la_LIBADD = @EINA_LIBS@ $(PSL1GHT_LIBADD) $(top_builddir)/src/lib/libevas.la | ||
438 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@module_la_LDFLAGS = -module -avoid-version | ||
439 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
440 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_TRUE@noinst_LTLIBRARIES = libevas_engine_psl1ght.la | ||
441 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_TRUE@libevas_engine_psl1ght_la_SOURCES = $(PSL1GHT_SOURCES) | ||
442 | @BUILD_ENGINE_PSL1GHT_TRUE@@EVAS_STATIC_BUILD_PSL1GHT_TRUE@libevas_engine_psl1ght_la_LIBADD = $(PSL1GHT_LIBADD) | ||
443 | EXTRA_DIST = \ | ||
444 | evas_engine.h \ | ||
445 | rsxutil.h | ||
446 | |||
447 | all: all-am | ||
448 | |||
449 | .SUFFIXES: | ||
450 | .SUFFIXES: .c .lo .o .obj | ||
451 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
452 | @for dep in $?; do \ | ||
453 | case '$(am__configure_deps)' in \ | ||
454 | *$$dep*) \ | ||
455 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
456 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
457 | exit 1;; \ | ||
458 | esac; \ | ||
459 | done; \ | ||
460 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/engines/psl1ght/Makefile'; \ | ||
461 | $(am__cd) $(top_srcdir) && \ | ||
462 | $(AUTOMAKE) --gnu src/modules/engines/psl1ght/Makefile | ||
463 | .PRECIOUS: Makefile | ||
464 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
465 | @case '$?' in \ | ||
466 | *config.status*) \ | ||
467 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
468 | *) \ | ||
469 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
470 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
471 | esac; | ||
472 | |||
473 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
474 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
475 | |||
476 | $(top_srcdir)/configure: $(am__configure_deps) | ||
477 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
478 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
479 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
480 | $(am__aclocal_m4_deps): | ||
481 | |||
482 | clean-noinstLTLIBRARIES: | ||
483 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
484 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
485 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
486 | test "$$dir" != "$$p" || dir=.; \ | ||
487 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
488 | rm -f "$${dir}/so_locations"; \ | ||
489 | done | ||
490 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
491 | @$(NORMAL_INSTALL) | ||
492 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
493 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
494 | list2=; for p in $$list; do \ | ||
495 | if test -f $$p; then \ | ||
496 | list2="$$list2 $$p"; \ | ||
497 | else :; fi; \ | ||
498 | done; \ | ||
499 | test -z "$$list2" || { \ | ||
500 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
501 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
502 | } | ||
503 | |||
504 | uninstall-pkgLTLIBRARIES: | ||
505 | @$(NORMAL_UNINSTALL) | ||
506 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
507 | for p in $$list; do \ | ||
508 | $(am__strip_dir) \ | ||
509 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
510 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
511 | done | ||
512 | |||
513 | clean-pkgLTLIBRARIES: | ||
514 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
515 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
516 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
517 | test "$$dir" != "$$p" || dir=.; \ | ||
518 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
519 | rm -f "$${dir}/so_locations"; \ | ||
520 | done | ||
521 | libevas_engine_psl1ght.la: $(libevas_engine_psl1ght_la_OBJECTS) $(libevas_engine_psl1ght_la_DEPENDENCIES) | ||
522 | $(AM_V_CCLD)$(LINK) $(am_libevas_engine_psl1ght_la_rpath) $(libevas_engine_psl1ght_la_OBJECTS) $(libevas_engine_psl1ght_la_LIBADD) $(LIBS) | ||
523 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
524 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
525 | |||
526 | mostlyclean-compile: | ||
527 | -rm -f *.$(OBJEXT) | ||
528 | |||
529 | distclean-compile: | ||
530 | -rm -f *.tab.c | ||
531 | |||
532 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_engine.Plo@am__quote@ | ||
533 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_engine.Plo@am__quote@ | ||
534 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-rsxutil.Plo@am__quote@ | ||
535 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rsxutil.Plo@am__quote@ | ||
536 | |||
537 | .c.o: | ||
538 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
539 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
540 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
541 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
542 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
543 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
544 | |||
545 | .c.obj: | ||
546 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
547 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
548 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
549 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
550 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
551 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
552 | |||
553 | .c.lo: | ||
554 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
555 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
556 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
557 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
558 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
559 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
560 | |||
561 | module_la-evas_engine.lo: evas_engine.c | ||
562 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-evas_engine.lo -MD -MP -MF $(DEPDIR)/module_la-evas_engine.Tpo -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c | ||
563 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_engine.Tpo $(DEPDIR)/module_la-evas_engine.Plo | ||
564 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
565 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_engine.c' object='module_la-evas_engine.lo' libtool=yes @AMDEPBACKSLASH@ | ||
566 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
567 | @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-evas_engine.lo `test -f 'evas_engine.c' || echo '$(srcdir)/'`evas_engine.c | ||
568 | |||
569 | module_la-rsxutil.lo: rsxutil.c | ||
570 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-rsxutil.lo -MD -MP -MF $(DEPDIR)/module_la-rsxutil.Tpo -c -o module_la-rsxutil.lo `test -f 'rsxutil.c' || echo '$(srcdir)/'`rsxutil.c | ||
571 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-rsxutil.Tpo $(DEPDIR)/module_la-rsxutil.Plo | ||
572 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
573 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='rsxutil.c' object='module_la-rsxutil.lo' libtool=yes @AMDEPBACKSLASH@ | ||
574 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
575 | @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-rsxutil.lo `test -f 'rsxutil.c' || echo '$(srcdir)/'`rsxutil.c | ||
576 | |||
577 | mostlyclean-libtool: | ||
578 | -rm -f *.lo | ||
579 | |||
580 | clean-libtool: | ||
581 | -rm -rf .libs _libs | ||
582 | install-includesHEADERS: $(includes_HEADERS) | ||
583 | @$(NORMAL_INSTALL) | ||
584 | test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)" | ||
585 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
586 | for p in $$list; do \ | ||
587 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | ||
588 | echo "$$d$$p"; \ | ||
589 | done | $(am__base_list) | \ | ||
590 | while read files; do \ | ||
591 | echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includesdir)'"; \ | ||
592 | $(INSTALL_HEADER) $$files "$(DESTDIR)$(includesdir)" || exit $$?; \ | ||
593 | done | ||
594 | |||
595 | uninstall-includesHEADERS: | ||
596 | @$(NORMAL_UNINSTALL) | ||
597 | @list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \ | ||
598 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ | ||
599 | test -n "$$files" || exit 0; \ | ||
600 | echo " ( cd '$(DESTDIR)$(includesdir)' && rm -f" $$files ")"; \ | ||
601 | cd "$(DESTDIR)$(includesdir)" && rm -f $$files | ||
602 | |||
603 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
604 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
605 | unique=`for i in $$list; do \ | ||
606 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
607 | done | \ | ||
608 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
609 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
610 | mkid -fID $$unique | ||
611 | tags: TAGS | ||
612 | |||
613 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
614 | $(TAGS_FILES) $(LISP) | ||
615 | set x; \ | ||
616 | here=`pwd`; \ | ||
617 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
618 | unique=`for i in $$list; do \ | ||
619 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
620 | done | \ | ||
621 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
622 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
623 | shift; \ | ||
624 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
625 | test -n "$$unique" || unique=$$empty_fix; \ | ||
626 | if test $$# -gt 0; then \ | ||
627 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
628 | "$$@" $$unique; \ | ||
629 | else \ | ||
630 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
631 | $$unique; \ | ||
632 | fi; \ | ||
633 | fi | ||
634 | ctags: CTAGS | ||
635 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
636 | $(TAGS_FILES) $(LISP) | ||
637 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
638 | unique=`for i in $$list; do \ | ||
639 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
640 | done | \ | ||
641 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
642 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
643 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
644 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
645 | $$unique | ||
646 | |||
647 | GTAGS: | ||
648 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
649 | && $(am__cd) $(top_srcdir) \ | ||
650 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
651 | |||
652 | distclean-tags: | ||
653 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
654 | |||
655 | distdir: $(DISTFILES) | ||
656 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
657 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
658 | list='$(DISTFILES)'; \ | ||
659 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
660 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
661 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
662 | case $$dist_files in \ | ||
663 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
664 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
665 | sort -u` ;; \ | ||
666 | esac; \ | ||
667 | for file in $$dist_files; do \ | ||
668 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
669 | if test -d $$d/$$file; then \ | ||
670 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
671 | if test -d "$(distdir)/$$file"; then \ | ||
672 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
673 | fi; \ | ||
674 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
675 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
676 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
677 | fi; \ | ||
678 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
679 | else \ | ||
680 | test -f "$(distdir)/$$file" \ | ||
681 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
682 | || exit 1; \ | ||
683 | fi; \ | ||
684 | done | ||
685 | check-am: all-am | ||
686 | check: check-am | ||
687 | all-am: Makefile $(LTLIBRARIES) $(HEADERS) | ||
688 | installdirs: | ||
689 | for dir in "$(DESTDIR)$(pkgdir)" "$(DESTDIR)$(includesdir)"; do \ | ||
690 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
691 | done | ||
692 | install: install-am | ||
693 | install-exec: install-exec-am | ||
694 | install-data: install-data-am | ||
695 | uninstall: uninstall-am | ||
696 | |||
697 | install-am: all-am | ||
698 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
699 | |||
700 | installcheck: installcheck-am | ||
701 | install-strip: | ||
702 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
703 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
704 | `test -z '$(STRIP)' || \ | ||
705 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
706 | mostlyclean-generic: | ||
707 | |||
708 | clean-generic: | ||
709 | |||
710 | distclean-generic: | ||
711 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
712 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
713 | |||
714 | maintainer-clean-generic: | ||
715 | @echo "This command is intended for maintainers to use" | ||
716 | @echo "it deletes files that may require special tools to rebuild." | ||
717 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
718 | clean: clean-am | ||
719 | |||
720 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
721 | clean-pkgLTLIBRARIES mostlyclean-am | ||
722 | |||
723 | distclean: distclean-am | ||
724 | -rm -rf ./$(DEPDIR) | ||
725 | -rm -f Makefile | ||
726 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
727 | distclean-tags | ||
728 | |||
729 | dvi: dvi-am | ||
730 | |||
731 | dvi-am: | ||
732 | |||
733 | html: html-am | ||
734 | |||
735 | html-am: | ||
736 | |||
737 | info: info-am | ||
738 | |||
739 | info-am: | ||
740 | |||
741 | install-data-am: install-includesHEADERS install-pkgLTLIBRARIES | ||
742 | |||
743 | install-dvi: install-dvi-am | ||
744 | |||
745 | install-dvi-am: | ||
746 | |||
747 | install-exec-am: | ||
748 | |||
749 | install-html: install-html-am | ||
750 | |||
751 | install-html-am: | ||
752 | |||
753 | install-info: install-info-am | ||
754 | |||
755 | install-info-am: | ||
756 | |||
757 | install-man: | ||
758 | |||
759 | install-pdf: install-pdf-am | ||
760 | |||
761 | install-pdf-am: | ||
762 | |||
763 | install-ps: install-ps-am | ||
764 | |||
765 | install-ps-am: | ||
766 | |||
767 | installcheck-am: | ||
768 | |||
769 | maintainer-clean: maintainer-clean-am | ||
770 | -rm -rf ./$(DEPDIR) | ||
771 | -rm -f Makefile | ||
772 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
773 | |||
774 | mostlyclean: mostlyclean-am | ||
775 | |||
776 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
777 | mostlyclean-libtool | ||
778 | |||
779 | pdf: pdf-am | ||
780 | |||
781 | pdf-am: | ||
782 | |||
783 | ps: ps-am | ||
784 | |||
785 | ps-am: | ||
786 | |||
787 | uninstall-am: uninstall-includesHEADERS uninstall-pkgLTLIBRARIES | ||
788 | |||
789 | .MAKE: install-am install-strip | ||
790 | |||
791 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
792 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
793 | ctags distclean distclean-compile distclean-generic \ | ||
794 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
795 | html-am info info-am install install-am install-data \ | ||
796 | install-data-am install-dvi install-dvi-am install-exec \ | ||
797 | install-exec-am install-html install-html-am \ | ||
798 | install-includesHEADERS install-info install-info-am \ | ||
799 | install-man install-pdf install-pdf-am install-pkgLTLIBRARIES \ | ||
800 | install-ps install-ps-am install-strip installcheck \ | ||
801 | installcheck-am installdirs maintainer-clean \ | ||
802 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
803 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
804 | tags uninstall uninstall-am uninstall-includesHEADERS \ | ||
805 | uninstall-pkgLTLIBRARIES | ||
806 | |||
807 | |||
808 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
809 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
810 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/engines/psl1ght/evas_engine.c b/libraries/evas/src/modules/engines/psl1ght/evas_engine.c new file mode 100644 index 0000000..750c098 --- /dev/null +++ b/libraries/evas/src/modules/engines/psl1ght/evas_engine.c | |||
@@ -0,0 +1,511 @@ | |||
1 | #include "evas_common.h" | ||
2 | #include "evas_private.h" | ||
3 | #include "evas_engine.h" | ||
4 | #include "rsxutil.h" | ||
5 | #include "Evas_Engine_PSL1GHT.h" | ||
6 | |||
7 | #include <malloc.h> | ||
8 | |||
9 | int _evas_engine_psl1ght_log_dom = -1; | ||
10 | |||
11 | /* function tables - filled in later (func and parent func) */ | ||
12 | static Evas_Func func, pfunc; | ||
13 | |||
14 | /* engine struct data */ | ||
15 | typedef struct _Render_Engine Render_Engine; | ||
16 | |||
17 | #define MAX_BUFFERS 2 | ||
18 | |||
19 | struct _Render_Engine | ||
20 | { | ||
21 | Tilebuf *tb; | ||
22 | Tilebuf_Rect *rects; | ||
23 | Eina_Inlist *cur_rect; | ||
24 | |||
25 | /* RSX device context */ | ||
26 | gcmContextData *context; | ||
27 | void *host_addr; | ||
28 | |||
29 | /* The buffers we will be drawing into. */ | ||
30 | rsxBuffer buffers[MAX_BUFFERS]; | ||
31 | int currentBuffer; | ||
32 | int width; | ||
33 | int height; | ||
34 | RGBA_Image *rgba_image; | ||
35 | uint32_t rgba_image_offset; | ||
36 | |||
37 | int end : 1; | ||
38 | }; | ||
39 | |||
40 | /* prototypes we will use here */ | ||
41 | static void *_output_setup(int w, int h); | ||
42 | |||
43 | static void *eng_info(Evas *e); | ||
44 | static void | ||
45 | eng_info_free(Evas *e, void *info); | ||
46 | static int | ||
47 | eng_setup(Evas *e, void *info); | ||
48 | static void | ||
49 | eng_output_free(void *data); | ||
50 | static void | ||
51 | eng_output_resize(void *data, int w, int h); | ||
52 | static void | ||
53 | eng_output_tile_size_set(void *data, int w, int h); | ||
54 | static void | ||
55 | eng_output_redraws_rect_add(void *data, int x, int y, int w, int h); | ||
56 | static void | ||
57 | eng_output_redraws_rect_del(void *data, int x, int y, int w, int h); | ||
58 | static void | ||
59 | eng_output_redraws_clear(void *data); | ||
60 | static void *eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, int *cx, int *cy, int *cw, int *ch); | ||
61 | static void | ||
62 | eng_output_redraws_next_update_push(void *data, void *surface, int x, int y, int w, int h); | ||
63 | static void | ||
64 | eng_output_flush(void *data); | ||
65 | static void | ||
66 | eng_output_idle_flush(void *data); | ||
67 | |||
68 | /* internal engine routines */ | ||
69 | static void * | ||
70 | _output_setup(int w, int h) | ||
71 | { | ||
72 | Render_Engine *re; | ||
73 | int i; | ||
74 | u16 width, height; | ||
75 | DATA32 *image_data = NULL; | ||
76 | int image_size; | ||
77 | |||
78 | printf ("_output_setup called : %dx%d\n", w, h); | ||
79 | re = calloc(1, sizeof(Render_Engine)); | ||
80 | if (!re) | ||
81 | return NULL; | ||
82 | |||
83 | /* Allocate a 1Mb buffer, alligned to a 1Mb boundary | ||
84 | * to be our shared IO memory with the RSX. */ | ||
85 | re->host_addr = memalign (1024 * 1024, HOST_SIZE); | ||
86 | if (re->host_addr == NULL) | ||
87 | { | ||
88 | free (re); | ||
89 | return NULL; | ||
90 | } | ||
91 | re->context = initScreen (re->host_addr, HOST_SIZE); | ||
92 | if (re->context == NULL) | ||
93 | { | ||
94 | free (re->host_addr); | ||
95 | free (re); | ||
96 | return NULL; | ||
97 | } | ||
98 | width = w; | ||
99 | height = h; | ||
100 | setResolution (re->context, &width, &height); | ||
101 | re->currentBuffer = 0; | ||
102 | re->width = width; | ||
103 | re->height = height; | ||
104 | |||
105 | for (i = 0; i < MAX_BUFFERS; i++) | ||
106 | makeBuffer (&re->buffers[i], width, height, i); | ||
107 | |||
108 | flipBuffer(re->context, MAX_BUFFERS - 1); | ||
109 | |||
110 | /* if we haven't initialized - init (automatic abort if already done) */ | ||
111 | evas_common_cpu_init(); | ||
112 | evas_common_blend_init(); | ||
113 | evas_common_image_init(); | ||
114 | evas_common_convert_init(); | ||
115 | evas_common_scale_init(); | ||
116 | evas_common_rectangle_init(); | ||
117 | evas_common_polygon_init(); | ||
118 | evas_common_line_init(); | ||
119 | evas_common_font_init(); | ||
120 | evas_common_draw_init(); | ||
121 | evas_common_tilebuf_init(); | ||
122 | |||
123 | re->tb = evas_common_tilebuf_new(w, h); | ||
124 | |||
125 | /* in preliminary tests 16x16 gave highest framerates */ | ||
126 | evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE); | ||
127 | |||
128 | /* Allocate our memaligned backbuffer */ | ||
129 | image_size = ((w * h * sizeof(u32)) + 0xfffff) & - 0x100000; | ||
130 | image_data = memalign (1024 * 1024, image_size); | ||
131 | re->rgba_image = (RGBA_Image *)evas_cache_image_data(evas_common_image_cache_get(), | ||
132 | w, h, image_data, 1, EVAS_COLORSPACE_ARGB8888); | ||
133 | gcmMapMainMemory(image_data, image_size, &re->rgba_image_offset); | ||
134 | |||
135 | return re; | ||
136 | } | ||
137 | |||
138 | /* engine api this module provides */ | ||
139 | static void * | ||
140 | eng_info(Evas *e) | ||
141 | { | ||
142 | Evas_Engine_Info_PSL1GHT *info; | ||
143 | |||
144 | printf ("eng_info called\n"); | ||
145 | info = calloc(1, sizeof(Evas_Engine_Info_PSL1GHT)); | ||
146 | if (!info) | ||
147 | return NULL; | ||
148 | |||
149 | info->magic.magic = rand(); | ||
150 | info->render_mode = EVAS_RENDER_MODE_BLOCKING; | ||
151 | |||
152 | return info; | ||
153 | } | ||
154 | |||
155 | static void | ||
156 | eng_info_free(Evas *e __UNUSED__, void *info) | ||
157 | { | ||
158 | Evas_Engine_Info_PSL1GHT *in; | ||
159 | |||
160 | printf ("eng_info_free called\n"); | ||
161 | in = (Evas_Engine_Info_PSL1GHT *)info; | ||
162 | free(in); | ||
163 | } | ||
164 | |||
165 | static int | ||
166 | eng_setup(Evas *e, void *in) | ||
167 | { | ||
168 | Evas_Engine_Info_PSL1GHT *info; | ||
169 | |||
170 | printf ("eng_setup called\n"); | ||
171 | info = (Evas_Engine_Info_PSL1GHT *)in; | ||
172 | |||
173 | e->engine.data.output = _output_setup(e->output.w, e->output.h); | ||
174 | if (!e->engine.data.output) | ||
175 | return 0; | ||
176 | |||
177 | e->engine.func = &func; | ||
178 | e->engine.data.context = e->engine.func->context_new(e->engine.data.output); | ||
179 | |||
180 | return 1; | ||
181 | } | ||
182 | |||
183 | static void | ||
184 | eng_output_free(void *data) | ||
185 | { | ||
186 | Render_Engine *re; | ||
187 | int i; | ||
188 | |||
189 | printf ("eng_output_free called\n"); | ||
190 | re = (Render_Engine *)data; | ||
191 | |||
192 | gcmSetWaitFlip(re->context); | ||
193 | for (i = 0; i < MAX_BUFFERS; i++) | ||
194 | rsxFree (re->buffers[i].ptr); | ||
195 | |||
196 | if (re->rgba_image) | ||
197 | { | ||
198 | DATA32 *image_data; | ||
199 | |||
200 | image_data = re->rgba_image->image.data; | ||
201 | evas_cache_image_drop(&re->rgba_image->cache_entry); | ||
202 | free (image_data); | ||
203 | } | ||
204 | |||
205 | freeScreen (re->context); | ||
206 | free (re->host_addr); | ||
207 | |||
208 | evas_common_tilebuf_free(re->tb); | ||
209 | if (re->rects) | ||
210 | evas_common_tilebuf_free_render_rects(re->rects); | ||
211 | |||
212 | free(re); | ||
213 | |||
214 | evas_common_font_shutdown(); | ||
215 | evas_common_image_shutdown(); | ||
216 | } | ||
217 | |||
218 | static void | ||
219 | eng_output_resize(void *data, int w, int h) | ||
220 | { | ||
221 | Render_Engine *re; | ||
222 | int i; | ||
223 | u16 width, height; | ||
224 | DATA32 *image_data; | ||
225 | int image_size; | ||
226 | |||
227 | printf ("eng_output_resize called : %dx%d\n", w, h); | ||
228 | re = (Render_Engine *)data; | ||
229 | |||
230 | width = w; | ||
231 | height = h; | ||
232 | if (setResolution (re->context, &width, &height)) | ||
233 | { | ||
234 | re->width = width; | ||
235 | re->height = height; | ||
236 | |||
237 | gcmSetWaitFlip(re->context); | ||
238 | for (i = 0; i < MAX_BUFFERS; i++) { | ||
239 | rsxFree (re->buffers[i].ptr); | ||
240 | makeBuffer (&re->buffers[i], width, height, i); | ||
241 | } | ||
242 | |||
243 | flipBuffer(re->context, MAX_BUFFERS - 1); | ||
244 | |||
245 | evas_common_tilebuf_free(re->tb); | ||
246 | re->tb = evas_common_tilebuf_new(w, h); | ||
247 | evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE); | ||
248 | |||
249 | /* Realloc our backbuf image */ | ||
250 | if (re->rgba_image) | ||
251 | { | ||
252 | image_data = re->rgba_image->image.data; | ||
253 | evas_cache_image_drop(&re->rgba_image->cache_entry); | ||
254 | free (image_data); | ||
255 | } | ||
256 | image_size = ((w * h * sizeof(u32)) + 0xfffff) & - 0x100000; | ||
257 | image_data = memalign (1024 * 1024, image_size); | ||
258 | re->rgba_image = (RGBA_Image *)evas_cache_image_data(evas_common_image_cache_get(), | ||
259 | w, h, image_data, 1, EVAS_COLORSPACE_ARGB8888); | ||
260 | gcmMapMainMemory(image_data, image_size, &re->rgba_image_offset); | ||
261 | } | ||
262 | } | ||
263 | |||
264 | static void | ||
265 | eng_output_tile_size_set(void *data, int w, int h) | ||
266 | { | ||
267 | Render_Engine *re; | ||
268 | |||
269 | printf ("eng_output_tile_size_set called : %dx%d\n", w, h); | ||
270 | re = (Render_Engine *)data; | ||
271 | evas_common_tilebuf_set_tile_size(re->tb, w, h); | ||
272 | } | ||
273 | |||
274 | static void | ||
275 | eng_output_redraws_rect_add(void *data, int x, int y, int w, int h) | ||
276 | { | ||
277 | Render_Engine *re; | ||
278 | |||
279 | //printf ("eng_output_redraws_rect_add called : %d,%d %dx%d\n", x, y, w, h); | ||
280 | re = (Render_Engine *)data; | ||
281 | evas_common_tilebuf_add_redraw(re->tb, x, y, w, h); | ||
282 | } | ||
283 | |||
284 | static void | ||
285 | eng_output_redraws_rect_del(void *data, int x, int y, int w, int h) | ||
286 | { | ||
287 | Render_Engine *re; | ||
288 | |||
289 | //printf ("eng_output_redraws_rect_del called : %d,%d %dx%d\n", x, y, w, h); | ||
290 | re = (Render_Engine *)data; | ||
291 | evas_common_tilebuf_del_redraw(re->tb, x, y, w, h); | ||
292 | } | ||
293 | |||
294 | static void | ||
295 | eng_output_redraws_clear(void *data) | ||
296 | { | ||
297 | Render_Engine *re; | ||
298 | |||
299 | //printf ("eng_output_redraws_clear called\n"); | ||
300 | re = (Render_Engine *)data; | ||
301 | evas_common_tilebuf_clear(re->tb); | ||
302 | } | ||
303 | |||
304 | static void * | ||
305 | eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, int *cx, int *cy, int *cw, int *ch) | ||
306 | { | ||
307 | Render_Engine *re; | ||
308 | Tilebuf_Rect *rect; | ||
309 | int ux, uy, uw, uh; | ||
310 | |||
311 | re = (Render_Engine *)data; | ||
312 | /*printf ("eng_output_redraws_next_update_get called : %d,%d %dx%d -- %d,%d %dx%d\n", | ||
313 | *x, *y, *w, *h, *cx, *cy, *cw, *ch);*/ | ||
314 | if (re->end) | ||
315 | { | ||
316 | re->end = 0; | ||
317 | return NULL; | ||
318 | } | ||
319 | if (!re->rects) | ||
320 | { | ||
321 | re->rects = evas_common_tilebuf_get_render_rects(re->tb); | ||
322 | re->cur_rect = EINA_INLIST_GET(re->rects); | ||
323 | } | ||
324 | if (!re->cur_rect) | ||
325 | return NULL; | ||
326 | |||
327 | rect = (Tilebuf_Rect *)re->cur_rect; | ||
328 | ux = rect->x; uy = rect->y; uw = rect->w; uh = rect->h; | ||
329 | re->cur_rect = re->cur_rect->next; | ||
330 | if (!re->cur_rect) | ||
331 | { | ||
332 | evas_common_tilebuf_free_render_rects(re->rects); | ||
333 | re->rects = NULL; | ||
334 | re->end = 1; | ||
335 | } | ||
336 | |||
337 | *x = *cx = ux; | ||
338 | *y = *cy = uy; | ||
339 | *w = *cw = uw; | ||
340 | *h = *ch = uh; | ||
341 | /*printf ("eng_output_redraws_next_update_get returning : %d,%d %dx%d -- %d,%d %dx%d\n", | ||
342 | *x, *y, *w, *h, *cx, *cy, *cw, *ch);*/ | ||
343 | |||
344 | return re->rgba_image; | ||
345 | } | ||
346 | |||
347 | static void | ||
348 | eng_output_redraws_next_update_push(void *data, void *surface, int x, int y, int w, int h) | ||
349 | { | ||
350 | /* Don't do anything, we'll just coy the whole buffer when it's time to flush */ | ||
351 | } | ||
352 | |||
353 | static void | ||
354 | eng_output_flush(void *data) | ||
355 | { | ||
356 | Render_Engine *re; | ||
357 | rsxBuffer *buffer; | ||
358 | int width; | ||
359 | int height; | ||
360 | |||
361 | //printf ("eng_output_flush called\n"); | ||
362 | re = (Render_Engine *)data; | ||
363 | buffer = &re->buffers[re->currentBuffer]; | ||
364 | width = re->rgba_image->cache_entry.w; | ||
365 | height = re->rgba_image->cache_entry.h; | ||
366 | |||
367 | /* Wait for the flip before copying the buffer */ | ||
368 | waitFlip (); | ||
369 | |||
370 | if (re->width == width && | ||
371 | re->height == height) | ||
372 | { | ||
373 | /* DMA the back buffer into the rsx buffer */ | ||
374 | rsxSetTransferImage (re->context, | ||
375 | GCM_TRANSFER_MAIN_TO_LOCAL, | ||
376 | buffer->offset, buffer->width * sizeof(u32), | ||
377 | 0, 0, | ||
378 | re->rgba_image_offset, re->width * sizeof(u32), | ||
379 | 0, 0, re->width, re->height, sizeof(u32)); | ||
380 | } | ||
381 | else | ||
382 | { | ||
383 | gcmTransferScale gcm_scale; | ||
384 | gcmTransferSurface gcm_surface; | ||
385 | |||
386 | gcm_surface.format = GCM_TRANSFER_SURFACE_FORMAT_A8R8G8B8; | ||
387 | gcm_surface.pitch = buffer->width * sizeof(u32); | ||
388 | gcm_surface._pad0[0] = gcm_surface._pad0[1] = 0; | ||
389 | gcm_surface.offset = buffer->offset; | ||
390 | |||
391 | gcm_scale.interp = GCM_TRANSFER_INTERPOLATOR_LINEAR; | ||
392 | gcm_scale.conversion = GCM_TRANSFER_CONVERSION_TRUNCATE; | ||
393 | gcm_scale.format = GCM_TRANSFER_SCALE_FORMAT_A8R8G8B8; | ||
394 | gcm_scale.origin = GCM_TRANSFER_ORIGIN_CORNER; | ||
395 | gcm_scale.operation = GCM_TRANSFER_OPERATION_SRCCOPY; | ||
396 | gcm_scale.offset = re->rgba_image_offset; | ||
397 | gcm_scale.clipX = 0; | ||
398 | gcm_scale.clipY = 0; | ||
399 | gcm_scale.clipW = re->width; | ||
400 | gcm_scale.clipH = re->height; | ||
401 | gcm_scale.outX = 0; | ||
402 | gcm_scale.outY = 0; | ||
403 | gcm_scale.outW = re->width; | ||
404 | gcm_scale.outH = re->height; | ||
405 | gcm_scale.ratioX = rsxGetFixedSint32 ((float)width / (float)re->width); | ||
406 | gcm_scale.ratioY = rsxGetFixedSint32 ((float)height / (float)re->height); | ||
407 | gcm_scale.inX = 0; | ||
408 | gcm_scale.inY = 0; | ||
409 | gcm_scale.inW = (width & ~1); // Width must be a multiple of 2 | ||
410 | gcm_scale.inH = height; | ||
411 | if (gcm_scale.inW < 2) // Minimum inW value is 2 | ||
412 | gcm_scale.inW = 2; | ||
413 | if (gcm_scale.inW > 2046) // Maximum inW value is 2046 | ||
414 | gcm_scale.inW = 2046; | ||
415 | if (gcm_scale.inH < 1) // Minimum inH value is 1 | ||
416 | gcm_scale.inH = 1; | ||
417 | if (gcm_scale.inH > 2047) // Maximum inW value is 2047 | ||
418 | gcm_scale.inH = 2047; | ||
419 | gcm_scale.pitch = sizeof(u32) * width; | ||
420 | |||
421 | rsxSetTransferScaleMode (re->context, GCM_TRANSFER_MAIN_TO_LOCAL, GCM_TRANSFER_SURFACE); | ||
422 | rsxSetTransferScaleSurface (re->context, &gcm_scale, &gcm_surface); | ||
423 | } | ||
424 | /* Wait for the DMA to finish */ | ||
425 | flushRSX (re->context); | ||
426 | |||
427 | /* Flip buffer onto screen */ | ||
428 | flipBuffer (re->context, re->currentBuffer); | ||
429 | re->currentBuffer = (re->currentBuffer + 1) % MAX_BUFFERS; | ||
430 | } | ||
431 | |||
432 | static void | ||
433 | eng_output_idle_flush(void *data) | ||
434 | { | ||
435 | Render_Engine *re; | ||
436 | |||
437 | printf ("eng_output_idle_flush called\n"); | ||
438 | re = (Render_Engine *)data; | ||
439 | } | ||
440 | |||
441 | static Eina_Bool | ||
442 | eng_canvas_alpha_get(void *data, void *context __UNUSED__) | ||
443 | { | ||
444 | Render_Engine *re; | ||
445 | |||
446 | // printf ("eng_output_alpha_get called\n"); | ||
447 | re = (Render_Engine *)data; | ||
448 | return EINA_TRUE; | ||
449 | } | ||
450 | |||
451 | /* module advertising code */ | ||
452 | static int | ||
453 | module_open(Evas_Module *em) | ||
454 | { | ||
455 | if (!em) return 0; | ||
456 | /* get whatever engine module we inherit from */ | ||
457 | if (!_evas_module_engine_inherit(&pfunc, "software_generic")) return 0; | ||
458 | _evas_engine_psl1ght_log_dom = eina_log_domain_register | ||
459 | ("evas-psl1ght", EVAS_DEFAULT_LOG_COLOR); | ||
460 | if (_evas_engine_psl1ght_log_dom < 0) | ||
461 | { | ||
462 | EINA_LOG_ERR("Can not create a module log domain."); | ||
463 | return 0; | ||
464 | } | ||
465 | |||
466 | /* store it for later use */ | ||
467 | func = pfunc; | ||
468 | /* now to override methods */ | ||
469 | #define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_) | ||
470 | ORD(info); | ||
471 | ORD(info_free); | ||
472 | ORD(setup); | ||
473 | ORD(canvas_alpha_get); | ||
474 | ORD(output_free); | ||
475 | ORD(output_resize); | ||
476 | ORD(output_tile_size_set); | ||
477 | ORD(output_redraws_rect_add); | ||
478 | ORD(output_redraws_rect_del); | ||
479 | ORD(output_redraws_clear); | ||
480 | ORD(output_redraws_next_update_get); | ||
481 | ORD(output_redraws_next_update_push); | ||
482 | ORD(output_flush); | ||
483 | ORD(output_idle_flush); | ||
484 | |||
485 | /* now advertise out own api */ | ||
486 | em->functions = (void *)(&func); | ||
487 | return 1; | ||
488 | } | ||
489 | |||
490 | static void | ||
491 | module_close(Evas_Module *em __UNUSED__) | ||
492 | { | ||
493 | eina_log_domain_unregister(_evas_engine_psl1ght_log_dom); | ||
494 | } | ||
495 | |||
496 | static Evas_Module_Api evas_modapi = | ||
497 | { | ||
498 | EVAS_MODULE_API_VERSION, | ||
499 | "psl1ght", | ||
500 | "none", | ||
501 | { | ||
502 | module_open, | ||
503 | module_close | ||
504 | } | ||
505 | }; | ||
506 | |||
507 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_ENGINE, engine, psl1ght); | ||
508 | |||
509 | #ifndef EVAS_STATIC_BUILD_PSL1GHT | ||
510 | EVAS_EINA_MODULE_DEFINE(engine, psl1ght); | ||
511 | #endif | ||
diff --git a/libraries/evas/src/modules/engines/psl1ght/evas_engine.h b/libraries/evas/src/modules/engines/psl1ght/evas_engine.h new file mode 100644 index 0000000..0ea6cb1 --- /dev/null +++ b/libraries/evas/src/modules/engines/psl1ght/evas_engine.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef EVAS_ENGINE_H | ||
2 | #define EVAS_ENGINE_H | ||
3 | |||
4 | extern int _evas_engine_psl1ght_log_dom; | ||
5 | #ifdef ERR | ||
6 | # undef ERR | ||
7 | #endif | ||
8 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_psl1ght_log_dom, __VA_ARGS__) | ||
9 | |||
10 | #ifdef DBG | ||
11 | # undef DBG | ||
12 | #endif | ||
13 | #define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_psl1ght_log_dom, __VA_ARGS__) | ||
14 | |||
15 | #ifdef INF | ||
16 | # undef INF | ||
17 | #endif | ||
18 | #define INF(...) EINA_LOG_DOM_INFO(_evas_engine_psl1ght_log_dom, __VA_ARGS__) | ||
19 | |||
20 | #ifdef WRN | ||
21 | # undef WRN | ||
22 | #endif | ||
23 | #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_psl1ght_log_dom, __VA_ARGS__) | ||
24 | |||
25 | #ifdef CRIT | ||
26 | # undef CRIT | ||
27 | #endif | ||
28 | #define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_psl1ght_log_dom, __VA_ARGS__) | ||
29 | |||
30 | #endif | ||
diff --git a/libraries/evas/src/modules/engines/psl1ght/rsxutil.c b/libraries/evas/src/modules/engines/psl1ght/rsxutil.c new file mode 100644 index 0000000..7567a8c --- /dev/null +++ b/libraries/evas/src/modules/engines/psl1ght/rsxutil.c | |||
@@ -0,0 +1,275 @@ | |||
1 | /* | ||
2 | * This software is distributed under the terms of the MIT License | ||
3 | */ | ||
4 | |||
5 | #include <ppu-lv2.h> | ||
6 | #include <stdio.h> | ||
7 | #include <malloc.h> | ||
8 | #include <string.h> | ||
9 | #include <unistd.h> | ||
10 | #include <sysutil/video.h> | ||
11 | #include <rsx/gcm_sys.h> | ||
12 | #include <rsx/rsx.h> | ||
13 | #include <io/pad.h> | ||
14 | #include <time.h> | ||
15 | #include <cairo/cairo.h> | ||
16 | #include <math.h> | ||
17 | |||
18 | #include "rsxutil.h" | ||
19 | |||
20 | #define GCM_LABEL_INDEX 255 | ||
21 | |||
22 | static void | ||
23 | waitRSXIdle(gcmContextData *context); | ||
24 | |||
25 | static int flipped = FALSE; | ||
26 | |||
27 | void | ||
28 | waitFlip() | ||
29 | { | ||
30 | if (flipped) | ||
31 | { | ||
32 | while (gcmGetFlipStatus () != 0) | ||
33 | usleep (200); /* Sleep, to not stress the cpu. */ | ||
34 | gcmResetFlipStatus (); | ||
35 | flipped = FALSE; | ||
36 | } | ||
37 | } | ||
38 | |||
39 | int | ||
40 | flipBuffer(gcmContextData *context, s32 buffer) | ||
41 | { | ||
42 | if (gcmSetFlip (context, buffer) == 0) | ||
43 | { | ||
44 | rsxFlushBuffer (context); | ||
45 | // Prevent the RSX from continuing until the flip has finished. | ||
46 | gcmSetWaitFlip (context); | ||
47 | |||
48 | flipped = TRUE; | ||
49 | return TRUE; | ||
50 | } | ||
51 | return FALSE; | ||
52 | } | ||
53 | |||
54 | int | ||
55 | makeBuffer(rsxBuffer *buffer, u16 width, u16 height, int id) | ||
56 | { | ||
57 | int depth = sizeof(u32); | ||
58 | int pitch = depth * width; | ||
59 | int size = depth * width * height; | ||
60 | |||
61 | buffer->ptr = (uint32_t *)rsxMemalign (64, size); | ||
62 | |||
63 | if (buffer->ptr == NULL) | ||
64 | goto error; | ||
65 | |||
66 | if (rsxAddressToOffset (buffer->ptr, &buffer->offset) != 0) | ||
67 | goto error; | ||
68 | |||
69 | /* Register the display buffer with the RSX */ | ||
70 | if (gcmSetDisplayBuffer (id, buffer->offset, pitch, width, height) != 0) | ||
71 | goto error; | ||
72 | |||
73 | buffer->width = width; | ||
74 | buffer->height = height; | ||
75 | buffer->id = id; | ||
76 | |||
77 | return TRUE; | ||
78 | |||
79 | error: | ||
80 | if (buffer->ptr != NULL) | ||
81 | rsxFree (buffer->ptr); | ||
82 | |||
83 | return FALSE; | ||
84 | } | ||
85 | |||
86 | int | ||
87 | copyBuffer(gcmContextData *context, rsxBuffer *source, rsxBuffer *destination) | ||
88 | { | ||
89 | rsxSetTransferData(context, GCM_TRANSFER_LOCAL_TO_LOCAL, | ||
90 | destination->offset, | ||
91 | destination->width * sizeof(u32), | ||
92 | source->offset, | ||
93 | source->width * sizeof(u32), | ||
94 | source->width * sizeof(u32), | ||
95 | source->height); | ||
96 | } | ||
97 | |||
98 | int | ||
99 | getResolution(u16 *width, u16 *height) | ||
100 | { | ||
101 | videoState state; | ||
102 | videoResolution resolution; | ||
103 | |||
104 | /* Get the state of the display */ | ||
105 | if (videoGetState (0, 0, &state) == 0 && | ||
106 | videoGetResolution (state.displayMode.resolution, &resolution) == 0) | ||
107 | { | ||
108 | if (width) | ||
109 | *width = resolution.width; | ||
110 | if (height) | ||
111 | *height = resolution.height; | ||
112 | |||
113 | return TRUE; | ||
114 | } | ||
115 | return FALSE; | ||
116 | } | ||
117 | |||
118 | static u8 | ||
119 | getPreferredResolution(u16 width, u16 height) | ||
120 | { | ||
121 | videoDeviceInfo info; | ||
122 | videoResolution res; | ||
123 | int area = width * height; | ||
124 | int mode_area; | ||
125 | int min_area_diff = abs (area - (720 * 480)); | ||
126 | int area_diff; | ||
127 | u8 resolution = VIDEO_RESOLUTION_480; | ||
128 | int i; | ||
129 | |||
130 | videoGetDeviceInfo(0, 0, &info); | ||
131 | |||
132 | for (i = 0; i < info.availableModeCount; i++) { | ||
133 | videoGetResolution (info.availableModes[i].resolution, &res); | ||
134 | mode_area = res.width * res.height; | ||
135 | area_diff = abs (area - mode_area); | ||
136 | if (area_diff < min_area_diff) | ||
137 | { | ||
138 | min_area_diff = area_diff; | ||
139 | resolution = info.availableModes[i].resolution; | ||
140 | } | ||
141 | } | ||
142 | |||
143 | return resolution; | ||
144 | } | ||
145 | |||
146 | int | ||
147 | setResolution(gcmContextData *context, u16 *width, u16 *height) | ||
148 | { | ||
149 | videoState state; | ||
150 | videoConfiguration vconfig; | ||
151 | videoResolution res; | ||
152 | u8 resolution; | ||
153 | |||
154 | resolution = getPreferredResolution (*width, *height); | ||
155 | |||
156 | /* Get the state of the display */ | ||
157 | if (videoGetState (0, 0, &state) != 0) | ||
158 | return FALSE; | ||
159 | |||
160 | /* Make sure display is enabled */ | ||
161 | if (state.state != 0) | ||
162 | return FALSE; | ||
163 | |||
164 | if (videoGetResolution (resolution, &res) != 0) | ||
165 | return FALSE; | ||
166 | |||
167 | /* Configure the buffer format to xRGB */ | ||
168 | memset (&vconfig, 0, sizeof(videoConfiguration)); | ||
169 | vconfig.resolution = resolution; | ||
170 | vconfig.format = VIDEO_BUFFER_FORMAT_XRGB; | ||
171 | vconfig.pitch = res.width * sizeof(u32); | ||
172 | vconfig.aspect = VIDEO_ASPECT_AUTO; | ||
173 | |||
174 | flushRSX(context); | ||
175 | |||
176 | if (videoConfigure (0, &vconfig, NULL, 0) != 0) | ||
177 | return FALSE; | ||
178 | |||
179 | *width = res.width; | ||
180 | *height = res.height; | ||
181 | |||
182 | return TRUE; | ||
183 | } | ||
184 | |||
185 | gcmContextData * | ||
186 | initScreen(void *host_addr, u32 size) | ||
187 | { | ||
188 | gcmContextData *context = NULL; /* Context to keep track of the RSX buffer. */ | ||
189 | videoState state; | ||
190 | videoConfiguration vconfig; | ||
191 | videoResolution res; /* Screen Resolution */ | ||
192 | |||
193 | /* Initilise Reality, which sets up the command buffer and shared IO memory */ | ||
194 | context = rsxInit (CB_SIZE, size, host_addr); | ||
195 | if (context == NULL) | ||
196 | goto error; | ||
197 | |||
198 | /* Get the state of the display */ | ||
199 | if (videoGetState (0, 0, &state) != 0) | ||
200 | goto error; | ||
201 | |||
202 | /* Make sure display is enabled */ | ||
203 | if (state.state != 0) | ||
204 | goto error; | ||
205 | |||
206 | /* Get the current resolution */ | ||
207 | if (videoGetResolution (state.displayMode.resolution, &res) != 0) | ||
208 | goto error; | ||
209 | |||
210 | /* Configure the buffer format to xRGB */ | ||
211 | memset (&vconfig, 0, sizeof(videoConfiguration)); | ||
212 | vconfig.resolution = state.displayMode.resolution; | ||
213 | vconfig.format = VIDEO_BUFFER_FORMAT_XRGB; | ||
214 | vconfig.pitch = res.width * sizeof(u32); | ||
215 | vconfig.aspect = state.displayMode.aspect; | ||
216 | |||
217 | flushRSX(context); | ||
218 | |||
219 | if (videoConfigure (0, &vconfig, NULL, 0) != 0) | ||
220 | goto error; | ||
221 | |||
222 | if (videoGetState (0, 0, &state) != 0) | ||
223 | goto error; | ||
224 | |||
225 | gcmSetFlipMode (GCM_FLIP_VSYNC); // Wait for VSYNC to flip | ||
226 | |||
227 | gcmResetFlipStatus(); | ||
228 | |||
229 | return context; | ||
230 | |||
231 | error: | ||
232 | if (context) | ||
233 | rsxFinish (context, 0); | ||
234 | |||
235 | return NULL; | ||
236 | } | ||
237 | |||
238 | void | ||
239 | freeScreen(gcmContextData *context) | ||
240 | { | ||
241 | rsxFinish (context, 0); | ||
242 | } | ||
243 | |||
244 | static void | ||
245 | waitFinish(gcmContextData *context, u32 sLabelVal) | ||
246 | { | ||
247 | rsxSetWriteBackendLabel (context, GCM_LABEL_INDEX, sLabelVal); | ||
248 | |||
249 | rsxFlushBuffer (context); | ||
250 | |||
251 | while (*(vu32 *)gcmGetLabelAddress (GCM_LABEL_INDEX) != sLabelVal) | ||
252 | usleep(30); | ||
253 | } | ||
254 | |||
255 | static void | ||
256 | waitRSXIdle(gcmContextData *context) | ||
257 | { | ||
258 | static u32 sLabelVal = 1; | ||
259 | |||
260 | rsxSetWriteBackendLabel (context, GCM_LABEL_INDEX, sLabelVal); | ||
261 | rsxSetWaitLabel (context, GCM_LABEL_INDEX, sLabelVal); | ||
262 | |||
263 | sLabelVal++; | ||
264 | |||
265 | waitFinish(context, sLabelVal++); | ||
266 | } | ||
267 | |||
268 | void | ||
269 | flushRSX(gcmContextData *context) | ||
270 | { | ||
271 | if (flipped) | ||
272 | waitFlip (); | ||
273 | waitRSXIdle(context); | ||
274 | } | ||
275 | |||
diff --git a/libraries/evas/src/modules/engines/psl1ght/rsxutil.h b/libraries/evas/src/modules/engines/psl1ght/rsxutil.h new file mode 100644 index 0000000..838a751 --- /dev/null +++ b/libraries/evas/src/modules/engines/psl1ght/rsxutil.h | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * This software is distributed under the terms of the MIT License | ||
3 | */ | ||
4 | |||
5 | #ifndef __RSXUTIL_H__ | ||
6 | #define __RSXUTIL_H__ | ||
7 | |||
8 | #include <rsx/rsx.h> | ||
9 | #include <ppu-types.h> | ||
10 | |||
11 | #define CB_SIZE 0x100000 | ||
12 | #define HOST_SIZE (32 * 1024 * 1024) | ||
13 | |||
14 | typedef struct | ||
15 | { | ||
16 | int height; | ||
17 | int width; | ||
18 | int id; | ||
19 | uint32_t *ptr; | ||
20 | // Internal stuff | ||
21 | uint32_t offset; | ||
22 | } rsxBuffer; | ||
23 | |||
24 | /* Initilize the RSX properly. Returns NULL on error */ | ||
25 | gcmContextData *initScreen(void *host_addr, u32 size); | ||
26 | /* Block the PPU thread untill the previous flip operation has finished. */ | ||
27 | void waitFlip(void); | ||
28 | /* Flip a buffer onto the screen. Returns TRUE on success */ | ||
29 | int flipBuffer(gcmContextData *context, s32 buffer); | ||
30 | /* Create a buffer to draw into and assign it to @id. Returns NULL on error */ | ||
31 | int makeBuffer(rsxBuffer *buffer, u16 width, u16 height, int id); | ||
32 | /* Copy the contents of a buffer to another buffer */ | ||
33 | int copyBuffer(gcmContextData *context, rsxBuffer *source, rsxBuffer *destination); | ||
34 | /* Get current screen resolution. returns TRUE on success */ | ||
35 | int getResolution(u16 *width, u16 *height); | ||
36 | /* Set screen resolution to closest matching and. returns TRUE on success */ | ||
37 | int setResolution(gcmContextData *context, u16 *width, u16 *height); | ||
38 | /* Initilize the RSX properly. Returns NULL on error */ | ||
39 | void freeScreen(gcmContextData *context); | ||
40 | /* Flush the RSX pipeline (any commands and wait for flip) */ | ||
41 | void flushRSX(gcmContextData *context); | ||
42 | |||
43 | #endif /* __RSXUTIL_H__ */ | ||