Commit dcf1d858 by Greg Hartman

Fixes for JBMR1

Remove references to JBMR2+ HAL pixel formats. We don't support them anyway. Link EGL against LLVM. This happens because there are some dependencies in the android_top libraries. I suspect it's happening because we link per-file, not per-function. Change-Id: Ibc37d3fcbe9967fcffdaa35e07d4cc654c13d46e Reviewed-on: https://swiftshader-review.googlesource.com/3150Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarGreg Hartman <ghartman@google.com>
parent eafdb22c
......@@ -35,12 +35,9 @@ GLenum getColorFormatFromAndroid(int format)
return GL_RGB565_OES;
#endif
case HAL_PIXEL_FORMAT_YV12:
case HAL_PIXEL_FORMAT_Y8:
case HAL_PIXEL_FORMAT_Y16:
case HAL_PIXEL_FORMAT_RAW_SENSOR:
case HAL_PIXEL_FORMAT_BLOB:
case HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED:
case HAL_PIXEL_FORMAT_YCbCr_420_888:
default:
ALOGE("%s badness unsupported format=%x", __FUNCTION__, format);
}
......@@ -70,12 +67,9 @@ GLenum getPixelFormatFromAndroid(int format)
return GL_UNSIGNED_SHORT_5_6_5;
#endif
case HAL_PIXEL_FORMAT_YV12:
case HAL_PIXEL_FORMAT_Y8:
case HAL_PIXEL_FORMAT_Y16:
case HAL_PIXEL_FORMAT_RAW_SENSOR:
case HAL_PIXEL_FORMAT_BLOB:
case HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED:
case HAL_PIXEL_FORMAT_YCbCr_420_888:
default:
ALOGE("%s badness unsupported format=%x", __FUNCTION__, format);
}
......
......@@ -4,7 +4,8 @@ COMMON_CFLAGS := \
-DLOG_TAG=\"libEGL_swiftshader\" \
-std=c++11 \
-DEGLAPI= \
-DEGL_EGLEXT_PROTOTYPES
-DEGL_EGLEXT_PROTOTYPES \
-Wno-unused-parameter
COMMON_SRC_FILES := \
Config.cpp \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment