OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "main.h" | 5 #include "main.h" |
6 #include "testbase.h" | 6 #include "testbase.h" |
7 #include "utils.h" | 7 #include "utils.h" |
8 | 8 |
9 | 9 |
10 namespace glbench { | 10 namespace glbench { |
11 | 11 |
12 | 12 |
13 class VaryingsAndDdxyShaderTest : public DrawElementsTestFunc { | 13 class VaryingsAndDdxyShaderTest : public DrawElementsTestFunc { |
14 public: | 14 public: |
15 VaryingsAndDdxyShaderTest() {} | 15 VaryingsAndDdxyShaderTest() {} |
16 virtual ~VaryingsAndDdxyShaderTest() {} | 16 virtual ~VaryingsAndDdxyShaderTest() {} |
17 virtual bool Run(); | 17 virtual bool Run(); |
| 18 virtual const char* Name() const { return "varyings_ddx_shader"; } |
18 | 19 |
19 private: | 20 private: |
20 DISALLOW_COPY_AND_ASSIGN(VaryingsAndDdxyShaderTest); | 21 DISALLOW_COPY_AND_ASSIGN(VaryingsAndDdxyShaderTest); |
21 }; | 22 }; |
22 | 23 |
23 #if defined(I915_WORKAROUND) | 24 #if defined(I915_WORKAROUND) |
24 #define V1 "gl_TexCoord[0]" | 25 #define V1 "gl_TexCoord[0]" |
25 #define V2 "gl_TexCoord[1]" | 26 #define V2 "gl_TexCoord[1]" |
26 #define V3 "gl_TexCoord[2]" | 27 #define V3 "gl_TexCoord[2]" |
27 #define V4 "gl_TexCoord[3]" | 28 #define V4 "gl_TexCoord[3]" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 return true; | 239 return true; |
239 } | 240 } |
240 | 241 |
241 | 242 |
242 TestBase* GetVaryingsAndDdxyShaderTest() { | 243 TestBase* GetVaryingsAndDdxyShaderTest() { |
243 return new VaryingsAndDdxyShaderTest; | 244 return new VaryingsAndDdxyShaderTest; |
244 } | 245 } |
245 | 246 |
246 | 247 |
247 } // namespace glbench | 248 } // namespace glbench |
OLD | NEW |