summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-11-14 11:10:27 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-11-14 11:32:46 +0900
commitcd8d68cda450c8b377f51710baa1328c0f448ae8 (patch)
treeeaa37e4e9f9c26c7b14b74f83ef2644baedf4300
parent0be124ca4d849f380bbbb12a13809e9596ff4376 (diff)
Evas GL: Import a few more extensions and fix a name
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h118
1 files changed, 107 insertions, 11 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h b/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h
index 13f616ee49..52f0c19ae9 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h
+++ b/src/modules/evas/engines/gl_common/evas_gl_api_ext_def.h
@@ -309,10 +309,16 @@ _EVASGL_EXT_BEGIN(multisampled_render_to_texture)
309 _EVASGL_EXT_FUNCTION_PRIVATE_END() 309 _EVASGL_EXT_FUNCTION_PRIVATE_END()
310_EVASGL_EXT_END() 310_EVASGL_EXT_END()
311 311
312/* ETC1 compressed texture format support */
312_EVASGL_EXT_BEGIN(compressed_ETC1_RGB8_texture) 313_EVASGL_EXT_BEGIN(compressed_ETC1_RGB8_texture)
313 _EVASGL_EXT_DRVNAME(GL_OES_compressed_ETC1_RGB8_texture) 314 _EVASGL_EXT_DRVNAME(GL_OES_compressed_ETC1_RGB8_texture)
314_EVASGL_EXT_END() 315_EVASGL_EXT_END()
315 316
317/* SubImage texture upload support for ETC1*/
318_EVASGL_EXT_BEGIN(compressed_ETC1_RGB8_sub_texture)
319 _EVASGL_EXT_DRVNAME(GL_EXT_compressed_ETC1_RGB8_sub_texture)
320_EVASGL_EXT_END()
321
316_EVASGL_EXT_BEGIN(compressed_ETC2_RGB8_texture) 322_EVASGL_EXT_BEGIN(compressed_ETC2_RGB8_texture)
317 _EVASGL_EXT_DRVNAME(GL_OES_compressed_ETC2_RGB8_texture) 323 _EVASGL_EXT_DRVNAME(GL_OES_compressed_ETC2_RGB8_texture)
318_EVASGL_EXT_END() 324_EVASGL_EXT_END()
@@ -361,6 +367,10 @@ _EVASGL_EXT_BEGIN(texture_half_float)
361 _EVASGL_EXT_DRVNAME(GL_OES_texture_half_float) 367 _EVASGL_EXT_DRVNAME(GL_OES_texture_half_float)
362_EVASGL_EXT_END() 368_EVASGL_EXT_END()
363 369
370_EVASGL_EXT_BEGIN(texture_float_linear)
371 _EVASGL_EXT_DRVNAME(GL_OES_texture_float_linear)
372_EVASGL_EXT_END()
373
364_EVASGL_EXT_BEGIN(texture_half_float_linear) 374_EVASGL_EXT_BEGIN(texture_half_float_linear)
365 _EVASGL_EXT_DRVNAME(GL_OES_texture_half_float_linear) 375 _EVASGL_EXT_DRVNAME(GL_OES_texture_half_float_linear)
366_EVASGL_EXT_END() 376_EVASGL_EXT_END()
@@ -452,6 +462,19 @@ _EVASGL_EXT_END()
452_EVASGL_EXT_BEGIN(QCOM_writeonly_rendering) 462_EVASGL_EXT_BEGIN(QCOM_writeonly_rendering)
453 _EVASGL_EXT_DRVNAME(GL_QCOM_writeonly_rendering) 463 _EVASGL_EXT_DRVNAME(GL_QCOM_writeonly_rendering)
454_EVASGL_EXT_END() 464_EVASGL_EXT_END()
465
466_EVASGL_EXT_BEGIN(read_format)
467 _EVASGL_EXT_DRVNAME(GL_OES_read_format)
468_EVASGL_EXT_END()
469
470/* GL_OES_fragment_precision_high:
471 This extension has been withdrawn. See the specification of
472 GetShaderPrecisionFormat in section 6.1.8 of the OpenGL ES 2.0
473 Specification to determine within the API if high-precision fragment
474 shader varyings are supported by the implementation.
475 */
476
477
455/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 478///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
456 479
457 480
@@ -1089,6 +1112,35 @@ _EVASGL_EXT_BEGIN(QCOM_tiled_rendering)
1089 _EVASGL_EXT_FUNCTION_END() 1112 _EVASGL_EXT_FUNCTION_END()
1090_EVASGL_EXT_END() 1113_EVASGL_EXT_END()
1091 1114
1115_EVASGL_EXT_BEGIN(element_index_uint)
1116 _EVASGL_EXT_DRVNAME(GL_OES_element_index_uint)
1117_EVASGL_EXT_END()
1118
1119_EVASGL_EXT_BEGIN(fbo_render_mipmap)
1120 _EVASGL_EXT_DRVNAME(GL_OES_fbo_render_mipmap)
1121_EVASGL_EXT_END()
1122
1123_EVASGL_EXT_BEGIN(mali_program_binary)
1124 _EVASGL_EXT_DRVNAME(GL_ARM_mali_program_binary)
1125_EVASGL_EXT_END()
1126
1127_EVASGL_EXT_BEGIN(mali_shader_binary)
1128 _EVASGL_EXT_DRVNAME(GL_ARM_mali_shader_binary)
1129_EVASGL_EXT_END()
1130
1131_EVASGL_EXT_BEGIN(depth_texture)
1132 _EVASGL_EXT_DRVNAME(GL_OES_depth_texture)
1133_EVASGL_EXT_END()
1134
1135_EVASGL_EXT_BEGIN(depth_texture_cube_map)
1136 _EVASGL_EXT_DRVNAME(GL_OES_depth_texture_cube_map)
1137_EVASGL_EXT_END()
1138
1139_EVASGL_EXT_BEGIN(shader_texture_lod)
1140 _EVASGL_EXT_DRVNAME(GL_EXT_shader_texture_lod)
1141_EVASGL_EXT_END()
1142
1143
1092 1144
1093/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 1145///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1094 1146
@@ -1307,13 +1359,43 @@ _EVASGL_EXT_END()
1307// ---------------------------------------------------------- 1359// ----------------------------------------------------------
1308_EVASGL_EXT_BEGIN(framebuffer_blit) 1360_EVASGL_EXT_BEGIN(framebuffer_blit)
1309_EVASGL_EXT_DRVNAME(GL_NV_framebuffer_blit) 1361_EVASGL_EXT_DRVNAME(GL_NV_framebuffer_blit)
1362_EVASGL_EXT_DRVNAME(GL_ANGLE_framebuffer_blit)
1310 1363
1311_EVASGL_EXT_FUNCTION_WHITELIST("glBlitFramebuffer") 1364_EVASGL_EXT_FUNCTION_WHITELIST("glBlitFramebuffer")
1312_EVASGL_EXT_FUNCTION_WHITELIST("glBlitFramebufferNV") 1365_EVASGL_EXT_FUNCTION_WHITELIST("glBlitFramebufferNV")
1366_EVASGL_EXT_FUNCTION_WHITELIST("glBlitFramebufferANGLE")
1313 1367
1314_EVASGL_EXT_END() 1368_EVASGL_EXT_END()
1315 1369
1316 1370
1371// ----------------------------------------------------------
1372_EVASGL_EXT_BEGIN(framebuffer_multisample)
1373_EVASGL_EXT_DRVNAME(GL_ANGLE_framebuffer_multisample)
1374
1375_EVASGL_EXT_FUNCTION_WHITELIST("glRenderbufferStorageMultisampleANGLE")
1376
1377_EVASGL_EXT_END()
1378
1379
1380// ----------------------------------------------------------
1381_EVASGL_EXT_BEGIN(point_sprite)
1382 _EVASGL_EXT_DRVNAME(GL_OES_point_sprite)
1383_EVASGL_EXT_END()
1384
1385
1386// ----------------------------------------------------------
1387// This "extension" is already listed in the base GLES1 API
1388// Provided here as convenience for evas_gl_proc_address_get
1389_EVASGL_EXT_BEGIN(point_size_array)
1390 _EVASGL_EXT_DRVNAME(GL_OES_point_size_array)
1391
1392 _EVASGL_EXT_FUNCTION_WHITELIST("glPointSizePointer")
1393 _EVASGL_EXT_FUNCTION_WHITELIST("glPointSizePointerOES")
1394_EVASGL_EXT_END()
1395
1396
1397
1398
1317#endif // _EVASGL_EXT_WHITELIST_ONLY ("safe" extensions) 1399#endif // _EVASGL_EXT_WHITELIST_ONLY ("safe" extensions)
1318 1400
1319/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 1401///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -1350,8 +1432,8 @@ _EVASGL_EXT_BEGIN(EGL_KHR_image_base)
1350 #ifdef _EVASGL_EXT_VERIFY 1432 #ifdef _EVASGL_EXT_VERIFY
1351 { 1433 {
1352 // Add special function pointers 1434 // Add special function pointers
1353 evgl_evasglCreateImage_ptr = GETPROCADDR("eglCreateImageKHR"); 1435 //evgl_evasglCreateImage_ptr = GETPROCADDR("eglCreateImageKHR");
1354 evgl_evasglDestroyImage_ptr = GETPROCADDR("eglDestroyImageKHR"); 1436 //evgl_evasglDestroyImage_ptr = GETPROCADDR("eglDestroyImageKHR");
1355 } 1437 }
1356 #endif 1438 #endif
1357 1439
@@ -1379,7 +1461,7 @@ _EVASGL_EXT_BEGIN(GL_OES_EGL_image)
1379 1461
1380 #ifdef _EVASGL_EXT_VERIFY 1462 #ifdef _EVASGL_EXT_VERIFY
1381 { 1463 {
1382 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base") _EVASGL_EXT_DISCARD_SUPPORT(); 1464 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base")) _EVASGL_EXT_DISCARD_SUPPORT();
1383 } 1465 }
1384 #endif 1466 #endif
1385 1467
@@ -1391,7 +1473,7 @@ _EVASGL_EXT_BEGIN(EGL_KHR_image_pixmap)
1391 _EVASGL_EXT_DRVNAME(EGL_KHR_image_pixmap) 1473 _EVASGL_EXT_DRVNAME(EGL_KHR_image_pixmap)
1392 #ifdef _EVASGL_EXT_VERIFY 1474 #ifdef _EVASGL_EXT_VERIFY
1393 { 1475 {
1394 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base") _EVASGL_EXT_DISCARD_SUPPORT(); 1476 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base")) _EVASGL_EXT_DISCARD_SUPPORT();
1395 } 1477 }
1396 #endif 1478 #endif
1397_EVASGL_EXT_END() 1479_EVASGL_EXT_END()
@@ -1401,17 +1483,17 @@ _EVASGL_EXT_BEGIN(EGL_KHR_image)
1401 _EVASGL_EXT_DRVNAME(EGL_KHR_image) 1483 _EVASGL_EXT_DRVNAME(EGL_KHR_image)
1402 #ifdef _EVASGL_EXT_VERIFY 1484 #ifdef _EVASGL_EXT_VERIFY
1403 { 1485 {
1404 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base") _EVASGL_EXT_DISCARD_SUPPORT(); 1486 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base")) _EVASGL_EXT_DISCARD_SUPPORT();
1405 } 1487 }
1406 #endif 1488 #endif
1407_EVASGL_EXT_END() 1489_EVASGL_EXT_END()
1408 1490
1409 1491
1410_EVASGL_EXT_BEGIN(EGL_KHR_vg_parent_image) 1492_EVASGL_EXT_BEGIN(EGL_KHR_vg_parent_image)
1411 _EVASGL_EXT_DRVNAME(EvasGL_KHR_vg_parent_image) 1493 _EVASGL_EXT_DRVNAME(EGL_KHR_vg_parent_image)
1412 #ifdef _EVASGL_EXT_VERIFY 1494 #ifdef _EVASGL_EXT_VERIFY
1413 { 1495 {
1414 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base") _EVASGL_EXT_DISCARD_SUPPORT(); 1496 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base")) _EVASGL_EXT_DISCARD_SUPPORT();
1415 } 1497 }
1416 #endif 1498 #endif
1417_EVASGL_EXT_END() 1499_EVASGL_EXT_END()
@@ -1421,7 +1503,7 @@ _EVASGL_EXT_BEGIN(EGL_KHR_gl_texture_2D_image)
1421 _EVASGL_EXT_DRVNAME(EGL_KHR_gl_texture_2D_image) 1503 _EVASGL_EXT_DRVNAME(EGL_KHR_gl_texture_2D_image)
1422 #ifdef _EVASGL_EXT_VERIFY 1504 #ifdef _EVASGL_EXT_VERIFY
1423 { 1505 {
1424 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base") _EVASGL_EXT_DISCARD_SUPPORT(); 1506 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base")) _EVASGL_EXT_DISCARD_SUPPORT();
1425 } 1507 }
1426 #endif 1508 #endif
1427_EVASGL_EXT_END() 1509_EVASGL_EXT_END()
@@ -1431,7 +1513,7 @@ _EVASGL_EXT_BEGIN(EGL_KHR_gl_texture_cubemap_image)
1431 _EVASGL_EXT_DRVNAME(EGL_KHR_gl_texture_cubemap_image) 1513 _EVASGL_EXT_DRVNAME(EGL_KHR_gl_texture_cubemap_image)
1432 #ifdef _EVASGL_EXT_VERIFY 1514 #ifdef _EVASGL_EXT_VERIFY
1433 { 1515 {
1434 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base") _EVASGL_EXT_DISCARD_SUPPORT(); 1516 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base")) _EVASGL_EXT_DISCARD_SUPPORT();
1435 } 1517 }
1436 #endif 1518 #endif
1437_EVASGL_EXT_END() 1519_EVASGL_EXT_END()
@@ -1441,7 +1523,7 @@ _EVASGL_EXT_BEGIN(EGL_KHR_gl_texture_3D_image)
1441 _EVASGL_EXT_DRVNAME(EGL_KHR_gl_texture_3D_image) 1523 _EVASGL_EXT_DRVNAME(EGL_KHR_gl_texture_3D_image)
1442 #ifdef _EVASGL_EXT_VERIFY 1524 #ifdef _EVASGL_EXT_VERIFY
1443 { 1525 {
1444 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base") _EVASGL_EXT_DISCARD_SUPPORT(); 1526 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base")) _EVASGL_EXT_DISCARD_SUPPORT();
1445 } 1527 }
1446 #endif 1528 #endif
1447_EVASGL_EXT_END() 1529_EVASGL_EXT_END()
@@ -1451,14 +1533,28 @@ _EVASGL_EXT_BEGIN(EGL_KHR_gl_renderbuffer_image)
1451 _EVASGL_EXT_DRVNAME(EGL_KHR_gl_renderbuffer_image) 1533 _EVASGL_EXT_DRVNAME(EGL_KHR_gl_renderbuffer_image)
1452 #ifdef _EVASGL_EXT_VERIFY 1534 #ifdef _EVASGL_EXT_VERIFY
1453 { 1535 {
1454 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base") _EVASGL_EXT_DISCARD_SUPPORT(); 1536 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base")) _EVASGL_EXT_DISCARD_SUPPORT();
1537 }
1538 #endif
1539_EVASGL_EXT_END()
1540
1541
1542_EVASGL_EXT_BEGIN(GL_OES_EGL_image_external)
1543 _EVASGL_EXT_DRVNAME(GL_OES_EGL_image_external)
1544 #ifdef _EVASGL_EXT_VERIFY
1545 {
1546 if (!_EVASGL_EXT_CHECK_SUPPORT("EGL_KHR_image_base")) _EVASGL_EXT_DISCARD_SUPPORT();
1455 } 1547 }
1456 #endif 1548 #endif
1457_EVASGL_EXT_END() 1549_EVASGL_EXT_END()
1458 1550
1551
1459_EVASGL_EXT_BEGIN(EGL_KHR_fence_sync) 1552_EVASGL_EXT_BEGIN(EGL_KHR_fence_sync)
1460 1553
1554 /* 3 aliasses for EGL_KHR_fence_sync */
1461 _EVASGL_EXT_DRVNAME(EGL_KHR_fence_sync) 1555 _EVASGL_EXT_DRVNAME(EGL_KHR_fence_sync)
1556 _EVASGL_EXT_DRVNAME(GL_OES_EGL_sync)
1557 _EVASGL_EXT_DRVNAME(VG_KHR_EGL_sync)
1462 1558
1463 _EVASGL_EXT_FUNCTION_PRIVATE_BEGIN(void *, eglCreateSyncKHR, (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list)) 1559 _EVASGL_EXT_FUNCTION_PRIVATE_BEGIN(void *, eglCreateSyncKHR, (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list))
1464 _EVASGL_EXT_FUNCTION_DRVFUNC_PROCADDR("eglCreateSyncKHR") 1560 _EVASGL_EXT_FUNCTION_DRVFUNC_PROCADDR("eglCreateSyncKHR")