Support for ASTC compressed textures wrapped in KTX files 77/54477/11
authorTom Robinson <tom.robinson@samsung.com>
Tue, 15 Dec 2015 11:29:44 +0000 (11:29 +0000)
committerTom Robinson <tom.robinson@samsung.com>
Fri, 8 Jan 2016 15:14:47 +0000 (07:14 -0800)
commitd4c3e36f85ffb2e2aebef5833825b65245dff4e7
treecc4e19e7842226f711b8a4ff4aeac7a3da3ba8bc
parent14bcc3b0ecf3fbd88c18da066b528fc3a0e09091
Support for ASTC compressed textures wrapped in KTX files

ASTC is supported by OpenGL ES 3.1 and above.
To build this patch with ASTC support, a GLES 31 context must be specified.

To build for desktop with configure, the gles version must be set to 31.
Here is an example configure line:
CXXFLAGS="-g -O0 -Wno-unused-local-typedefs" CXX="ccache g++" ./configure --prefix=$DESKTOP_PREFIX --enable-debug=yes --enable-profile=UBUNTU --enable-gles=31

With GBS, add the following to your gbs build line:
--define "%target_gles_version 31"

Change-Id: I376e55094e408c1b9081a3e86b81e7b3d64633bd
17 files changed:
README
adaptors/common/gl/egl-implementation.cpp
adaptors/common/gl/gl-implementation.h
automated-tests/images/frac-32x64.png [new file with mode: 0644]
automated-tests/images/fractal-compressed-ETC1_RGB8_OES-45x80.ktx [new file with mode: 0644]
automated-tests/images/fractal-compressed-R11_EAC-45x80.ktx [new file with mode: 0644]
automated-tests/images/fractal-compressed-RGB8_ETC2-45x80.ktx [new file with mode: 0644]
automated-tests/images/fractal-compressed-RGBA_ASTC_4x4_KHR-32x64.ktx [new file with mode: 0644]
automated-tests/images/fractal-compressed-RGB_PVRTC_4BPPV1_IMG-32x64.ktx [new file with mode: 0644]
automated-tests/images/fractal-compressed-SRBG8_ALPHA8_ASTC_4x4_KHR-32x64.ktx [new file with mode: 0644]
automated-tests/src/dali-adaptor-internal/CMakeLists.txt
automated-tests/src/dali-adaptor-internal/image-loaders.cpp
automated-tests/src/dali-adaptor-internal/image-loaders.h
automated-tests/src/dali-adaptor-internal/utc-Dali-CompressedTextures.cpp [new file with mode: 0644]
packaging/dali-adaptor.spec
platform-abstractions/tizen/image-loaders/loader-ktx.cpp
platform-abstractions/tizen/image-loaders/loader-ktx.h