intel: Merge our choosetexformat fallbacks into core.

We now share the type/format -> MESA_FORMAT_* mappings with software
mesa, and the core supports most of the fallbacks hardware drivers
will want.
This commit is contained in:
Eric Anholt
2011-01-04 13:44:34 -08:00
parent 001d944fd5
commit 5dbb856e96
6 changed files with 107 additions and 230 deletions

View File

@@ -115,8 +115,8 @@ intel_alloc_renderbuffer_storage(struct gl_context * ctx, struct gl_renderbuffer
* except they're less useful because you can't texture with
* them.
*/
rb->Format = intelChooseTextureFormat(ctx, internalFormat,
GL_NONE, GL_NONE);
rb->Format = intel->ctx.Driver.ChooseTextureFormat(ctx, internalFormat,
GL_NONE, GL_NONE);
break;
case GL_STENCIL_INDEX:
case GL_STENCIL_INDEX1_EXT: