Commit Graph

939 Commits

Author SHA1 Message Date
Carsten Haitzler b57b9f5fea make notes about wayland stuff being experimental. we cant really back
it until wayland itself is stable. warnings. lets hope it all works
out fine in the end.



SVN revision: 70486
2012-04-26 03:42:41 +00:00
Carsten Haitzler 40f2ca2e5f fix bug/issue with shader saving - it will fail to save if dir exists
for saved shaders (but doesnt have the binary file there). fixed!
(also compress the file too)



SVN revision: 70382
2012-04-22 04:55:11 +00:00
Carsten Haitzler bbf95e48b7 i don't believe that we forgot that desktopgl has an unload for shader
compiler... use it. minor minor minor.



SVN revision: 70374
2012-04-21 01:51:58 +00:00
Cedric BAIL d80dae3035 eina: fix Eina_Inarray API to at least match Eina_Array API.
NOTE: some of this function should be moved as inline, but that's to late for a change
I think. So we will fix that if needed.

Second point, I am not happy with is eina_inarray_insert and eina_inarray_insert_at. The
naming is really poor.


SVN revision: 70352
2012-04-20 08:30:59 +00:00
Carsten Haitzler 6a18b75743 * Fix gl engine clipping bug when rendering to evas map fbo's
when gl window buffer is smaller than the fbo. used wrong
        surface size in clipping logic.
        


SVN revision: 70125
2012-04-12 08:01:13 +00:00
Carsten Haitzler 67f7f6a2ae formatting fixup.
SVN revision: 70124
2012-04-12 07:57:50 +00:00
Christopher Michael 61a567a7e2 Evas: Fix wayland_shm engine canvas_alpha return.
SVN revision: 69706
2012-03-28 13:01:54 +00:00
Carsten Haitzler ef3db76d55 go back to the "old fashioned way" of doing yuv->rgb without matrix.
the matrix seems to screw up on too many gl drivers/implementations.



SVN revision: 69579
2012-03-23 06:49:42 +00:00
Christopher Michael ec001b86a2 Evas (wayland_shm): Support setting destination alpha.
SVN revision: 69072
2012-03-09 02:33:37 +00:00
Christopher Michael 531668d2ca Evas (wayland_egl): Cleanup compiler warnings.
SVN revision: 69065
2012-03-08 16:55:42 +00:00
Christopher Michael 720f7996ae Evas (wayland): Comment out eglTerminate (is causing hangs when
running under the current weston compositor).



SVN revision: 68518
2012-02-28 21:57:59 +00:00
om101.woo cf569fb2bf From: <om101.woo@samsung.com>
Subject: image data get/set pairing issue

I found a bug about pairing
evas_object_image_data_get/set(eng_image_data_get/put).

It was added to count checked_out for paring
eglMapImageSEC/eglUnmapImageSEC.
 
In case of calling evas_object_image_data_set() twice after calling
evas_object_image_data_get(), dyn.checked_out has -1.

Then, if evas_object_image_data_get() and evas_object_image_data_set()
is call, it can't call eglUnmapImageSEC().
 
If dyn.checked_out has minus, it can make some problem.

So, I fixed this problem.
 
Please find enclosed patch file and let me know if I misunderstood.



SVN revision: 68504
2012-02-28 11:55:14 +00:00
Carsten Haitzler 45bd2a60cd warning--
SVN revision: 68467
2012-02-27 05:52:25 +00:00
Thanatermesis 4776bcfbd7 Fix linking complaints brought out by:
From: Thanatermesis <thanatermesis.ecvs@gmail.com>
Subject: [E-devel] LDFLAGS with -Wl,-z,defs

Aparently if you add the option "-Wl,-z,defs" to your LDFLAGS, there's some
libs that doesn't compile, like evas and e_dbus, there's some logs:



SVN revision: 68464
2012-02-27 05:20:17 +00:00
Sung Park ac0d52f04d Fixed glBindFramebuffer(0) issue for Direct Rendering
optimization.  current_fbo wasn't being set to 0 
so the above case wasn't being handled properly. 



SVN revision: 68392
2012-02-24 08:13:48 +00:00
Seungsoo Woo cf926fda0b From: Seungsoo Woo <om101.woo@samsung.com>
subject: [E-devel] [Patch] Add override gl apis for osmesa

When an application use glBindFramebuffer or glBindRenderbuffer via 
evas_gl after loding libosmesa.so,it shows segment fault.

Because glBindFramebuffer and glBindRenderbuffer are not overrided.
So, I fixed it.



