OSDN Git Service

Log parameters of invalid surface creation.
authorNicolas Capens <capn@google.com>
Tue, 25 Aug 2015 19:14:36 +0000 (15:14 -0400)
committerNicolas Capens <capn@google.com>
Fri, 28 Aug 2015 19:03:52 +0000 (19:03 +0000)
Change-Id: I8be27042263ae80da3e01dce6c84dcf43645a232
Reviewed-on: https://swiftshader-review.googlesource.com/3911
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
src/OpenGL/libGL/Device.cpp
src/OpenGL/libGLES_CM/Device.cpp
src/OpenGL/libGLES_CM/Texture.cpp
src/OpenGL/libGLESv2/Device.cpp
src/OpenGL/libGLESv2/Texture.cpp

index 9f2d231..4d05d31 100644 (file)
@@ -254,7 +254,7 @@ namespace gl
        {\r
                if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)\r
                {\r
-                       ERR("Invalid parameters");\r
+                       ERR("Invalid parameters: %dx%d", width, height);\r
                        return 0;\r
                }\r
                \r
@@ -298,7 +298,7 @@ namespace gl
        {\r
                if(height > OUTLINE_RESOLUTION)\r
                {\r
-                       ERR("Invalid parameters");\r
+                       ERR("Invalid parameters: %dx%d", width, height);\r
                        return 0;\r
                }\r
 \r
index ebe6cc6..5066de3 100644 (file)
@@ -212,7 +212,7 @@ namespace es1
        {\r
                if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)\r
                {\r
-                       ERR("Invalid parameters");\r
+                       ERR("Invalid parameters: %dx%d", width, height);\r
                        return 0;\r
                }\r
                \r
@@ -256,7 +256,7 @@ namespace es1
        {\r
                if(height > OUTLINE_RESOLUTION)\r
                {\r
-                       ERR("Invalid parameters");\r
+                       ERR("Invalid parameters: %dx%d", width, height);\r
                        return 0;\r
                }\r
 \r
index 818c1b8..4e97a29 100644 (file)
@@ -796,7 +796,7 @@ egl::Image *createDepthStencil(unsigned int width, unsigned int height, sw::Form
 {\r
        if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)\r
        {\r
-               ERR("Invalid parameters");\r
+               ERR("Invalid parameters: %dx%d", width, height);\r
                return 0;\r
        }\r
 \r
index e89be78..1190722 100644 (file)
@@ -221,7 +221,7 @@ namespace es2
        {\r
                if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)\r
                {\r
-                       ERR("Invalid parameters");\r
+                       ERR("Invalid parameters: %dx%d", width, height);\r
                        return 0;\r
                }\r
                \r
@@ -265,7 +265,7 @@ namespace es2
        {\r
                if(height > OUTLINE_RESOLUTION)\r
                {\r
-                       ERR("Invalid parameters");\r
+                       ERR("Invalid parameters: %dx%d", width, height);\r
                        return 0;\r
                }\r
 \r
index 9551503..b0e8553 100644 (file)
@@ -1904,7 +1904,7 @@ egl::Image *createDepthStencil(unsigned int width, unsigned int height, sw::Form
 {\r
        if(width == 0 || height == 0 || height > OUTLINE_RESOLUTION)\r
        {\r
-               ERR("Invalid parameters");\r
+               ERR("Invalid parameters: %dx%d", width, height);\r
                return 0;\r
        }\r
                \r