blob: bd18e56b4b8d4e412f84d16eb799b9dfab3308ba [file] [log] [blame]
bsalomon@google.comf7fa8062012-02-14 14:09:57 +00001/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8
9#include "GrGLCaps.h"
10#include "GrGLContextInfo.h"
bsalomon@google.comc9668ec2012-04-11 18:16:41 +000011#include "SkTSearch.h"
bsalomon@google.comf7fa8062012-02-14 14:09:57 +000012
13GrGLCaps::GrGLCaps() {
14 this->reset();
15}
16
17void GrGLCaps::reset() {
18 fVerifiedColorConfigs.reset();
19 fStencilFormats.reset();
20 fStencilVerifiedColorConfigs.reset();
21 fMSFBOType = kNone_MSFBOType;
bsalomon@google.comf6b070d2012-04-27 14:25:44 +000022 fMaxSampleCount = 0;
bsalomon@google.comc9668ec2012-04-11 18:16:41 +000023 fCoverageAAType = kNone_CoverageAAType;
bsalomon@google.comf7fa8062012-02-14 14:09:57 +000024 fMaxFragmentUniformVectors = 0;
bsalomon@google.com60da4172012-06-01 19:25:00 +000025 fMaxVertexAttributes = 0;
bsalomon@google.comf7fa8062012-02-14 14:09:57 +000026 fRGBA8RenderbufferSupport = false;
27 fBGRAFormatSupport = false;
28 fBGRAIsInternalFormat = false;
29 fTextureSwizzleSupport = false;
30 fUnpackRowLengthSupport = false;
31 fUnpackFlipYSupport = false;
32 fPackRowLengthSupport = false;
33 fPackFlipYSupport = false;
34 fTextureUsageSupport = false;
35 fTexStorageSupport = false;
robertphillips@google.com443e5a52012-04-30 20:01:21 +000036 fTextureRedSupport = false;
bsalomon@google.come76b7cc2012-06-18 12:47:06 +000037 fImagingSupport = false;
robertphillips@google.com1d89c932012-06-27 19:31:41 +000038 fTwoFormatLimit = false;
bsalomon@google.com706f6682012-10-23 14:53:55 +000039 fFragCoordsConventionSupport = false;
bsalomon@google.com96966a52013-02-21 16:34:21 +000040 fUseNonVBOVertexAndIndexDynamicData = false;
bsalomon@google.comf7fa8062012-02-14 14:09:57 +000041}
42
43GrGLCaps::GrGLCaps(const GrGLCaps& caps) {
44 *this = caps;
45}
46
47GrGLCaps& GrGLCaps::operator = (const GrGLCaps& caps) {
48 fVerifiedColorConfigs = caps.fVerifiedColorConfigs;
49 fStencilFormats = caps.fStencilFormats;
50 fStencilVerifiedColorConfigs = caps.fStencilVerifiedColorConfigs;
51 fMaxFragmentUniformVectors = caps.fMaxFragmentUniformVectors;
bsalomon@google.com60da4172012-06-01 19:25:00 +000052 fMaxVertexAttributes = caps.fMaxVertexAttributes;
bsalomon@google.comf7fa8062012-02-14 14:09:57 +000053 fMSFBOType = caps.fMSFBOType;
bsalomon@google.comf6b070d2012-04-27 14:25:44 +000054 fMaxSampleCount = caps.fMaxSampleCount;
bsalomon@google.comc9668ec2012-04-11 18:16:41 +000055 fCoverageAAType = caps.fCoverageAAType;
56 fMSAACoverageModes = caps.fMSAACoverageModes;
bsalomon@google.comf7fa8062012-02-14 14:09:57 +000057 fRGBA8RenderbufferSupport = caps.fRGBA8RenderbufferSupport;
58 fBGRAFormatSupport = caps.fBGRAFormatSupport;
59 fBGRAIsInternalFormat = caps.fBGRAIsInternalFormat;
60 fTextureSwizzleSupport = caps.fTextureSwizzleSupport;
61 fUnpackRowLengthSupport = caps.fUnpackRowLengthSupport;
62 fUnpackFlipYSupport = caps.fUnpackFlipYSupport;
63 fPackRowLengthSupport = caps.fPackRowLengthSupport;
64 fPackFlipYSupport = caps.fPackFlipYSupport;
65 fTextureUsageSupport = caps.fTextureUsageSupport;
66 fTexStorageSupport = caps.fTexStorageSupport;
robertphillips@google.com443e5a52012-04-30 20:01:21 +000067 fTextureRedSupport = caps.fTextureRedSupport;
bsalomon@google.come76b7cc2012-06-18 12:47:06 +000068 fImagingSupport = caps.fImagingSupport;
robertphillips@google.com1d89c932012-06-27 19:31:41 +000069 fTwoFormatLimit = caps.fTwoFormatLimit;
bsalomon@google.com706f6682012-10-23 14:53:55 +000070 fFragCoordsConventionSupport = caps.fFragCoordsConventionSupport;
bsalomon@google.com96966a52013-02-21 16:34:21 +000071 fUseNonVBOVertexAndIndexDynamicData = caps.fUseNonVBOVertexAndIndexDynamicData;
bsalomon@google.comf7fa8062012-02-14 14:09:57 +000072
73 return *this;
74}
75
76void GrGLCaps::init(const GrGLContextInfo& ctxInfo) {
77
78 this->reset();
79 if (!ctxInfo.isInitialized()) {
80 return;
81 }
82
83 const GrGLInterface* gli = ctxInfo.interface();
84 GrGLBinding binding = ctxInfo.binding();
85 GrGLVersion version = ctxInfo.version();
86
87 if (kES2_GrGLBinding == binding) {
88 GR_GL_GetIntegerv(gli, GR_GL_MAX_FRAGMENT_UNIFORM_VECTORS,
89 &fMaxFragmentUniformVectors);
90 } else {
91 GrAssert(kDesktop_GrGLBinding == binding);
92 GrGLint max;
93 GR_GL_GetIntegerv(gli, GR_GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &max);
94 fMaxFragmentUniformVectors = max / 4;
95 }
bsalomon@google.com60da4172012-06-01 19:25:00 +000096 GR_GL_GetIntegerv(gli, GR_GL_MAX_VERTEX_ATTRIBS, &fMaxVertexAttributes);
bsalomon@google.comf7fa8062012-02-14 14:09:57 +000097
98 if (kDesktop_GrGLBinding == binding) {
99 fRGBA8RenderbufferSupport = true;
100 } else {
101 fRGBA8RenderbufferSupport = ctxInfo.hasExtension("GL_OES_rgb8_rgba8") ||
102 ctxInfo.hasExtension("GL_ARM_rgba8");
103 }
104
105 if (kDesktop_GrGLBinding == binding) {
106 fBGRAFormatSupport = version >= GR_GL_VER(1,2) ||
107 ctxInfo.hasExtension("GL_EXT_bgra");
108 } else {
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000109 if (ctxInfo.hasExtension("GL_APPLE_texture_format_BGRA8888")) {
110 fBGRAFormatSupport = true;
111 } else if (ctxInfo.hasExtension("GL_EXT_texture_format_BGRA8888")) {
112 fBGRAFormatSupport = true;
113 fBGRAIsInternalFormat = true;
114 }
115 GrAssert(fBGRAFormatSupport ||
bsalomon@google.com0342a852012-08-20 19:22:38 +0000116 kSkia8888_GrPixelConfig != kBGRA_8888_GrPixelConfig);
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000117 }
118
119 if (kDesktop_GrGLBinding == binding) {
120 fTextureSwizzleSupport = version >= GR_GL_VER(3,3) ||
121 ctxInfo.hasExtension("GL_ARB_texture_swizzle");
122 } else {
123 fTextureSwizzleSupport = false;
124 }
125
126 if (kDesktop_GrGLBinding == binding) {
127 fUnpackRowLengthSupport = true;
128 fUnpackFlipYSupport = false;
129 fPackRowLengthSupport = true;
130 fPackFlipYSupport = false;
131 } else {
132 fUnpackRowLengthSupport =ctxInfo.hasExtension("GL_EXT_unpack_subimage");
133 fUnpackFlipYSupport = ctxInfo.hasExtension("GL_CHROMIUM_flipy");
134 // no extension for pack row length
135 fPackRowLengthSupport = false;
136 fPackFlipYSupport =
137 ctxInfo.hasExtension("GL_ANGLE_pack_reverse_row_order");
138 }
139
140 fTextureUsageSupport = (kES2_GrGLBinding == binding) &&
141 ctxInfo.hasExtension("GL_ANGLE_texture_usage");
142
143 // Tex storage is in desktop 4.2 and can be an extension to desktop or ES.
144 fTexStorageSupport = (kDesktop_GrGLBinding == binding &&
145 version >= GR_GL_VER(4,2)) ||
146 ctxInfo.hasExtension("GL_ARB_texture_storage") ||
147 ctxInfo.hasExtension("GL_EXT_texture_storage");
148
robertphillips@google.com443e5a52012-04-30 20:01:21 +0000149 // ARB_texture_rg is part of OpenGL 3.0
150 if (kDesktop_GrGLBinding == binding) {
151 fTextureRedSupport = version >= GR_GL_VER(3,0) ||
152 ctxInfo.hasExtension("GL_ARB_texture_rg");
153 } else {
154 fTextureRedSupport = ctxInfo.hasExtension("GL_EXT_texture_rg");
155 }
156
bsalomon@google.come76b7cc2012-06-18 12:47:06 +0000157 fImagingSupport = kDesktop_GrGLBinding == binding &&
158 ctxInfo.hasExtension("GL_ARB_imaging");
159
robertphillips@google.com1d89c932012-06-27 19:31:41 +0000160 // ES 2 only guarantees RGBA/uchar + one other format/type combo for
161 // ReadPixels. The other format has to checked at run-time since it
162 // can change based on which render target is bound
163 fTwoFormatLimit = kES2_GrGLBinding == binding;
164
bsalomon@google.com706f6682012-10-23 14:53:55 +0000165 // Known issue on at least some Intel platforms:
166 // http://code.google.com/p/skia/issues/detail?id=946
167 if (kIntel_GrGLVendor != ctxInfo.vendor()) {
168 fFragCoordsConventionSupport = ctxInfo.glslGeneration() >= k150_GrGLSLGeneration ||
169 ctxInfo.hasExtension("GL_ARB_fragment_coord_conventions");
170 }
171
bsalomon@google.com96966a52013-02-21 16:34:21 +0000172 // Perhaps we should look at the renderer string and limit to Mali GPUs.
173 if (kARM_GrGLVendor == ctxInfo.vendor() && !GR_GL_MUST_USE_VBO) {
174 fUseNonVBOVertexAndIndexDynamicData = true;
175 }
176
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000177 this->initFSAASupport(ctxInfo);
178 this->initStencilFormats(ctxInfo);
179}
180
robertphillips@google.com1d89c932012-06-27 19:31:41 +0000181bool GrGLCaps::readPixelsSupported(const GrGLInterface* intf,
rmistry@google.comfbfcd562012-08-23 18:09:54 +0000182 GrGLenum format,
183 GrGLenum type) const {
robertphillips@google.com1d89c932012-06-27 19:31:41 +0000184 if (GR_GL_RGBA == format && GR_GL_UNSIGNED_BYTE == type) {
185 // ES 2 guarantees this format is supported
robertphillips@google.comeca2dfb2012-06-27 20:13:49 +0000186 return true;
robertphillips@google.com1d89c932012-06-27 19:31:41 +0000187 }
188
189 if (!fTwoFormatLimit) {
190 // not limited by ES 2's constraints
191 return true;
192 }
193
bsalomon@google.com548a4332012-07-11 19:45:22 +0000194 GrGLint otherFormat = GR_GL_RGBA;
195 GrGLint otherType = GR_GL_UNSIGNED_BYTE;
robertphillips@google.com1d89c932012-06-27 19:31:41 +0000196
197 // The other supported format/type combo supported for ReadPixels
198 // can change based on which render target is bound
rmistry@google.comfbfcd562012-08-23 18:09:54 +0000199 GR_GL_GetIntegerv(intf,
robertphillips@google.com1d89c932012-06-27 19:31:41 +0000200 GR_GL_IMPLEMENTATION_COLOR_READ_FORMAT,
201 &otherFormat);
202
rmistry@google.comfbfcd562012-08-23 18:09:54 +0000203 GR_GL_GetIntegerv(intf,
robertphillips@google.com1d89c932012-06-27 19:31:41 +0000204 GR_GL_IMPLEMENTATION_COLOR_READ_TYPE,
205 &otherType);
206
bsalomon@google.com548a4332012-07-11 19:45:22 +0000207 return (GrGLenum)otherFormat == format && (GrGLenum)otherType == type;
robertphillips@google.com1d89c932012-06-27 19:31:41 +0000208}
209
bsalomon@google.comc9668ec2012-04-11 18:16:41 +0000210namespace {
211int coverage_mode_compare(const GrGLCaps::MSAACoverageMode* left,
212 const GrGLCaps::MSAACoverageMode* right) {
213 if (left->fCoverageSampleCnt < right->fCoverageSampleCnt) {
214 return -1;
215 } else if (right->fCoverageSampleCnt < left->fCoverageSampleCnt) {
216 return 1;
217 } else if (left->fColorSampleCnt < right->fColorSampleCnt) {
218 return -1;
219 } else if (right->fColorSampleCnt < left->fColorSampleCnt) {
220 return 1;
221 }
222 return 0;
223}
224}
225
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000226void GrGLCaps::initFSAASupport(const GrGLContextInfo& ctxInfo) {
227
228 fMSFBOType = kNone_MSFBOType;
229 if (kDesktop_GrGLBinding != ctxInfo.binding()) {
230 if (ctxInfo.hasExtension("GL_CHROMIUM_framebuffer_multisample")) {
231 // chrome's extension is equivalent to the EXT msaa
232 // and fbo_blit extensions.
233 fMSFBOType = kDesktopEXT_MSFBOType;
234 } else if (ctxInfo.hasExtension("GL_APPLE_framebuffer_multisample")) {
bsalomon@google.comc9668ec2012-04-11 18:16:41 +0000235 fMSFBOType = kAppleES_MSFBOType;
236 }
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000237 } else {
238 if ((ctxInfo.version() >= GR_GL_VER(3,0)) ||
239 ctxInfo.hasExtension("GL_ARB_framebuffer_object")) {
240 fMSFBOType = GrGLCaps::kDesktopARB_MSFBOType;
241 } else if (ctxInfo.hasExtension("GL_EXT_framebuffer_multisample") &&
242 ctxInfo.hasExtension("GL_EXT_framebuffer_blit")) {
243 fMSFBOType = GrGLCaps::kDesktopEXT_MSFBOType;
244 }
bsalomon@google.comc9668ec2012-04-11 18:16:41 +0000245 // TODO: We could populate fMSAACoverageModes using GetInternalformativ
246 // on GL 4.2+. It's format-specific, though. See also
247 // http://code.google.com/p/skia/issues/detail?id=470 about using actual
248 // rather than requested sample counts in cache key.
249 if (ctxInfo.hasExtension("GL_NV_framebuffer_multisample_coverage")) {
250 fCoverageAAType = kNVDesktop_CoverageAAType;
251 GrGLint count;
252 GR_GL_GetIntegerv(ctxInfo.interface(),
253 GR_GL_MAX_MULTISAMPLE_COVERAGE_MODES,
254 &count);
255 fMSAACoverageModes.setCount(count);
256 GR_GL_GetIntegerv(ctxInfo.interface(),
257 GR_GL_MULTISAMPLE_COVERAGE_MODES,
258 (int*)&fMSAACoverageModes[0]);
259 // The NV driver seems to return the modes already sorted but the
260 // spec doesn't require this. So we sort.
reed@google.comc7a67cb2012-05-07 14:52:12 +0000261 qsort(&fMSAACoverageModes[0],
bsalomon@google.comc9668ec2012-04-11 18:16:41 +0000262 count,
263 sizeof(MSAACoverageMode),
reed@google.comc7a67cb2012-05-07 14:52:12 +0000264 SkCastForQSort(coverage_mode_compare));
bsalomon@google.comc9668ec2012-04-11 18:16:41 +0000265 }
266 }
bsalomon@google.comf6b070d2012-04-27 14:25:44 +0000267 if (kNone_MSFBOType != fMSFBOType) {
268 GR_GL_GetIntegerv(ctxInfo.interface(),
269 GR_GL_MAX_SAMPLES,
270 &fMaxSampleCount);
271 }
bsalomon@google.comc9668ec2012-04-11 18:16:41 +0000272}
273
274const GrGLCaps::MSAACoverageMode& GrGLCaps::getMSAACoverageMode(
275 int desiredSampleCount) const {
276 static const MSAACoverageMode kNoneMode = {0, 0};
277 if (0 == fMSAACoverageModes.count()) {
278 return kNoneMode;
279 } else {
280 GrAssert(kNone_CoverageAAType != fCoverageAAType);
281 int max = (fMSAACoverageModes.end() - 1)->fCoverageSampleCnt;
282 desiredSampleCount = GrMin(desiredSampleCount, max);
283 MSAACoverageMode desiredMode = {desiredSampleCount, 0};
284 int idx = SkTSearch<MSAACoverageMode>(&fMSAACoverageModes[0],
285 fMSAACoverageModes.count(),
286 desiredMode,
287 sizeof(MSAACoverageMode),
288 &coverage_mode_compare);
289 if (idx < 0) {
290 idx = ~idx;
291 }
292 GrAssert(idx >= 0 && idx < fMSAACoverageModes.count());
293 return fMSAACoverageModes[idx];
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000294 }
295}
296
297namespace {
298const GrGLuint kUnknownBitCount = GrGLStencilBuffer::kUnknownBitCount;
299}
300
301void GrGLCaps::initStencilFormats(const GrGLContextInfo& ctxInfo) {
302
303 // Build up list of legal stencil formats (though perhaps not supported on
304 // the particular gpu/driver) from most preferred to least.
305
306 // these consts are in order of most preferred to least preferred
307 // we don't bother with GL_STENCIL_INDEX1 or GL_DEPTH32F_STENCIL8
308
309 static const StencilFormat
310 // internal Format stencil bits total bits packed?
311 gS8 = {GR_GL_STENCIL_INDEX8, 8, 8, false},
312 gS16 = {GR_GL_STENCIL_INDEX16, 16, 16, false},
313 gD24S8 = {GR_GL_DEPTH24_STENCIL8, 8, 32, true },
314 gS4 = {GR_GL_STENCIL_INDEX4, 4, 4, false},
caryclark@google.comcf6285b2012-06-06 12:09:01 +0000315 // gS = {GR_GL_STENCIL_INDEX, kUnknownBitCount, kUnknownBitCount, false},
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000316 gDS = {GR_GL_DEPTH_STENCIL, kUnknownBitCount, kUnknownBitCount, true };
317
318 if (kDesktop_GrGLBinding == ctxInfo.binding()) {
319 bool supportsPackedDS =
rmistry@google.comfbfcd562012-08-23 18:09:54 +0000320 ctxInfo.version() >= GR_GL_VER(3,0) ||
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000321 ctxInfo.hasExtension("GL_EXT_packed_depth_stencil") ||
322 ctxInfo.hasExtension("GL_ARB_framebuffer_object");
323
324 // S1 thru S16 formats are in GL 3.0+, EXT_FBO, and ARB_FBO since we
325 // require FBO support we can expect these are legal formats and don't
326 // check. These also all support the unsized GL_STENCIL_INDEX.
327 fStencilFormats.push_back() = gS8;
328 fStencilFormats.push_back() = gS16;
329 if (supportsPackedDS) {
330 fStencilFormats.push_back() = gD24S8;
331 }
332 fStencilFormats.push_back() = gS4;
333 if (supportsPackedDS) {
334 fStencilFormats.push_back() = gDS;
335 }
336 } else {
337 // ES2 has STENCIL_INDEX8 without extensions but requires extensions
338 // for other formats.
339 // ES doesn't support using the unsized format.
340
341 fStencilFormats.push_back() = gS8;
342 //fStencilFormats.push_back() = gS16;
343 if (ctxInfo.hasExtension("GL_OES_packed_depth_stencil")) {
344 fStencilFormats.push_back() = gD24S8;
345 }
346 if (ctxInfo.hasExtension("GL_OES_stencil4")) {
347 fStencilFormats.push_back() = gS4;
348 }
349 }
350 GrAssert(0 == fStencilVerifiedColorConfigs.count());
351 fStencilVerifiedColorConfigs.push_back_n(fStencilFormats.count());
352}
353
354void GrGLCaps::markColorConfigAndStencilFormatAsVerified(
355 GrPixelConfig config,
356 const GrGLStencilBuffer::Format& format) {
357#if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT
358 return;
359#endif
360 GrAssert((unsigned)config < kGrPixelConfigCount);
361 GrAssert(fStencilFormats.count() == fStencilVerifiedColorConfigs.count());
362 int count = fStencilFormats.count();
363 // we expect a really small number of possible formats so linear search
364 // should be OK
365 GrAssert(count < 16);
366 for (int i = 0; i < count; ++i) {
367 if (format.fInternalFormat ==
368 fStencilFormats[i].fInternalFormat) {
369 fStencilVerifiedColorConfigs[i].markVerified(config);
370 return;
371 }
372 }
373 GrCrash("Why are we seeing a stencil format that "
374 "GrGLCaps doesn't know about.");
375}
376
377bool GrGLCaps::isColorConfigAndStencilFormatVerified(
378 GrPixelConfig config,
379 const GrGLStencilBuffer::Format& format) const {
380#if !GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT
381 return false;
382#endif
383 GrAssert((unsigned)config < kGrPixelConfigCount);
384 int count = fStencilFormats.count();
385 // we expect a really small number of possible formats so linear search
386 // should be OK
387 GrAssert(count < 16);
388 for (int i = 0; i < count; ++i) {
389 if (format.fInternalFormat ==
390 fStencilFormats[i].fInternalFormat) {
391 return fStencilVerifiedColorConfigs[i].isVerified(config);
392 }
393 }
394 GrCrash("Why are we seeing a stencil format that "
395 "GLCaps doesn't know about.");
396 return false;
397}
398
399void GrGLCaps::print() const {
400 for (int i = 0; i < fStencilFormats.count(); ++i) {
401 GrPrintf("Stencil Format %d, stencil bits: %02d, total bits: %02d\n",
402 i,
403 fStencilFormats[i].fStencilBits,
404 fStencilFormats[i].fTotalBits);
405 }
406
407 GR_STATIC_ASSERT(0 == kNone_MSFBOType);
408 GR_STATIC_ASSERT(1 == kDesktopARB_MSFBOType);
409 GR_STATIC_ASSERT(2 == kDesktopEXT_MSFBOType);
410 GR_STATIC_ASSERT(3 == kAppleES_MSFBOType);
411 static const char* gMSFBOExtStr[] = {
412 "None",
413 "ARB",
414 "EXT",
415 "Apple",
416 };
417 GrPrintf("MSAA Type: %s\n", gMSFBOExtStr[fMSFBOType]);
418 GrPrintf("Max FS Uniform Vectors: %d\n", fMaxFragmentUniformVectors);
419 GrPrintf("Support RGBA8 Render Buffer: %s\n",
420 (fRGBA8RenderbufferSupport ? "YES": "NO"));
421 GrPrintf("BGRA is an internal format: %s\n",
422 (fBGRAIsInternalFormat ? "YES": "NO"));
423 GrPrintf("Support texture swizzle: %s\n",
424 (fTextureSwizzleSupport ? "YES": "NO"));
425 GrPrintf("Unpack Row length support: %s\n",
426 (fUnpackRowLengthSupport ? "YES": "NO"));
427 GrPrintf("Unpack Flip Y support: %s\n",
428 (fUnpackFlipYSupport ? "YES": "NO"));
429 GrPrintf("Pack Row length support: %s\n",
430 (fPackRowLengthSupport ? "YES": "NO"));
431 GrPrintf("Pack Flip Y support: %s\n",
432 (fPackFlipYSupport ? "YES": "NO"));
robertphillips@google.com1d89c932012-06-27 19:31:41 +0000433 GrPrintf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
bsalomon@google.com706f6682012-10-23 14:53:55 +0000434 GrPrintf("Fragment coord conventions support: %s\n", (fFragCoordsConventionSupport ? "YES": "NO"));
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000435}