SVN revision: 68391
2012-02-24 07:55:04 +00:00
Cedric BAIL 0dbc99f33a evas: remove software SDL engine, use buffer engine directly.
NOTE: I would like to do the same with software SDL 16bits engine.
But as we don't have a buffer_16 backend, I am likely to just remove
it and use buffer conversion code to match a 16bits target. This
will come with a performance impact, that will make it useless. So
I am just tempted to completly remove it.


SVN revision: 68352
2012-02-23 16:25:07 +00:00
Vincent Torri 4060b7d96e Evas: remove WIN32_CPPFLAGS and WIN32_CFLAGS are there are not used anymore. Move some headers in evas_common.h
SVN revision: 68100
2012-02-18 08:33:00 +00:00
ChunEon Park 839b56769a evas/gl_common - set line color with draw context.
SVN revision: 67870
2012-02-13 05:05:59 +00:00
Carsten Haitzler a3672c0048 let's link to the right libs for wayland shm eh?
SVN revision: 67754
2012-02-08 11:21:05 +00:00
Sung Park 4f4a904816 Fixing my silly mistake before someone else catches it.
I was accessing a variable before it was NULL checked. 
Fixed now.



SVN revision: 67601
2012-01-30 11:21:38 +00:00
Gustavo Sverzut Barbieri 8ca2f1bcaa The polygon drawing code for the DirectFB backend incorrectly casts a
void pointer causing a segfault. The attached patch fixes the issue
and allows an expedite run to complete.

By: Will Newton <will.newton@gmail.com>



SVN revision: 67543
2012-01-25 18:40:22 +00:00
Sung Park 14a94f1a8f Fixed a logic error for Evas GL Direct rendering override
option.

It should have been OR instead of AND operator.

When the image object alpha is on "OR" the rotation angle 
is not "0", direct rendering isn't allowed.  However,  
allow direct rendering if EVAS_GL_DIRECT_OVERRIDE=1 is set. 




SVN revision: 67521
2012-01-25 05:08:23 +00:00
Sung Park 9afd5b3f3f Added Direct Rendering to Evas' window instead of an FBO in Evas_GL.
This optimization is significant for rendering to a large surface 
because it'l save an extra copy overhead as well as an extra rendering pass.

To enable it, you can give EVAS_GL_OPTIONS_DIRECT hint in the surface
config options_bits. The following conditions have to be met in order
for evas to render directly into the Evas' window. If they are not met, the 
engine will fallback to rendering to an FBO as it normally does. 

conditions: 
1.) All the GL calls have to be called using the pixel_get_callback function.
This is necessary for the evas object order to be maintained.
2.) Alpha must be disabled on the image ojbect that renders evas_gl.
3.) No rotation allowed.

One way to override above condition is to set EVAS_GL_DIRECT_OVERRIDE=1 but 
there is no guarantee in its behavior.

Currently, this optimization is added for gl_x11 engine only. 




SVN revision: 67388
2012-01-20 12:29:14 +00:00
Gustavo Sverzut Barbieri 30a5c9e1f7 oopps!
SVN revision: 67354
2012-01-19 16:52:58 +00:00
Gustavo Sverzut Barbieri 9a47bffc98 fix gcc warnings about set-but-unused and shadows of y1.
NOTE: did not touch mess that is jpeg, someone else can deal with it :-P



SVN revision: 67353
2012-01-19 16:49:47 +00:00
Cedric BAIL 54fdc48d6a evas: add double buffer support to buffer engine.
NOTE: This patch is a first step to replace and remove
Evas SDL Software backend.


SVN revision: 67347
2012-01-19 15:17:24 +00:00
Christopher Michael 1a34b86f34 Evas (wayland_egl): Fix 'close' of windows. Basically, we will check
if the eng setup has a NULL surface, and if the RenderEngine has an
existing surface, that means we are hiding/closing the window, and
thus should free the existing RenderEngine Window.



SVN revision: 67160
2012-01-12 23:58:17 +00:00
Sung Park 20b3d52669 Added new Evas GL api called evas_gl_config_new/free()
to ensure backward compatibility.  Previously, the user
simply declared a Evas_GL_Config object but this can
cause problems if more config options are added.  So,
we have Evas allocate the config object for the user
so it can handle addition in the future.

Also, added some safety code around _extensions_init


