Stephen Hines
514f9790fd
Call .rs.dtor() when tearing down Scripts.
...
BUG=5186750
This allows us to properly reference count any globals (static or extern) that
need to potentially be cleaned up.
Change-Id: I03d2c38c1e7a4ca96c40003d2eeecb6f395d5835
2011-08-31 17:41:39 -07:00
Stephen Hines
1222393e35
Issue proper parameters to root() calls for RS.
...
BUG=5076887
Change-Id: Ic0ce9d45ee20a99add4c780233c0804d05a55e96
2011-08-19 12:27:07 -07:00
Jason Sams
c1b4c1ff9b
Add structure to pack params for forEach.
...
This allows the driver to not pass all the sub-params.
Change-Id: I9728a7bb39893f49193a55155994ede0400cb7a6
2011-08-17 14:13:50 -07:00
Stephen Hines
514a0b3612
Merge "Migrate perf-critical functions away from librs."
2011-08-08 16:12:56 -07:00
Stephen Hines
e004058419
Migrate perf-critical functions away from librs.
...
BUG=3497315
Change-Id: Ieaa0d64933767d422aa62740d72b31042dcd4a2f
2011-08-08 15:09:10 -07:00
Alex Sakhartchouk
75e0254731
Merge "Fixing rs crash when no texture is bound."
2011-08-08 11:25:03 -07:00
Alex Sakhartchouk
bbc41c034b
Fixing rs crash when no texture is bound.
...
Change-Id: I2c15106f50de995c63691f27e2c4d89dbffc758e
2011-08-05 15:27:25 -07:00
Stephen Hines
8f019d6305
Merge "Start using bcinfo components within librs."
2011-08-05 13:47:00 -07:00
Stephen Hines
4382467a80
Start using bcinfo components within librs.
...
BUG=4942491
Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
2011-08-03 18:46:56 -07:00
Logan Chien
8ce8a1af76
Finish the refactor work of bccPrepareExecutable
...
Rename bccPrepareExecutableEx to bccPrepareExecutable.
(These functions are the same, and we will remove
bccPrepareExecutableEx several commits later.)
Change-Id: I519130bb3b731bf927cb92924f355d7d1ea0242c
2011-07-30 16:55:02 +08:00
Jason Sams
cf57dec80b
Add size param to rsForEach
...
bug 5074640
Change-Id: I395bd8b295beacc979681ccdd3451d9d6cc3d672
2011-07-25 12:58:37 -07:00
Stephen Hines
c27d187569
Extract BC metadata using a single call.
...
BUG=4278636
Change-Id: Idc056c4fa50240aadbc81d300fbed759c5a187cf
2011-07-18 17:49:44 -07:00
Jason Sams
3ac60ada27
Merge "Add slot number to forEach hal."
2011-07-13 12:28:38 -07:00
Jason Sams
92b0eab07e
Add slot number to forEach hal.
...
Change-Id: I0f2992d5f4128422d07f897b335c219cc7f1d02c
2011-07-13 11:26:26 -07:00
Logan Chien
ef72ff220c
Use resource entry name instead of mangled name.
...
Change-Id: I833fa1b529fe505ce20ede12b7f4b5952a6ac1f0
2011-07-11 15:32:24 +08:00
Logan Chien
e723caee39
Fix typo: mFieldCount -> mPragmaCount.
...
Change-Id: I081a521c13a78bc5ec1bf9faecb066bed5ca8ab4
2011-07-11 07:57:24 +08:00
Mathias Agopian
1861786a97
Fix EGLUtils::selectConfigForPixelFormat()
...
- renderscript now calls EGL directly instead of relying on this function
- surfaceflinger also does its own EGLConfig selection
- selectConfigForPixelFormat stays for legacy reason (many tests use it) but
it now only tries to match the alpha channel of the format rather than the
format itself.
this will allow implementations who don't support the exact formats
defined in the HAL to work properly.
Bug: 4998223
Change-Id: Ic664dfc14d5072a514b6f77a115d1521bfc1578f
2011-07-08 14:37:05 -07:00
Stephen Hines
e352f05d3a
Move divsi3, modsi3, udivsi3, umodsi3 to libbcc.
...
BUG=3435530
Change-Id: I4e90a6cdf5af534f93d83093ea31b1defd1e896c
2011-06-23 16:49:00 -07:00
Stephen Hines
3d782666d7
Remove verbose logging, update test app and docs.
...
Change-Id: I6659c5e51a747011239128dc2682a5d78aecfa26
2011-06-23 16:18:28 -07:00
Jason Sams
71767c5577
First cut of atomics for renderscript.
...
Change-Id: Iefc0228d802e6f5348ae787553c9252fb90ba110
update atomic patch.
Change-Id: Idd0596439c092f570b6b226e9a9c7102ddffe88e
2011-06-21 17:07:18 -07:00
Jason Sams
faa32b33b5
First cut at RSTextureView.
...
Change-Id: I920950f33079b6bb7e48bb8970201ab9737bb021
2011-06-20 16:58:04 -07:00
Alex Sakhartchouk
8650c32907
Adding ability to read back fbo data to renderscript
...
Change-Id: Ie684c26cbcde22f2483b43415dfc39a3de22c5a1
2011-06-16 11:05:13 -07:00
Alex Sakhartchouk
304b1f5497
Allocation copy functions.
...
Change-Id: Idce6d44a4f4bb2e399284a40c0f90dc1bff912fd
2011-06-14 11:13:19 -07:00
Alex Sakhartchouk
17a8a1939d
More work to make libRS buildable on the host.
...
Change-Id: I239585ef7c1334f7fc19fa6423535dea7b9a753f
2011-06-03 10:18:01 -07:00
Jason Sams
66db3ab50f
Cleaup of rsComponent to remove GL types.
...
Change-Id: I9f82bafe42f5fb30335b15f38eb251dc1ec62e80
2011-05-26 17:05:51 -07:00
Jason Sams
7e8aae7f76
Start splitting allocation into hal and core.
...
Change-Id: Ic506abb0469238cb0471eb1401cfcb7b2fbbe4bb
2011-05-26 16:33:01 -07:00
Alex Sakhartchouk
6c72eec06e
Preparing libRS for for compilation on host.
...
Change-Id: I851add79831331c8a8b20dcccdb0817f8ad0c359
2011-05-17 16:42:24 -07:00
Alex Sakhartchouk
2f6964fc89
Moves fbo support in renderscript behind the hal
...
Change-Id: I26a857586f5f0b47df4c1f4589d2023e70481ec7
2011-05-13 14:53:34 -07:00
Alex Sakhartchouk
407cae9503
rsLib cleanup
...
Change-Id: Ifb66059338e3435ac79435296a650c44699921aa
2011-05-06 14:59:45 -07:00
Alex Sakhartchouk
438505431c
Moving samplers behind the hal.
...
Change-Id: I494e5a9d2b599d07b985328b346f1f10ae4972e1
2011-05-05 16:56:27 -07:00
Alex Sakhartchouk
4a36b45c72
Moving renderscript GL code into the HAL
...
This change affects
- shaders
- meshes
- fonts
- quad rendering
Change-Id: I2a53acb4cd1fa8f4c6e67668f6ee969f3d7f7aa1
2011-04-29 16:49:08 -07:00
Jason Sams
e2b3304e40
Fix rsRand(float, float)
...
Change-Id: I553d83e1e962ad34aacbe6572d47ff25c3d50060
2011-04-22 14:25:07 -07:00
Jason Sams
b86a6ea41d
Merge "Move TLS behind hal."
2011-04-21 15:12:25 -07:00
Jason Sams
be8ac6ace9
Move TLS behind hal.
...
Change-Id: I9e84acb3736bc98fa5fb0720bddb13a030285319
2011-04-21 11:46:50 -07:00
Stephen Hines
118782298b
Merge "Reduce verbosity of Renderscript logging."
2011-04-20 17:22:36 -07:00
Jason Sams
0ec8c6f9a8
Remove accidental logging.
...
Change-Id: I59073a620c312485a0631069856fbd7ca40b4cbd
2011-04-20 17:14:26 -07:00
Stephen Hines
9c35d790e9
Reduce verbosity of Renderscript logging.
...
Change-Id: I0e20274e01b4068f90ef6ddd6ed7837d42f35813
2011-04-20 17:08:14 -07:00
Jason Sams
fcf7231249
Create runtime stubs for compute driver.
...
Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
2011-04-20 15:09:01 -07:00
Stephen Hines
97837c9172
Fix broken assert (if input allocation is NULL).
...
Change-Id: If02e86eee4ec059402edd6f8c408fd89b248bc80
2011-04-11 14:02:22 -07:00
Jason Sams
803626f615
Migrate most GL from context to driver.
...
Change-Id: I5cba3a6e879d2e9332fc667a1061a5312fcf14ba
2011-04-06 17:52:23 -07:00
Jason Sams
331bf9b14b
Seperate ProgramRaster.
...
Cleanup ProgramRaster and ProgramStore creation.
Change-Id: If25ea74355238d405340f0ccfb8117ad6e1307b7
2011-04-06 11:23:54 -07:00
Jason Sams
48f505657a
Seperate GL from RS program store.
...
Change-Id: I0eae9c0699845af8e8611b065e70738cc9f2b15c
2011-04-04 17:09:37 -07:00
Stephen Hines
623cb9585e
Properly handle script teardown.
...
If libbcc optimizes away a global variable, we need to make sure that
RenderScript's ~Context() doesn't attempt to clear away the slot's NULL
pointer that denotes this.
Change-Id: I77d0f740ab333338e53db481e4a3eca338aba411
2011-03-24 20:07:23 -07:00
Stephen Hines
044d7d99f8
Revert "Fix cleanup bug clearing script references."
...
This change was actually incorrect and causes crashes in ~Context.
This reverts commit 88728ecaeab1358e1748cbbf6ed954fd9a960692.
2011-03-24 11:50:40 -07:00
Jason Sams
88728ecaea
Fix cleanup bug clearing script references.
...
Change-Id: I693dd7523658a32837764854c12a6b690e8fb7c6
2011-03-18 17:38:40 -07:00
Jason Sams
80e29cf5c4
Fix bug with hal init uninitialized var.
...
Change-Id: I172bb65b57653e32697f2c2df941beb0aaf65603
2011-03-18 17:08:54 -07:00
Jason Sams
55d2a25402
Migrate thread launch to driver.
...
Change-Id: If182c524cceb327547640f22f956856d291d1787
2011-03-17 16:14:27 -07:00
Jason Sams
e4a06c5fc7
Start seperating out RS compute implementation. Create hal
...
layer to seperate from runtime.
Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
2011-03-17 16:13:03 -07:00