Commit d08aa75e by jbauman@chromium.org

Increase size of output buffer for pix to 32768

We output entire hlsl shaders into this buffer, so 4096 bytes was too small. BUG= TEST= Review URL: https://codereview.appspot.com/5532094 git-svn-id: https://angleproject.googlecode.com/svn/trunk@953 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 86bdb824
...@@ -23,7 +23,7 @@ static void output(bool traceFileDebugOnly, PerfOutputFunction perfFunc, const c ...@@ -23,7 +23,7 @@ static void output(bool traceFileDebugOnly, PerfOutputFunction perfFunc, const c
#if !defined(ANGLE_DISABLE_PERF) #if !defined(ANGLE_DISABLE_PERF)
if (perfActive()) if (perfActive())
{ {
char message[4096]; char message[32768];
int len = vsprintf_s(message, format, vararg); int len = vsprintf_s(message, format, vararg);
if (len < 0) if (len < 0)
{ {
...@@ -31,7 +31,7 @@ static void output(bool traceFileDebugOnly, PerfOutputFunction perfFunc, const c ...@@ -31,7 +31,7 @@ static void output(bool traceFileDebugOnly, PerfOutputFunction perfFunc, const c
} }
// There are no ASCII variants of these D3DPERF functions. // There are no ASCII variants of these D3DPERF functions.
wchar_t wideMessage[4096]; wchar_t wideMessage[32768];
for (int i = 0; i < len; ++i) for (int i = 0; i < len; ++i)
{ {
wideMessage[i] = message[i]; wideMessage[i] = message[i];
......
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 951 #define BUILD_REVISION 953
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
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