SVN revision: 67141
2012-01-12 13:54:06 +00:00
Christopher Michael 71e63d268f Evas (wayland_egl): Remove printfs (done debugging that).
SVN revision: 67140
2012-01-12 13:10:53 +00:00
Christopher Michael a75b3126b2 Evas (gl_x11): Move make current so we only have one if.
SVN revision: 67137
2012-01-12 12:25:21 +00:00
Christopher Michael c0dd6f7975 Evas (wayland_egl): Fix egl detection in check_engine. (In theory, the
old version of this w/ the 3 includes Should be working, but I've
tested it on 2 machines now, and it fails on both with those lines in
there, so I am removing them).

Make wayland_egl engine Actually work and draw stuff now (too many
code changes to list them all separately). See http://i.imgur.com/i2eBE.png.




SVN revision: 67128
2012-01-12 09:01:37 +00:00
Christopher Michael dd7d556916 Evas (gl_x11): We cannot call eglMakeCurrent if we have already called
eglTerminate prior (eg: eglTerminate was in the wrong place here).



SVN revision: 67119
2012-01-12 06:06:07 +00:00
Christopher Michael f33a71339c Evas (wayland_egl): Oops, missed one rename on the engine info
structure.



SVN revision: 67102
2012-01-11 23:32:58 +00:00
Christopher Michael 42e82f9092 Evas (wayland_egl): Update code to use more descriptive name for
engine_info_structure.



SVN revision: 67100
2012-01-11 23:28:39 +00:00
Christopher Michael 17b8c59425 Evas (wayland_egl): Use a more descriptive name for the engine info
structure.



SVN revision: 67099
2012-01-11 23:28:01 +00:00
Christopher Michael 34ab2ff6cd Evas (wayland_egl): Destroy the wl_egl_window also when we free.
SVN revision: 67075
2012-01-11 12:58:59 +00:00
Christopher Michael e89e7d8ef5 Evas (wayland_egl): Use proper header name. Remove commented line.
SVN revision: 67074
2012-01-11 12:41:08 +00:00
Christopher Michael ad8ca8457c Evas (wayland_egl): Redo wayland egl engine code to more closely match
gl_x11.

NB: Not fully functional yet, but does build.



SVN revision: 67073
2012-01-11 12:23:44 +00:00
Christopher Michael 98f19e05fe Evas (wayland_egl): Remove obsolete file (replacing in a minute).
SVN revision: 67072
2012-01-11 12:22:36 +00:00
Christopher Michael 0b6f56aa34 Evas (software_generic): Add UNUSED for params that are not used
(where missing).
Remove unused variables.
Comment out functions that were defined but not used.



SVN revision: 67066
2012-01-11 10:40:17 +00:00
Christopher Michael dec27dd7de Evas (gl_common): Remove unused variable.
SVN revision: 67064
2012-01-11 10:35:52 +00:00
Christopher Michael 4e103ad78c Evas (gl_x11): Fix no return value in function that is supposed to
have Something returned.



SVN revision: 67063
2012-01-11 10:34:03 +00:00
Christopher Michael 2e70a02465 Evas (gl_x11 engine): Fix compiler warning about get_time function.
SVN revision: 67058
2012-01-11 09:48:47 +00:00
Youness Alaoui 3cbe46ccc9 Evas: engine for Mac is GL_COCOA not GL_QUARTZ
SVN revision: 66964
2012-01-08 07:21:35 +00:00
Cedric BAIL 8a4dfb08c1 evas: just disable Evas_GL support in software engine when we don't have dlopen.
NOTE: there is many system without dlopen and we do support them. Please keep it
this way in the future.


SVN revision: 66901
2012-01-05 12:59:08 +00:00
Sung Park 2f6b837c7c Added EvasGL support for software backend finally.
* This feature requires libOSMesa to be installed.   

One caveat with OSMesa is that a surface config (ie. Depth Buffer and etc)
is associated with a context rather than a surface, which is the case 
in EvasGL.  So for now, when a user specifies a surface config, it gets 
associated with the first context that the surface does a make current to.
For typical usage case, this shouldn't be a prolem. Will need to fix it 
eventually.




SVN revision: 66896
2012-01-05 07:55:23 +00:00
Carsten Haitzler 3f915e1e3f oops dont enable copy path!
SVN revision: 66727
2012-01-02 03:32:57 +00:00
Carsten Haitzler 8e4391d38b make some more notes for partial swap (copy gabk to front) but still
doesnt work.. just sits there and does nothing. wtf.



SVN revision: 66726
2012-01-02 03:30:23 +00:00
Carsten Haitzler 4273f5846c found nvidia eat-cpu-bug. glXWaitGL() spins using all cpu it can find,
though nvidia fixed the spinning on glXSwapBuffers() long ago, they
didn't fix this one.



SVN revision: 66710
2012-01-01 06:47:16 +00:00