Commit f77786ef by Nicolas Capens

Log parameters of invalid surface creation.

Change-Id: I8be27042263ae80da3e01dce6c84dcf43645a232 Reviewed-on: https://swiftshader-review.googlesource.com/3911Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent d5c31dab
...@@ -254,7 +254,7 @@ namespace gl ...@@ -254,7 +254,7 @@ namespace gl
{ {
if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION) if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)
{ {
ERR("Invalid parameters"); ERR("Invalid parameters: %dx%d", width, height);
return 0; return 0;
} }
...@@ -298,7 +298,7 @@ namespace gl ...@@ -298,7 +298,7 @@ namespace gl
{ {
if(height > OUTLINE_RESOLUTION) if(height > OUTLINE_RESOLUTION)
{ {
ERR("Invalid parameters"); ERR("Invalid parameters: %dx%d", width, height);
return 0; return 0;
} }
......
...@@ -212,7 +212,7 @@ namespace es1 ...@@ -212,7 +212,7 @@ namespace es1
{ {
if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION) if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)
{ {
ERR("Invalid parameters"); ERR("Invalid parameters: %dx%d", width, height);
return 0; return 0;
} }
...@@ -256,7 +256,7 @@ namespace es1 ...@@ -256,7 +256,7 @@ namespace es1
{ {
if(height > OUTLINE_RESOLUTION) if(height > OUTLINE_RESOLUTION)
{ {
ERR("Invalid parameters"); ERR("Invalid parameters: %dx%d", width, height);
return 0; return 0;
} }
......
...@@ -796,7 +796,7 @@ egl::Image *createDepthStencil(unsigned int width, unsigned int height, sw::Form ...@@ -796,7 +796,7 @@ egl::Image *createDepthStencil(unsigned int width, unsigned int height, sw::Form
{ {
if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION) if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)
{ {
ERR("Invalid parameters"); ERR("Invalid parameters: %dx%d", width, height);
return 0; return 0;
} }
......
...@@ -221,7 +221,7 @@ namespace es2 ...@@ -221,7 +221,7 @@ namespace es2
{ {
if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION) if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)
{ {
ERR("Invalid parameters"); ERR("Invalid parameters: %dx%d", width, height);
return 0; return 0;
} }
...@@ -265,7 +265,7 @@ namespace es2 ...@@ -265,7 +265,7 @@ namespace es2
{ {
if(height > OUTLINE_RESOLUTION) if(height > OUTLINE_RESOLUTION)
{ {
ERR("Invalid parameters"); ERR("Invalid parameters: %dx%d", width, height);
return 0; return 0;
} }
......
...@@ -1904,7 +1904,7 @@ egl::Image *createDepthStencil(unsigned int width, unsigned int height, sw::Form ...@@ -1904,7 +1904,7 @@ egl::Image *createDepthStencil(unsigned int width, unsigned int height, sw::Form
{ {
if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION) if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)
{ {
ERR("Invalid parameters"); ERR("Invalid parameters: %dx%d", width, height);
return 0; return 0;
} }
......
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