OSDN Git Service

Enable executable code generation and linking.
authorNicolas Capens <capn@google.com>
Tue, 31 Oct 2017 15:22:45 +0000 (11:22 -0400)
committerNicolas Capens <nicolascapens@google.com>
Tue, 31 Oct 2017 16:43:45 +0000 (16:43 +0000)
Bug swiftshader:86

Change-Id: If98cbf93e8b8d41246d9f06503da0752fe968ff8
Reviewed-on: https://swiftshader-review.googlesource.com/13448
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Corentin Wallez <cwallez@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
tests/fuzzers/VertexRoutineFuzzer.cpp

index ef97774..d64466b 100644 (file)
@@ -202,12 +202,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
        sw::VertexProgram program(state, bytecodeShader.get());
        program.generate();
 
-       // TODO
-//     sw::Routine *routine = program(L"VertexRoutine");
-//     assert(routine);
-//     const void *entry = routine->getEntry();
-//     assert(entry);
-//     delete routine;
+       sw::Routine *routine = program(L"VertexRoutine");
+       assert(routine);
+       const void *entry = routine->getEntry();
+       assert(entry);
+       delete routine;
 
        return 0;
 }