Skip to content

Commit

Permalink
linux compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Jul 22, 2014
1 parent 18d6368 commit e94726c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions renderdoc/common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ using std::string;
// SRGB8_lookuptable[comp] = powf((0.055f + srgbF) / 1.055f, 2.4f);
// }

extern float SRGB8_lookuptable[256] = {
float SRGB8_lookuptable[256] = {
0.000000f, 0.000304f, 0.000607f, 0.000911f, 0.001214f, 0.001518f, 0.001821f, 0.002125f,
0.002428f, 0.002732f, 0.003035f, 0.003347f, 0.003677f, 0.004025f, 0.004391f, 0.004777f,
0.005182f, 0.005605f, 0.006049f, 0.006512f, 0.006995f, 0.007499f, 0.008023f, 0.008568f,
Expand Down Expand Up @@ -102,7 +102,9 @@ void rdcassert(const char *condition, const char *file, unsigned int line, const
rdclog_int(RDCLog_Error, file, line, "Assertion failed: '%hs'", condition, file, line);
}

#if 0
static __m128 zero = {0};
#endif

// assumes a and b both point to 16-byte aligned 16-byte chunks of memory.
// Returns if they're equal or different
Expand Down Expand Up @@ -160,9 +162,6 @@ bool FindDiffRange(void *a, void *b, size_t bufSize, size_t &diffStart, size_t &
float *aflt = (float *)a;
float *bflt = (float *)b;

// init a vector to 0
__m128 zero = {0};

// sweep to find the start of differences
for(size_t v=0; v < numVecs; v++)
{
Expand Down
1 change: 1 addition & 0 deletions renderdoc/replay/replay_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ bool ReplayRenderer::PixelHistory(ResourceId target, uint32_t x, uint32_t y, rdc
// read-only, not a valid pixel history event
continue;

case eUsage_None:
case eUsage_SO:
case eUsage_CS_UAV:
case eUsage_PS_UAV:
Expand Down

0 comments on commit e94726c

Please sign in to comment.