diff options
author | Ian Rogers <irogers@google.com> | 2014-01-29 15:35:17 -0800 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-01-29 15:35:17 -0800 |
commit | f8852d0494a260c583795a96a2a06c49b86a9b10 (patch) | |
tree | f22129d5cc0ede4c1c70db623b3d553a0e434961 /rsProgram.cpp | |
parent | 4cc3c4d3f4b6625cccbc83b4bd014f8129b103a4 (diff) | |
download | rs-f8852d0494a260c583795a96a2a06c49b86a9b10.tar.gz |
Work-around 64bit build issues.
Log errors and abort as a temporary work-around for 64bit support.
Change-Id: I7f6b483d671189bd12ae0ef79515fcdd871eba17
Diffstat (limited to 'rsProgram.cpp')
-rw-r--r-- | rsProgram.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/rsProgram.cpp b/rsProgram.cpp index 806d1de0..d5cb3442 100644 --- a/rsProgram.cpp +++ b/rsProgram.cpp @@ -17,11 +17,13 @@ #include "rsContext.h" #include "rsProgram.h" +#include <inttypes.h> + using namespace android; using namespace android::renderscript; Program::Program(Context *rsc, const char * shaderText, size_t shaderLength, - const uint32_t * params, size_t paramLength) + const uintptr_t * params, size_t paramLength) : ProgramBase(rsc) { initMemberVars(); @@ -150,14 +152,14 @@ void Program::initMemberVars() { void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { if (alloc != NULL) { if (slot >= mHal.state.constantsCount) { - ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but const count is %u", - slot, (uint32_t)this, mHal.state.constantsCount); + ALOGE("Attempt to bind alloc at slot %u, on shader id %" PRIuPTR ", but const count is %u", + slot, (uintptr_t)this, mHal.state.constantsCount); rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind allocation"); return; } if (alloc->getType() != mConstantTypes[slot].get()) { - ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but types mismatch", - slot, (uint32_t)this); + ALOGE("Attempt to bind alloc at slot %u, on shader id %" PRIuPTR ", but types mismatch", + slot, (uintptr_t)this); rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind allocation"); return; } |