Commit 3ea9295f by Alexis Hetu Committed by Alexis Hétu

Build fix

A few things needed to be fixed: - Removed unused local variables in Sampler.cpp - Local tests showed that newly added files for ubsan build fix broke Mac and Windows builds. Moved files to Linux non debug only to fix the issue on all platforms. Change-Id: I4d6d0d162603fdf36c581e84e177e6d042bf2d6e Reviewed-on: https://swiftshader-review.googlesource.com/8268Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 2f48bcb9
...@@ -39,8 +39,6 @@ shared_library("swiftshader_libEGL") { ...@@ -39,8 +39,6 @@ shared_library("swiftshader_libEGL") {
} }
sources = [ sources = [
"../../Renderer/Surface.cpp",
"../common/Image.cpp",
"../common/Object.cpp", "../common/Object.cpp",
"Config.cpp", "Config.cpp",
"Display.cpp", "Display.cpp",
...@@ -54,6 +52,11 @@ shared_library("swiftshader_libEGL") { ...@@ -54,6 +52,11 @@ shared_library("swiftshader_libEGL") {
if (is_debug) { if (is_debug) {
sources += [ "../common/debug.cpp" ] sources += [ "../common/debug.cpp" ]
} else if (is_linux) {
sources += [
"../../Renderer/Surface.cpp",
"../common/Image.cpp",
]
} }
if (is_mac) { if (is_mac) {
......
...@@ -126,10 +126,6 @@ namespace sw ...@@ -126,10 +126,6 @@ namespace sw
int pitchP = surface->getInternalPitchP(); int pitchP = surface->getInternalPitchP();
int sliceP = surface->getInternalSliceP(); int sliceP = surface->getInternalSliceP();
int logWidth = log2(width);
int logHeight = log2(height);
int logDepth = log2(depth);
if(level == 0) if(level == 0)
{ {
texture.widthHeightLOD[0] = width * exp2LOD; texture.widthHeightLOD[0] = width * exp2LOD;
......
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