Commit 423377e7 by Nicolas Capens Committed by Nicolas Capens

Fix Chrome build.

Change-Id: I25567211a4603713ad89a1eb58aa3306b11be0ab Reviewed-on: https://swiftshader-review.googlesource.com/15689Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 0424edcb
...@@ -49,7 +49,6 @@ namespace ...@@ -49,7 +49,6 @@ namespace
HalfFloatRGB, HalfFloatRGB,
RGBA4444, RGBA4444,
RGBA5551, RGBA5551,
RGB10A2UI,
R11G11B10F, R11G11B10F,
RGB9E5, RGB9E5,
D16, D16,
...@@ -254,22 +253,6 @@ namespace ...@@ -254,22 +253,6 @@ namespace
} }
template<> template<>
void LoadImageRow<RGB10A2UI>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
{
const unsigned int *source1010102U = reinterpret_cast<const unsigned int*>(source);
unsigned short *dest16U = reinterpret_cast<unsigned short*>(dest + xoffset * 8);
for(int x = 0; x < width; x++)
{
unsigned int rgba = source1010102U[x];
dest16U[4 * x + 0] = (rgba & 0x000003FF);
dest16U[4 * x + 1] = (rgba & 0x000FFC00) >> 10;
dest16U[4 * x + 2] = (rgba & 0x3FF00000) >> 20;
dest16U[4 * x + 3] = (rgba & 0xC0000000) >> 30;
}
}
template<>
void LoadImageRow<R11G11B10F>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width) void LoadImageRow<R11G11B10F>(const unsigned char *source, unsigned char *dest, GLint xoffset, GLsizei width)
{ {
const sw::R11G11B10F *sourceRGB = reinterpret_cast<const sw::R11G11B10F*>(source); const sw::R11G11B10F *sourceRGB = reinterpret_cast<const sw::R11G11B10F*>(source);
......
...@@ -27,8 +27,8 @@ config("swiftshader_opengl_preprocessor_private_config") { ...@@ -27,8 +27,8 @@ config("swiftshader_opengl_preprocessor_private_config") {
swiftshader_source_set("swiftshader_opengl_preprocessor") { swiftshader_source_set("swiftshader_opengl_preprocessor") {
sources = [ sources = [
"Diagnostics.cpp", "DiagnosticsBase.cpp",
"DirectiveHandler.cpp", "DirectiveHandlerBase.cpp",
"DirectiveParser.cpp", "DirectiveParser.cpp",
"ExpressionParser.cpp", "ExpressionParser.cpp",
"Input.cpp", "Input.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