Fix handling of red support for GalliumLLVM renderer
Change-Id: Ia4a71ca336a43dd2717a6aa4b5e254cd46406228 Reviewed-on: https://skia-review.googlesource.com/97061 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
ad2cd562d9
commit
f625860554
@ -2130,7 +2130,7 @@ void GrGLCaps::initConfigTable(const GrContextOptions& contextOptions,
|
|||||||
// Gallium llvmpipe renderer on ES 3.0 does not have R8 so we use Alpha for
|
// Gallium llvmpipe renderer on ES 3.0 does not have R8 so we use Alpha for
|
||||||
// kAlpha_8_GrPixelConfig. Alpha8 is not a valid signed internal format so we must use the base
|
// kAlpha_8_GrPixelConfig. Alpha8 is not a valid signed internal format so we must use the base
|
||||||
// internal format for that config when doing TexImage calls.
|
// internal format for that config when doing TexImage calls.
|
||||||
if (kGalliumLLVM_GrGLRenderer == ctxInfo.renderer() && textureRedSupport) {
|
if (kGalliumLLVM_GrGLRenderer == ctxInfo.renderer() && !textureRedSupport) {
|
||||||
SkASSERT(fConfigTable[kAlpha_8_GrPixelConfig].fFormats.fBaseInternalFormat ==
|
SkASSERT(fConfigTable[kAlpha_8_GrPixelConfig].fFormats.fBaseInternalFormat ==
|
||||||
fConfigTable[kAlpha_8_as_Alpha_GrPixelConfig].fFormats.fBaseInternalFormat);
|
fConfigTable[kAlpha_8_as_Alpha_GrPixelConfig].fFormats.fBaseInternalFormat);
|
||||||
fConfigTable[kAlpha_8_GrPixelConfig].fFormats.fInternalFormatTexImage =
|
fConfigTable[kAlpha_8_GrPixelConfig].fFormats.fInternalFormatTexImage =
|
||||||
|
Loading…
Reference in New Issue
Block a user